Package: python-minimal
Version: 2.7.5-5
Severity: normal
Tags: patch

According to the setuptools documentation [1], as regards declaring dependencies, "[a] version specifier is one of the operators <, >, <=,
=, == or !=, followed by a version identifier".

I am packaging xmds2, which declares in setup.py [2]:

    install_requires = ['Cheetah>=2.0.1', 'pyparsing!=2.0.0', 'mpmath']

I end up with a wrong dependency on "python-pyparsing-" (instead of "python-pyparsing") in the substvars file.

The patch attached below fixes this problem.

Rafael

[1] http://pythonhosted.org/setuptools/setuptools.html#declaring-dependencies [2] http://sourceforge.net/p/xmds/code/HEAD/tree/trunk/xpdeint/setup.py

-- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (650, 'testing'), (600, 'unstable'), (550, 'stable'), (500, 'experimental') Architecture: i386 (i686)

Kernel: Linux 3.10-rc7-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-minimal depends on: ii dpkg 1.17.5 ii python2.7-minimal 2.7.6-4

Versions of packages python-minimal recommends: ii python 2.7.5-5

python-minimal suggests no packages.

-- no debconf information

=== modified file 'debpython/pydist.py'
--- debpython/pydist.py	2013-07-06 17:10:09 +0000
+++ debpython/pydist.py	2014-01-13 11:44:23 +0000
@@ -114,7 +114,7 @@
         version = getver(version)
 
     # some upstreams have weird ideas for distribution name...
-    name, rest = re.compile('([^><= \[]+)(.*)').match(req).groups()
+    name, rest = re.compile('([^!><= \[]+)(.*)').match(req).groups()
     req = safe_name(name) + rest
 
     data = load()

Reply via email to