mirror of
https://github.com/python/cpython.git
synced 2025-10-31 21:51:50 +00:00
[3.9] bpo-46105: Honor spec when generating requirement specs with urls and extras. (GH-30151). (GH-30157)
(cherry picked from commit 109d966021)
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
This commit is contained in:
parent
4c1effaaee
commit
864ec170e1
3 changed files with 16 additions and 3 deletions
|
|
@ -121,6 +121,7 @@ def test_more_complex_deps_requires_text(self):
|
|||
|
||||
[extra1]
|
||||
dep4
|
||||
dep6@ git+https://example.com/python/dep.git@v1.0.0
|
||||
|
||||
[extra2:python_version < "3"]
|
||||
dep5
|
||||
|
|
@ -132,6 +133,7 @@ def test_more_complex_deps_requires_text(self):
|
|||
'dep3; python_version < "3"',
|
||||
'dep4; extra == "extra1"',
|
||||
'dep5; (python_version < "3") and extra == "extra2"',
|
||||
'dep6@ git+https://example.com/python/dep.git@v1.0.0 ; extra == "extra1"',
|
||||
]
|
||||
# It's important that the environment marker expression be
|
||||
# wrapped in parentheses to avoid the following 'and' binding more
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue