diff --git a/hashin.py b/hashin.py index 1590560..0b1696e 100755 --- a/hashin.py +++ b/hashin.py @@ -261,6 +261,7 @@ def expand_python_version(version): 'cp{major}{minor}', 'py{major}', 'py{major}.{minor}', + 'py{major}{minor}', 'source', 'py2.py3', ] diff --git a/tests/test_cli.py b/tests/test_cli.py index 72cf2de..b54625d 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -923,9 +923,9 @@ def test_release_url_metadata_python(self): def test_expand_python_version(self): self.assertEqual(sorted(hashin.expand_python_version('2.7')), - ['2.7', 'cp27', 'py2', 'py2.7', 'py2.py3', 'source']) + ['2.7', 'cp27', 'py2', 'py2.7', 'py2.py3', 'py27', 'source']) self.assertEqual(sorted(hashin.expand_python_version('3.5')), - ['3.5', 'cp35', 'py2.py3', 'py3', 'py3.5', 'source']) + ['3.5', 'cp35', 'py2.py3', 'py3', 'py3.5', 'py35', 'source']) @cleanup_tmpdir('hashin*') @mock.patch('hashin.urlopen')