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
Hi, first of all, thanks for this great tool which has significantly changed how I develop and work with Python!
I would like to request an extra configuration option to read the dev dependencies from a specific packaging extra (i.e. a key under optional dependencies).
Example
uv allows developers to configure dev dependencies as part of the uv.tool table in pyproject.toml.
[tool.uv]
dev-dependencies = ["ruff==0.5.0"]
Many teams have been using an optional dev extra to specify the optional dependencies needed for development, testing etc.
[project.optional-dependencies]
dev = ["ruff==0.5.0"]
Using tool.uv.dev-dependencies limits the use of dev dependencies only to uv. It would be very helpful if we could alternatively tell uv to use a specific extra, something like this:
[tool.uv]
dev-dependencies.extra = "dev"
This would allow using dev dependencies also by other tools, such as pure pip (pip install .[dev]) and additionally help us migrate to uv more seamlessly.
Thanks!
(Side note on the suggested pyproject.toml notation: It reminds me of how setuptools configures packages -- either set the packages as list in tool.setuptools.packages or configure custom discovery settings using options such as tool.setuptools.packages.find.)
The text was updated successfully, but these errors were encountered:
Good timing -- I think the newly-accepted PEP 735 standard (#8090) will cover this, and we've already started implementing this. Feel free to track that issue!
Hi, first of all, thanks for this great tool which has significantly changed how I develop and work with Python!
I would like to request an extra configuration option to read the dev dependencies from a specific packaging extra (i.e. a key under optional dependencies).
Example
uv
allows developers to configure dev dependencies as part of theuv.tool
table in pyproject.toml.Many teams have been using an optional
dev
extra to specify the optional dependencies needed for development, testing etc.Using
tool.uv.dev-dependencies
limits the use of dev dependencies only touv
. It would be very helpful if we could alternatively telluv
to use a specific extra, something like this:This would allow using dev dependencies also by other tools, such as pure
pip
(pip install .[dev]
) and additionally help us migrate touv
more seamlessly.Thanks!
(Side note on the suggested
pyproject.toml
notation: It reminds me of howsetuptools
configures packages -- either set the packages as list intool.setuptools.packages
or configure custom discovery settings using options such astool.setuptools.packages.find
.)The text was updated successfully, but these errors were encountered: