Skip to content

Conversation

@charliermarsh
Copy link
Member

Summary

This PR adds support for tool.uv.default-groups, which defaults to ["dev"] for backwards-compatibility. These represent the groups we sync by default.

@charliermarsh
Copy link
Member Author

@zanieb -- We might need --no-group foo now that we have this.

@charliermarsh charliermarsh force-pushed the charlie/default-groups branch 4 times, most recently from 084dfd5 to 8b864be Compare October 22, 2024 17:52
@charliermarsh charliermarsh requested a review from zanieb October 22, 2024 17:52
@charliermarsh charliermarsh added the enhancement New feature or improvement to existing functionality label Oct 22, 2024
pub(crate) spec: DevGroupsSpecification,
/// The default groups to include.
pub(crate) defaults: Vec<GroupName>,
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't feel strongly on the name here, but this is the specification along with the project-specific defaults.

@zanieb
Copy link
Member

zanieb commented Oct 22, 2024

Yeah I was imagining adding --no-default-groups, --no-group seems fine too.

/// Include dependencies from the specified groups.
Include(Vec<GroupName>),
/// Do not include dependencies from groups.
Exclude,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made this the None case for groups: Option<GroupsSpecification>, to mirror dev: Option< DevMode>.

@charliermarsh charliermarsh force-pushed the charlie/default-groups branch from 8b864be to df57bf3 Compare October 22, 2024 18:03
@charliermarsh charliermarsh force-pushed the charlie/default-groups branch from d89dd18 to 5e17cab Compare October 22, 2024 19:07
@charliermarsh charliermarsh merged commit 8d08a65 into tracking/735 Oct 22, 2024
@charliermarsh charliermarsh deleted the charlie/default-groups branch October 22, 2024 19:12
@zanieb zanieb mentioned this pull request Oct 22, 2024
charliermarsh added a commit that referenced this pull request Oct 23, 2024
## Summary

This PR adds support for `tool.uv.default-groups`, which defaults to
`["dev"]` for backwards-compatibility. These represent the groups we
sync by default.
charliermarsh added a commit that referenced this pull request Oct 25, 2024
This PR adds support for `tool.uv.default-groups`, which defaults to
`["dev"]` for backwards-compatibility. These represent the groups we
sync by default.
charliermarsh added a commit that referenced this pull request Oct 25, 2024
This PR adds support for `tool.uv.default-groups`, which defaults to
`["dev"]` for backwards-compatibility. These represent the groups we
sync by default.
charliermarsh added a commit that referenced this pull request Oct 25, 2024
This PR adds support for `tool.uv.default-groups`, which defaults to
`["dev"]` for backwards-compatibility. These represent the groups we
sync by default.
zanieb pushed a commit that referenced this pull request Oct 25, 2024
This PR adds support for `tool.uv.default-groups`, which defaults to
`["dev"]` for backwards-compatibility. These represent the groups we
sync by default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or improvement to existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants