summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Jeffery <matt@clan.se>2013-12-09 12:20:04 +0000
committerMatt Jeffery <matt@clan.se>2013-12-09 12:20:04 +0000
commitc19dd7508a66496da7915d1832f76335dd4edba5 (patch)
tree9c6d1e34e2e9fcdb4f6193dfad1f135ec999d44a
parentc0b84aa58693939db68e9aa83ff702e8a541cbb5 (diff)
downloadtox-c19dd7508a66496da7915d1832f76335dd4edba5.tar.gz
Correctly determine the package version if the package file name contains a period before the version number.
-rw-r--r--tox/_cmdline.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tox/_cmdline.py b/tox/_cmdline.py
index 5407b4a..a42eb79 100644
--- a/tox/_cmdline.py
+++ b/tox/_cmdline.py
@@ -557,7 +557,7 @@ class Session:
return candidates[0]
-_rex_getversion = py.std.re.compile("[\w_\-\+]+-(.*)(\.zip|\.tar.gz)")
+_rex_getversion = py.std.re.compile("[\w_\-\+\.]+-(.*)(\.zip|\.tar.gz)")
def getversion(basename):
m = _rex_getversion.match(basename)
if m is None: