ubuntukylin-wallpapers: fix version for PEP440 compliance.

This commit is contained in:
Ark74 2024-09-05 19:56:16 -06:00
parent 004cd98bfa
commit 37b4ed799e
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,15 @@
diff --git a/setup.py b/setup.py
index afd2fb91..6b73c251 100644
--- a/setup.py
+++ b/setup.py
@@ -9,8 +9,8 @@ changelog = "debian/changelog"
if os.path.exists(changelog):
head=open(changelog).readline()
match = re.compile(".*\((.*)\).*").match(head)
- if match:
- version = match.group(1)
+ version = match.group(1)
+ version = re.sub("([a-zA-Z])", r"+\1", version, count=1)
setup(
name = 'ubuntukylin-wallpapers',