Closed JacobHayes closed 1 year ago
Thanks for poitning out the version conflicts in the extra!
However the groups do need the optional flag:
With the optional flags
> poetry install
Updating dependencies
Resolving dependencies...
Writing lock file
No dependencies to install or update
Installing the current project: python-box (7.0.0rc3)
Without
> poetry install
Package operations: 40 installs, 6 updates, 0 removals
...
Ah, that makes sense. Those deps (dev
and test
group) I think are only installed when inside the project using poetry install
(which includes the dev deps by default), but not when another package installs python-box
I removed that commit and the poetry.lock
I accidentally committed (though you might consider tracking that if you want to 😄).
Yup the dev
and test
are really so I can use them in the github action workflows, and that way just add poetry install --with dev
or --with test
for which use case.
The
tool.poetry.extras
fields takes package names, not full names+versions (the version constraints are pulled from the main dependency spec). Apparently, poetry would silently drop invalid (or maybe just unmatched) extra names, soruamel
andtomli
, which had version constraints in the extras name, were not correctly marked as extra.Here's some of the generated
METADATA
file before:and after:
Or the diff in the
extras
section in thepoetry.lock
: