[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

python-reportbug in jessie-backports has invalid version



When installing python-reportbug in debian jessie from jessie-backports, and
also bringing in python-setuptools from backports, 'pip freeze' fails due to an
invalid python package version in python-reportbug.

To reproduce, build the following Dockerfile:

    FROM debian:jessie

    RUN echo 'deb http://ftp.debian.org/debian jessie-backports main' >> /etc/apt/sources.list
    RUN apt-get update && \
        apt-get install -y -t jessie-backports python-pip python-reportbug
    RUN pip freeze

The root cause is that python-reportbug's python version is
'6.6.6~bpo8', which is an invalid version per PEP440. Later versions of
pip are able to deal with it, but 1.5.6 as installed on jessie can not.

Please consider changing the version to "6.6.6" per the following patch to
git://anonscm.debian.org/reportbug/reportbug.git branch jessie-backports.


Make package version PEP440 compatible

Signed-off-by: Dan Rue <dan.rue@linaro.org>
---
 reportbug/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/reportbug/__init__.py b/reportbug/__init__.py
index 2871302..20211ec 100644
--- a/reportbug/__init__.py
+++ b/reportbug/__init__.py
@@ -25,7 +25,7 @@ SOFTWARE."""
 __all__ = ['bugreport', 'utils', 'urlutils', 'checkbuildd', 'checkversions',
            'debbugs', 'exceptions', 'submit', 'tempfile']

-VERSION_NUMBER = "6.6.6~bpo8"
+VERSION_NUMBER = "6.6.6"

 VERSION = "reportbug " + VERSION_NUMBER
 COPYRIGHT = VERSION + '\nCopyright (C) 1999-2008 Chris Lawrence <lawrencc@debian.org>' + \
--
2.13.3


Reply to: