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
A common pattern before PEP735 was to use the PEP621 "extras"/optional dependency groups mechanism.
In #1795, we are looking to use the PEP621 style as evidence of dev dependencies, since setup.cfg doesn't support the PEP735 style.
There are a few concerns here:
We probably need to add some detailed documentation about all the different dependency declaration mechanisms supported by usethis. There's other considerations like Poetry's bespoke style, the deprecated [tool.uv.dev-dependencies] style.
Are we supporting the PEP621 style when using uv? What about Poetry?
I question whether we should bother supporting setup.cfg at all i.e. questioning Infer dependencies from setup.cfg #895, or at least whether we should support the idea of dev dependencies with setup.cfg (perhaps better to raise an error in such cases, suggesting a pyproject.toml migration.) Some tools won't support setup.cfg so the implications are tricky; e.g. poetry and uv I don't think support them. In any case something needs to make it clearer to the user that we are ignoring the setup.cfg file config if it does have an [options] section etc.
On writing this, I think it's best we close #1795 until this is resolved.
A common pattern before PEP735 was to use the PEP621 "extras"/optional dependency groups mechanism.
In #1795, we are looking to use the PEP621 style as evidence of dev dependencies, since
setup.cfgdoesn't support the PEP735 style.There are a few concerns here:
[tool.uv.dev-dependencies]style.setup.cfgat all i.e. questioning Infer dependencies fromsetup.cfg#895, or at least whether we should support the idea of dev dependencies withsetup.cfg(perhaps better to raise an error in such cases, suggesting apyproject.tomlmigration.) Some tools won't supportsetup.cfgso the implications are tricky; e.g. poetry and uv I don't think support them. In any case something needs to make it clearer to the user that we are ignoring thesetup.cfgfile config if it does have an[options]section etc.On writing this, I think it's best we close #1795 until this is resolved.