Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uv sync should run with --no-dev #93

Closed
hynek opened this issue Sep 19, 2024 · 2 comments · Fixed by #95
Closed

uv sync should run with --no-dev #93

hynek opened this issue Sep 19, 2024 · 2 comments · Fixed by #95
Labels
bug Something isn't working

Comments

@hynek
Copy link
Contributor

hynek commented Sep 19, 2024

Currently, there's only one flat namespace in tool.uv.dev-dependencies that people are likely to use to define their dev environments. When not told otherwise, uv sync installs them.

For example

[project.optional-dependencies]
tests = ["pytest"]
docs = ["sphinx"]

[tool.uv]
tool.uv.dev-dependencies = [".[tests,docs]", "ipython"]

This is not stuff you want (always) in your tox environments.

Extras for dev environments are totally coming, but until then, you should pass --no-dev.

@hynek hynek added the bug Something isn't working label Sep 19, 2024
@gaborbernat
Copy link
Member

I am open to that idea. However, I consider this an enhancement and not a bug. Also, I would prefer if adding or disabling this flag can be configurable and by default can be enabled.

@hynek
Copy link
Contributor Author

hynek commented Sep 19, 2024

I cannot change the labels. 🤓

Having a flag would be great -- but I would suggest to turn it off for now, since the behavior surprising. You pass extras, but under certain conditions you get everything and can't turn it off.

So, quick fix would be to disable it altogether until uv grows proper support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants