You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am on the latest stable Poetry version, installed using a recommended method.
I have searched the issues of this repo and believe that this is not a duplicate.
I have consulted the FAQ and blog for any relevant entries or release notes.
If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.
Issue
During poetry export, extras and optional groups do not work properly with each other. While poetry export works properly with either optional groups or extras, if I don't use extras, my pypi build do not have extra dependencies. If I don't use dependency groups, when calling poetry install -E "A B" will remove extra dependency "C", unlike poetry install --with.
Note that numpy is an optional dependency. When running poetry export --without-hashes -o d.txt --without=A I get the following, which included the optional numpy.
numpy==1.24.2 ; python_version >= "3.9" and python_version < "4.0"
-vvv
option) and have included the output below.Issue
During
poetry export
, extras and optional groups do not work properly with each other. Whilepoetry export
works properly with either optional groups or extras, if I don't use extras, my pypi build do not have extra dependencies. If I don't use dependency groups, when callingpoetry install -E "A B"
will remove extra dependency "C", unlikepoetry install --with
.❌ Have both extras and groups
Note that
numpy
is an optional dependency. When runningpoetry export --without-hashes -o d.txt --without=A
I get the following, which included the optionalnumpy
.✅ Have only extras
poetry export --without-hashes -o d.txt
follows expectation and exports an emptyrequirements.txt
.✅ Have only extra groups
poetry export --without-hashes -o d.txt
follows expectation and exports an emptyrequirements.txt
.The text was updated successfully, but these errors were encountered: