diff --git a/twine/wheel.py b/twine/wheel.py index c1d82352..955214ae 100644 --- a/twine/wheel.py +++ b/twine/wheel.py @@ -20,9 +20,13 @@ from twine import exceptions wheel_file_re = re.compile( - r"""^(?P(?P.+?)(-(?P\d.+?))?) - ((-(?P\d.*?))?-(?P.+?)-(?P.+?)-(?P.+?) - \.whl|\.dist-info)$""", + r"""^(?P[^-]+)- + (?P[^-]+) + (:?-(?P\d[^-]*))?- + (?P[^-]+)- + (?P[^-]+)- + (?P[^-]+) + \.whl$""", re.VERBOSE, )