Replace outdated DevGroups* naming (#11921)

At certain points in the code, dependency groups are represented by
`DevGroups*` naming, probably as a historical artifact. This PR updates
the naming.

This includes renaming `uv-configuration/src/dev.rs` to
`uv-configuration/src/dependency_groups.rs`.
This commit is contained in:
John Mumm 2025-03-03 16:39:44 +01:00 committed by GitHub
parent d57bb90499
commit a5fa7fa996
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 200 additions and 194 deletions

View file

@ -9,7 +9,9 @@ use itertools::Itertools;
use petgraph::Graph;
use rustc_hash::{FxBuildHasher, FxHashMap, FxHashSet};
use uv_configuration::{BuildOptions, DevGroupsManifest, ExtrasSpecification, InstallOptions};
use uv_configuration::{
BuildOptions, DependencyGroupsWithDefaults, ExtrasSpecification, InstallOptions,
};
use uv_distribution_types::{Edge, Node, Resolution, ResolvedDist};
use uv_normalize::{ExtraName, GroupName, PackageName};
use uv_pep508::MarkerTree;
@ -38,7 +40,7 @@ pub trait Installable<'lock> {
marker_env: &ResolverMarkerEnvironment,
tags: &Tags,
extras: &ExtrasSpecification,
dev: &DevGroupsManifest,
dev: &DependencyGroupsWithDefaults,
build_options: &BuildOptions,
install_options: &InstallOptions,
) -> Result<Resolution, LockError> {

View file

@ -12,7 +12,9 @@ use petgraph::{Direction, Graph};
use rustc_hash::{FxBuildHasher, FxHashMap, FxHashSet};
use url::Url;
use uv_configuration::{DevGroupsManifest, EditableMode, ExtrasSpecification, InstallOptions};
use uv_configuration::{
DependencyGroupsWithDefaults, EditableMode, ExtrasSpecification, InstallOptions,
};
use uv_distribution_filename::{DistExtension, SourceDistExtension};
use uv_fs::Simplified;
use uv_git_types::GitReference;
@ -38,7 +40,7 @@ impl<'lock> RequirementsTxtExport<'lock> {
target: &impl Installable<'lock>,
prune: &[PackageName],
extras: &ExtrasSpecification,
dev: &DevGroupsManifest,
dev: &DependencyGroupsWithDefaults,
editable: EditableMode,
hashes: bool,
install_options: &'lock InstallOptions,

View file

@ -7,7 +7,7 @@ use petgraph::prelude::EdgeRef;
use petgraph::Direction;
use rustc_hash::{FxBuildHasher, FxHashMap, FxHashSet};
use uv_configuration::DevGroupsManifest;
use uv_configuration::DependencyGroupsWithDefaults;
use uv_normalize::{ExtraName, GroupName, PackageName};
use uv_pep440::Version;
use uv_pep508::MarkerTree;
@ -39,7 +39,7 @@ impl<'env> TreeDisplay<'env> {
depth: usize,
prune: &[PackageName],
packages: &[PackageName],
dev: &DevGroupsManifest,
dev: &DependencyGroupsWithDefaults,
no_dedupe: bool,
invert: bool,
) -> Self {