From 961fbb1a3bcdbcc3634bf82606cc80400a601a6c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 17:54:58 +0200 Subject: Updating PEP440 version handling to fix FTBFS with Progress Linux versions. Signed-off-by: Daniel Baumann --- debian/patches/progress-linux/0002-pep440.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 debian/patches/progress-linux/0002-pep440.patch (limited to 'debian/patches/progress-linux') 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 +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 -- cgit v1.2.3