mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
bpo-46105: Honor spec when generating requirement specs with urls and extras. (GH-30151)
This commit is contained in:
parent
ecdc0ccede
commit
109d966021
3 changed files with 15 additions and 2 deletions
|
@ -235,6 +235,7 @@ class APITests(
|
|||
|
||||
[extra1]
|
||||
dep4
|
||||
dep6@ git+https://example.com/python/dep.git@v1.0.0
|
||||
|
||||
[extra2:python_version < "3"]
|
||||
dep5
|
||||
|
@ -247,6 +248,7 @@ class APITests(
|
|||
'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