Open BeRT2me opened 1 year ago
duplicate #3718
that one was closed as a duplicate of #2357 which I think is not quite right: they're more like duals than duplicates, two sides of the same coin
still it likely makes sense to note as much in a single place - ie #2357 - and track this just once. Both should simply be rejected as misconfiguration
My real reason for discovering this was troubleshooting unexpected results when doing something like:
[tool.poetry.dependencies]
sqlalchemy = [
{version = "^1.4.48", optional = false},
{version = "^1.4.48", extras = ["asyncio"], optional = true},
]
[tool.poetry.extras]
async = ["sqlalchemy"]
Where I wanted particular extras - only when installing extras to my own app - but otherwise just the package without extras.
This doesn't work, (sqlalchemy
only installs when installing my package with extras) but is it even a possible configuration pip
wise even?
[tool.poetry.extras] extra = ["package"]
package = {version = "^1.4.49", optional = false}
package = {version = "^1.4.49", optional = true}