Package: python-cheroot / 9.0.0+ds1-2

pep440_version_number.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: make the package return a PEP440-compatible version number
Author: Julien Puydt
Forwarded: Debian-specific

--- python-cheroot.orig/cheroot/__init__.py
+++ python-cheroot/cheroot/__init__.py
@@ -8,5 +8,7 @@
 
 try:
     __version__ = metadata.version('cheroot')
+    if __version__.find('+ds') != -1:
+        __version__ = __version__[:__version__.find('+ds')]
 except Exception:
     __version__ = 'unknown'