diff options
| author | Benoit Pierre <benoit.pierre@gmail.com> | 2018-11-19 00:12:44 +0000 |
|---|---|---|
| committer | Alex Grönholm <alex.gronholm@nextday.fi> | 2018-11-19 02:12:44 +0200 |
| commit | 1aaa8c9e928864cc7c2bb7a4e73368f340d8d164 (patch) | |
| tree | 27d58b72517cf38b7731c3b6a256ac1ac109b275 /tests | |
| parent | db29ab9005cd69fb62096c7fc96f682cfb8e3f66 (diff) | |
| download | wheel-git-1aaa8c9e928864cc7c2bb7a4e73368f340d8d164.tar.gz | |
Fixed handling of direct URL requirements with markers (#270)
There must be at least one space between the URL and the `;` delimiting the markers.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_metadata.py | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/tests/test_metadata.py b/tests/test_metadata.py index 5e69603..2e4f24c 100644 --- a/tests/test_metadata.py +++ b/tests/test_metadata.py @@ -7,19 +7,22 @@ def test_pkginfo_to_metadata(tmpdir): ('Name', 'spam'), ('Version', '0.1'), ('Requires-Dist', "pip @ https://github.com/pypa/pip/archive/1.3.1.zip"), - ('Requires-Dist', 'pywin32; sys_platform=="win32"'), + ('Requires-Dist', 'pywin32 ; sys_platform=="win32"'), + ('Requires-Dist', 'foo @ http://host/foo.zip ; sys_platform=="win32"'), ('Provides-Extra', 'signatures'), - ('Requires-Dist', 'pyxdg; (sys_platform!="win32") and extra == \'signatures\''), + ('Requires-Dist', 'pyxdg ; (sys_platform!="win32") and extra == \'signatures\''), ('Provides-Extra', 'empty_extra'), + ('Provides-Extra', 'extra'), + ('Requires-Dist', 'bar @ http://host/bar.zip ; extra == \'extra\''), ('Provides-Extra', 'faster-signatures'), - ('Requires-Dist', "ed25519ll; extra == 'faster-signatures'"), + ('Requires-Dist', "ed25519ll ; extra == 'faster-signatures'"), ('Provides-Extra', 'rest'), - ('Requires-Dist', "docutils (>=0.8); extra == 'rest'"), - ('Requires-Dist', "keyring; extra == 'signatures'"), - ('Requires-Dist', "keyrings.alt; extra == 'signatures'"), + ('Requires-Dist', "docutils (>=0.8) ; extra == 'rest'"), + ('Requires-Dist', "keyring ; extra == 'signatures'"), + ('Requires-Dist', "keyrings.alt ; extra == 'signatures'"), ('Provides-Extra', 'test'), - ('Requires-Dist', "pytest (>=3.0.0); extra == 'test'"), - ('Requires-Dist', "pytest-cov; extra == 'test'"), + ('Requires-Dist', "pytest (>=3.0.0) ; extra == 'test'"), + ('Requires-Dist', "pytest-cov ; extra == 'test'"), ] pkg_info = tmpdir.join('PKG-INFO') @@ -38,10 +41,14 @@ Provides-Extra: faster-signatures""") egg_info_dir.join('requires.txt').write("""\ pip@https://github.com/pypa/pip/archive/1.3.1.zip +[extra] +bar @ http://host/bar.zip + [empty+extra] [:sys_platform=="win32"] pywin32 +foo @http://host/foo.zip [faster-signatures] ed25519ll |
