Updating PEP440 version handling to fix FTBFS with Progress Linux versions.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
This commit is contained in:
parent
df430022eb
commit
df1651f3a6
2 changed files with 15 additions and 0 deletions
14
debian/patches/progress-linux/0002-pep440.patch
vendored
Normal file
14
debian/patches/progress-linux/0002-pep440.patch
vendored
Normal file
|
@ -0,0 +1,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
|
||||
@@ -25,6 +25,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
|
1
debian/patches/series
vendored
1
debian/patches/series
vendored
|
@ -1 +1,2 @@
|
|||
progress-linux/0001-wget.patch
|
||||
progress-linux/0002-pep440.patch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue