diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 15:54:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:04:04 +0000 |
commit | 961fbb1a3bcdbcc3634bf82606cc80400a601a6c (patch) | |
tree | 9c0cf399c48be9f74536bd27f313d0d9ff4d1536 /debian/patches/progress-linux/0002-pep440.patch | |
parent | Using wget instead of curl for improved reliability with poor connections. (diff) | |
download | devscripts-961fbb1a3bcdbcc3634bf82606cc80400a601a6c.tar.xz devscripts-961fbb1a3bcdbcc3634bf82606cc80400a601a6c.zip |
Updating PEP440 version handling to fix FTBFS with Progress Linux versions.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/progress-linux/0002-pep440.patch')
-rw-r--r-- | debian/patches/progress-linux/0002-pep440.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/patches/progress-linux/0002-pep440.patch b/debian/patches/progress-linux/0002-pep440.patch new file mode 100644 index 0000000..b048b68 --- /dev/null +++ b/debian/patches/progress-linux/0002-pep440.patch @@ -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 +@@ -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 |