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

add uv_sync_groups and uv_sync_only_groups #113

Closed
resulal opened this issue Oct 25, 2024 · 1 comment
Closed

add uv_sync_groups and uv_sync_only_groups #113

resulal opened this issue Oct 25, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@resulal
Copy link

resulal commented Oct 25, 2024

What's the problem this feature will solve?

When using uv-venv-lock-runner with a uv.lock file, there is no option to specify the new dependency-groups, except with_dev boolean.

uv has already implemented --group and --only-group options to uv sync, where the latter also omits the project itself. Both options can be called multiple times.

Describe the solution you'd like

Similar to uv_sync_flags and extras, one can imagine specifying the dependency-groups as:

uv_sync_only_groups = 
  docs

where the following table exists in pyproject.toml file.

[dependency-groups]
docs = [
  "mkdocs>=1.6.0",
]

This way the uv.lock file can be used across multiple target tox run environments with the fast uv-venv-lock-runner runner.

@resulal resulal added the enhancement New feature or request label Oct 25, 2024
@gaborbernat
Copy link
Member

You can patch those flags directly via the configuration you mentioned. We don't actually need to expose it at a separate configuration.

@gaborbernat gaborbernat closed this as not planned Won't fix, can't repro, duplicate, stale Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants