-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Installing an editable package can result in using the wrong canonical package name in Pipfile #6409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This code is incorrectly treating any filename that ends with pipenv/pipenv/utils/dependencies.py Lines 859 to 863 in 861b3c6
The |
Oh also, the following will search leaf directories before checking parent directories for files as directories are searched before files within a directory: pipenv/pipenv/utils/dependencies.py Lines 688 to 702 in 861b3c6
i.e: given:
it looks like this will search in the order:
|
Issue description
Create a local Python package called
mypackage
with amypackage/mypackage/tests/test_setup.py
file (see mypackage.zip):( export PIPENV_NO_INHERIT=1; pipenv run echo )
pipenv install -e ./mypackage
setup.py
, i.e:grep mypackage Pipfile
showsfoo = {file = "mypackage"}
notmypackage = {file = "mypackage"}
as expected.Expected result
The package should be named correctly in Pipfile.
Actual result
The package name is incorrectly parsed from a test file.
Steps to replicate
See above.
Please run
$ pipenv --support
, and paste the results here. Don't put backticks (`
) around it! The output already contains Markdown formatting.$ pipenv --support
Pipenv version:
'2025.0.2'
Pipenv location:
'/home/stewart/.local/share/pipx/venvs/pipenv/lib/python3.10/site-packages/pipenv'
Python location:
'/home/stewart/.local/share/pipx/venvs/pipenv/bin/python'
OS Name:
'posix'
User pip version:
'25.0.1'
user Python installations found:
3.10.12
:/usr/bin/python3
3.10.12
:/usr/bin/python
3.10.12
:/bin/python3
3.10.12
:/bin/python
3.8.20
:/usr/bin/python3.8
3.8.20
:/bin/python3.8
PEP 508 Information:
System environment variables:
SHELL
PIPENV_VENV_IN_PROJECT
TERMCAP
SSH_AUTH_SOCK
WINDOW
SSH_AGENT_PID
PWD
LOGNAME
XDG_SESSION_TYPE
MOTD_SHOWN
HOME
LANG
LS_COLORS
SSH_CONNECTION
LESSCLOSE
XDG_SESSION_CLASS
TERM
LESSOPEN
USER
XLA_FLAGS
SHLVL
XDG_SESSION_ID
LD_LIBRARY_PATH
XDG_RUNTIME_DIR
SSH_CLIENT
XDG_DATA_DIRS
PATH
STY
DBUS_SESSION_BUS_ADDRESS
SSH_TTY
OLDPWD
_
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PIP_FIND_LINKS
PIP_NO_BUILD_ISOLATION
PIPENV_SKIP_LOCK
Pipenv–specific environment variables:
PIPENV_VENV_IN_PROJECT
:true
PIPENV_SKIP_LOCK
:true
Debug–specific environment variables:
PATH
:/home/stewart/bin/node/bin:/usr/local/cuda/bin:/usr/local/nvidia/bin:/home/stewart/bin/cmake/bin:~/.local/bin:/home/stewart/.local/bin:/home/stewart/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/halyard/bin
SHELL
:/bin/bash
LANG
:en_US.UTF-8
PWD
:/home/stewart/src/agentic/service/tmp
Contents of
Pipfile
('/home/stewart/src/agentic/service/tmp/Pipfile'):The text was updated successfully, but these errors were encountered: