Merge branch 'master' into feature/automate-releases

This commit is contained in:
Dan Ryan
2020-04-24 23:28:51 -04:00
5 changed files with 13 additions and 6 deletions
+4
View File
@@ -55,6 +55,10 @@ Or, if you\'re using FreeBSD:
# pkg install py36-pipenv
When none of the above is an option:
$ pip install pipenv
Otherwise, refer to the [documentation](https://pipenv.pypa.io/en/latest/#install-pipenv-today) for instructions.
✨🍰✨
+1
View File
@@ -0,0 +1 @@
Make sure `pipenv lock -r --pypi-mirror {MIRROR_URL}` will respect the pypi-mirror in requirements output.
+2 -2
View File
@@ -796,7 +796,7 @@ def do_install_dependencies(
skip_lock=False,
concurrent=True,
requirements_dir=None,
pypi_mirror=False,
pypi_mirror=None,
):
""""
Executes the install functionality.
@@ -830,7 +830,7 @@ def do_install_dependencies(
no_deps = not skip_lock # skip_lock true, no_deps False, pip resolves deps
deps_list = list(lockfile.get_requirements(dev=dev, only=requirements))
if requirements:
index_args = prepare_pip_source_args(project.sources)
index_args = prepare_pip_source_args(get_source_list(pypi_mirror=pypi_mirror, project=project))
index_args = " ".join(index_args).replace(" -", "\n-")
deps = [
req.as_line(sources=False, include_hashes=False) for req in deps_list
+5 -1
View File
@@ -247,7 +247,11 @@ PIP_EXISTS_ACTION = os.environ.get("PIP_EXISTS_ACTION", "w")
Defaullts to (w)ipe
"""
PIPENV_RESOLVE_VCS = _is_env_truthy(os.environ.get("PIPENV_RESOLVE_VCS", 'true'))
PIPENV_RESOLVE_VCS = (
os.environ.get("PIPENV_RESOLVE_VCS") is None
or _is_env_truthy("PIPENV_RESOLVE_VCS")
)
"""Tells Pipenv whether to resolve all VCS dependencies in full.
As of Pipenv 2018.11.26, only editable VCS dependencies were resolved in full.
+1 -3
View File
@@ -379,10 +379,8 @@ fake-package = "*"
assert c.return_code == 0
c = p.pipenv('lock -r --pypi-mirror {0}'.format(mirror_url))
assert c.return_code == 0
assert '-i https://pypi.org/simple' in c.out.strip()
assert '-i {0}'.format(mirror_url) in c.out.strip()
assert '--extra-index-url https://test.pypi.org/simple' in c.out.strip()
# Mirror url should not have replaced source URLs
assert '-i {0}'.format(mirror_url) not in c.out.strip()
assert '--extra-index-url {}'.format(mirror_url) not in c.out.strip()