Hello there, First of all sorry about the failed reportbug-ng reports for python-passlib. Here is the real bugreport.
Currently in stretch the python-passlib (1.7.0-1) when you build the package you get versions like
in the __init__.py the debian package bulding process pushes this version __version__ = '1.7.0.post20170421091442' This version is not parsable by ansible. In the project's setup.py you can find this : # by default, stamp HG revision to end of version if os.environ.get("PASSLIB_SETUP_TAG_RELEASE", "y").lower() in "yes y true t 1".split(): # call HG via subprocess # NOTE: for py26 compat, using Popen() instead of check_output() try: proc = subprocess.Popen(["hg", "tip", "--template", "{date(date, '%Y%m%d%H%M%S')}+hg.{node|short}"], stdout=subprocess.PIPE) stamp, _ = proc.communicate() if proc.returncode: raise subprocess.CalledProcessError(1, []) stamp = stamp.decode("ascii") except (OSError, subprocess.CalledProcessError): # fallback - just use build date stamp = time.strftime("%Y%m%d%H%M%S")# modify version
if version.endswith((".dev0", ".post0")): version = version[:-1] + stamp else: version += ".post" + stamp# subclass build_py & sdist so they rewrite passlib/__init__.py
# to have the correct version string from passlib._setup.stamp import stamp_distutils_output stamp_distutils_output(opts, version) So basically this tiny patch brings the lib back to a parseble version --- debian/rules 2016-11-28 16:31:28.000000000 +0000 +++ debian/rules.fix 2017-04-21 10:08:55.201757103 +0000 @@ -1,6 +1,7 @@ #!/usr/bin/make -f export PYBUILD_NAME=passlib +export PASSLIB_SETUP_TAG_RELEASE=no %: dh $@ --with python2,python3 --buildsystem=pybuild What do you think ? Aurelien
signature.asc
Description: PGP signature