Dependency is resolved from pypi instead of git #3497
Labels
Category: Dependency Resolution
Issue relates to dependency resolution.
Category: VCS
Relates to version control system dependencies.
Status: Awaiting Update ⏳
This issue requires more information before assistance can be provided.
Type: Bug 🐛
This issue is a bug.
Type: Vendored Dependencies
This issue affects vendored dependencies within pipenv.
Milestone
Issue description
Installing a package with a dependency defined as a git url installs the dependency from pypi instead of git. This is in contrast to
pip
which actually installs the dependency of the package from the defined git repository. I tried everything mentioned in the diagnose documentation with no success.Expected result
Imagine two packages
package1
(v0.1.0a) andpackage2
(released on pypi as v0.2.1).package1
has not been released on pypi yet and depends on a unreleased development branch (v1.0.0a) ofpackage2
. Then the following command will install the development version ofpackage2
from git without problems:pipenv install -e git+https://git.somegithost.com/myorg/package1@devbranch#egg=package1
Actual result
The above command installs v0.2.1 of
package2
which as you can see is from pypi and not from git. The full output of an example of one such instance ofpipenv install --verbose
can be seen here.Steps to replicate
1. Create a pipenv shell with the following pipfile
Notice: The setup function for setuptools in setup.py file has
install_requires
defined.2. Check the version of
discord.py
installed. It should bediscord.py==0.16.12
instead of the rewrite branch which is1.0.0a
.$ pipenv --support
Pipenv version:
'2018.11.26'
Pipenv location:
'/home/meredith/.local/lib/python3.7/site-packages/pipenv'
Python location:
'/home/meredith/.pyenv/versions/3.7.1/bin/python3.7'
Python installations found:
3.7.1
:/home/meredith/.local/share/virtualenvs/Orator-jO5XcFKu/bin/python
3.7.1
:/home/meredith/.pyenv/versions/3.7.1/bin/python
3.7.1
:/home/meredith/.pyenv/versions/3.7.1/bin/python3.7m
3.6.7
:/home/meredith/.pyenv/versions/3.6.7/bin/python
3.6.7
:/home/meredith/.pyenv/versions/3.6.7/bin/python3.6m
3.5.6
:/home/meredith/.pyenv/versions/3.5.6/bin/python
3.5.6
:/home/meredith/.pyenv/versions/3.5.6/bin/python3.5m
3.5.3
:/home/meredith/.pyenv/versions/pypy3.5-6.0.0/bin/python
3.5.3
:/usr/bin/python3.5m
3.5.3
:/usr/bin/python3.5
2.7.15
:/home/meredith/.pyenv/versions/2.7.15/bin/python2.7
2.7.13
:/usr/bin/python2
PEP 508 Information:
System environment variables:
GS_LIB
KDE_FULL_SESSION
NVM_DIR
LS_COLORS
LANG
PROFILEHOME
DISPLAY
PYENV_ROOT
OLDPWD
SHELL_SESSION_ID
QSG_RENDER_LOOP
SDKMAN_CANDIDATES_API
COLORTERM
NVM_CD_FLAGS
PYENV_VIRTUALENV_INIT
PYENV_HOOK_PATH
KOTLIN_HOME
XDG_VTNR
PAM_KWALLET5_LOGIN
SSH_AUTH_SOCK
VIRTUAL_ENV
XDG_SESSION_ID
USER
PYENV_DIR
DESKTOP_SESSION
PIP_PYTHON_PATH
PWD
HOME
SSH_AGENT_PID
PYENV_VERSION
QT_ACCESSIBILITY
XDG_SESSION_TYPE
XDG_DATA_DIRS
PIPENV_ACTIVE
KONSOLE_DBUS_SESSION
XDG_SESSION_DESKTOP
KONSOLE_DBUS_WINDOW
SDKMAN_DIR
GTK_MODULES
TERM
SHELL
KONSOLE_DBUS_SERVICE
XDG_SESSION_CLASS
XDG_SEAT_PATH
XCURSOR_THEME
NVM_BIN
SDKMAN_CANDIDATES_DIR
XDG_CURRENT_DESKTOP
QMLSCENE_DEVICE
GPG_AGENT_INFO
QT_LINUX_ACCESSIBILITY_ALWAYS_ON
KONSOLE_PROFILE_NAME
PYTHONDONTWRITEBYTECODE
COLORFGBG
XDG_SEAT
SHLVL
PYENV_SHELL
LANGUAGE
WINDOWID
LOGNAME
PIP_DISABLE_PIP_VERSION_CHECK
DBUS_SESSION_BUS_ADDRESS
XDG_RUNTIME_DIR
XAUTHORITY
XDG_SESSION_PATH
QT_AUTO_SCREEN_SCALE_FACTOR
PATH
KDE_SESSION_UID
SDKMAN_VERSION
KDE_SESSION_VERSION
SDKMAN_PLATFORM
SESSION_MANAGER
PIP_SHIMS_BASE_MODULE
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
PIPENV_ACTIVE
:1
Debug–specific environment variables:
PATH
:/home/meredith/.pyenv/versions/3.7.1/bin:/home/meredith/.pyenv/libexec:/home/meredith/.pyenv/plugins/python-build/bin:/home/meredith/.pyenv/plugins/pyenv-virtualenv/bin:/home/meredith/.pyenv/plugins/pyenv-update/bin:/home/meredith/.pyenv/plugins/pyenv-installer/bin:/home/meredith/.pyenv/plugins/pyenv-doctor/bin:/home/meredith/.local/share/virtualenvs/Orator-jO5XcFKu/bin:/home/meredith/.pyenv/plugins/pyenv-virtualenv/shims:/home/meredith/.pyenv/shims:/home/meredith/.pyenv/bin:/home/meredith/.pyenv/versions/3.7.1/bin:/home/meredith/.pyenv/libexec:/home/meredith/.pyenv/plugins/python-build/bin:/home/meredith/.pyenv/plugins/pyenv-virtualenv/bin:/home/meredith/.pyenv/plugins/pyenv-update/bin:/home/meredith/.pyenv/plugins/pyenv-installer/bin:/home/meredith/.pyenv/plugins/pyenv-doctor/bin:/home/meredith/.sdkman/candidates/kotlin/current/bin:/home/meredith/.nvm/versions/node/v10.13.0/bin:/home/meredith/.pyenv/plugins/pyenv-virtualenv/shims:/home/meredith/.pyenv/shims:/home/meredith/.pyenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
SHELL
:/bin/bash
LANG
:en_CA.UTF-8
PWD
:/home/meredith/PycharmProjects/Orator
VIRTUAL_ENV
:/home/meredith/.local/share/virtualenvs/Orator-jO5XcFKu
Contents of
Pipfile
('/home/meredith/PycharmProjects/Orator/Pipfile'):Contents of
Pipfile.lock
('/home/meredith/PycharmProjects/Orator/Pipfile.lock'):The text was updated successfully, but these errors were encountered: