pipenv lock
does not populate Pipfile.lock
with specified extras
#5817
Labels
PR: awaiting-review
The PR related to this issue is awaiting review by a maintainer.
Type: Bug 🐛
This issue is a bug.
I have a
pyproject.toml
file that defines the project dependencies and optional dependencies.This is my
Pipfile
:Issue description
Previously reported similar unresolved issues:
Pipfile.lock
#4407When I run
pipenv lock
orpipenv lock --clear
, thePipfile.lock
file does not contain all the packages defined in extras.Expected result
alembic-packages
section in thePipfile.lock
should includealembic
.Actual result
alembic-packages
section in thePipfile.lock
does not includealembic
defined inalembic
extras, but only includes the direct dependency i.e.requests
.Steps to replicate
pyproject.toml
andPipfile
pipenv lock
orpipenv install
$ pipenv --support
Pipenv version:
'2023.7.11'
Pipenv location:
'/opt/homebrew/lib/python3.11/site-packages/pipenv'
Python location:
'/opt/homebrew/opt/[email protected]/bin/python3.11'
OS Name:
'posix'
User pip version:
'23.0.1'
user Python installations found:
PEP 508 Information:
System environment variables:
TERM_SESSION_ID
SSH_AUTH_SOCK
LC_TERMINAL_VERSION
COLORFGBG
ITERM_PROFILE
XPC_FLAGS
LANG
PWD
SHELL
__CFBundleIdentifier
SECURITYSESSIONID
TERM_PROGRAM_VERSION
TERM_PROGRAM
PATH
LC_TERMINAL
COLORTERM
COMMAND_MODE
TERM
HOME
TMPDIR
USER
XPC_SERVICE_NAME
LOGNAME
LaunchInstanceID
__CF_USER_TEXT_ENCODING
ITERM_SESSION_ID
SHLVL
OLDPWD
HOMEBREW_PREFIX
HOMEBREW_CELLAR
HOMEBREW_REPOSITORY
MANPATH
INFOPATH
P9K_TTY
_P9K_TTY
ZSH
PAGER
LESS
LSCOLORS
LS_COLORS
P9K_SSH
JFROG_USERNAME
JFROG_ACCESS_TOKEN
JAVA_HOME
SNVM_AUTH
GITHUB_TOKEN
TF_VAR_AWS_ACCESS_KEY_ID
TF_VAR_AWS_SECRET_ACCESS_KEY
TF_BACKEND_CONFIG
CIRCLECI_aws_eks_circleci_runner
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_REGION
DOCKER_DEFAULT_PLATFORM
PYENV_ROOT
PYENV_SHELL
_
PYTHONDONTWRITEBYTECODE
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/Users/ranjanl/.pyenv/versions/3.9.13/bin:/Users/ranjanl/.pyenv/versions/3.10.6/bin:/Users/ranjanl/.pyenv/shims:/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin:/Users/ranjanl/bin:/usr/local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
SHELL
:/bin/zsh
LANG
:en_US.UTF-8
PWD
:/Users/ranjanl/github/pipenv-test
Contents of
Pipfile
('/Users/ranjanl/github/pipenv-test/Pipfile'):Contents of
Pipfile.lock
('/Users/ranjanl/github/pipenv-test/Pipfile.lock'):The text was updated successfully, but these errors were encountered: