blob: b048b68c24915ed4b40b3a09b2754bda8eee8a4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
Author: Daniel Baumann <daniel.baumann@progress-linux.org>
Description: Updating PEP440 version handling to fix FTBFS with Progress Linux versions.
diff -Naurp devscripts.orig/scripts/setup.py devscripts/scripts/setup.py
--- devscripts.orig/scripts/setup.py
+++ devscripts/scripts/setup.py
@@ -27,6 +27,7 @@ def make_pep440_compliant(version: str)
if not local:
return version
sanitized_local = re.sub("[+~]+", ".", local).strip(".")
+ sanitized_local = re.sub("-", ".", sanitized_local).strip(".")
pep440_version = f"{public}+{sanitized_local}"
assert re.match(
"^[a-zA-Z0-9.]+$", sanitized_local
|