mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 14:50:16 +00:00
Fix extras listing twice with direct file URL
Fix #5536. Bump vendored requirementslib to 2.2.3 which includes the actual fix. Also, add a test case for this in pipenv.
This commit is contained in:
Vendored
+1
-1
@@ -12,7 +12,7 @@ ptyprocess==0.7.0
|
||||
pyparsing==3.0.9
|
||||
python-dotenv==0.19.0
|
||||
pythonfinder==1.3.1
|
||||
requirementslib==2.2.1
|
||||
requirementslib==2.2.3
|
||||
ruamel.yaml==0.17.21
|
||||
shellingham==1.5.0
|
||||
toml==0.10.2
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
import os
|
||||
import pytest
|
||||
|
||||
@pytest.mark.urls
|
||||
@pytest.mark.extras
|
||||
@pytest.mark.install
|
||||
def test_install_uri_with_extras(pipenv_instance_private_pypi):
|
||||
file_uri = "http://localhost:8080/packages/plette/plette-0.2.2-py2.py3-none-any.whl"
|
||||
index = os.environ['PIPENV_TEST_INDEX']
|
||||
with pipenv_instance_private_pypi() as p:
|
||||
with open(p.pipfile_path, 'w') as f:
|
||||
contents = """
|
||||
[[source]]
|
||||
url = "{index}"
|
||||
verify_ssl = false
|
||||
name = "testindex"
|
||||
|
||||
[packages]
|
||||
plette = {{file = "{file_uri}", extras = ["validation"]}}
|
||||
""".format(file_uri=file_uri, index=index)
|
||||
f.write(contents)
|
||||
c = p.pipenv("install")
|
||||
assert c.returncode == 0
|
||||
assert "plette" in p.lockfile["default"]
|
||||
Reference in New Issue
Block a user