From 64919839e81c001093f24fd63952fa4b71307a48 Mon Sep 17 00:00:00 2001 From: Scott Kitterman <scott@kitterman.com> Date: Fri, 4 May 2012 23:35:39 -0400 Subject: [PATCH] * Correct Python package names with hyphens in them being ignored (Closes: #657665) --- debian/changelog | 4 +++- debpython/pydist.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 0ea7977..497d689 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,8 +6,10 @@ python-defaults (2.7.2-11) UNRELEASED; urgency=low * Move /usr/bin/pyversions from python to python-minimal since that's where the actual script it's a symlink to lives, add Breaks/Replaces * Bump standards version to 3.9.3 without further change + * Correct Python package names with hyphens in them being ignored + (Closes: #657665) - -- Scott Kitterman <scott@kitterman.com> Wed, 18 Apr 2012 17:29:50 -0400 + -- Scott Kitterman <scott@kitterman.com> Fri, 04 May 2012 23:34:46 -0400 python-defaults (2.7.2-10) unstable; urgency=low diff --git a/debpython/pydist.py b/debpython/pydist.py index 209dc91..1549196 100644 --- a/debpython/pydist.py +++ b/debpython/pydist.py @@ -32,7 +32,7 @@ log = logging.getLogger(__name__) PUBLIC_DIR_RE = re.compile(r'.*?/usr/lib/python(\d.\d+)/(site|dist)-packages') PYDIST_RE = re.compile(r""" - (?P<name>[A-Za-z][A-Za-z0-9_.]*) # Python distribution name + (?P<name>[A-Za-z][A-Za-z0-9_.\-]*) # Python distribution name \s* (?P<vrange>(?:-?\d\.\d+(?:-(?:\d\.\d+)?)?)?) # version range \s* -- GitLab