Skip to content

Commit c0dde3c

Browse files
Remove all special-casing for local version identifiers (#8818)
## Summary After #8797, we have spec-compliant handling for local version identifiers and can completely remove all the special-casing around it.
1 parent a3cfe72 commit c0dde3c

File tree

6 files changed

+3
-396
lines changed

6 files changed

+3
-396
lines changed

crates/uv-requirements/src/lookahead.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use crate::{required_dist, Error};
1818
/// A resolver for resolving lookahead requirements from direct URLs.
1919
///
2020
/// The resolver extends certain privileges to "first-party" requirements. For example, first-party
21-
/// requirements are allowed to contain direct URL references, local version specifiers, and more.
21+
/// requirements are allowed to contain direct URL references.
2222
///
2323
/// The lookahead resolver resolves requirements recursively for direct URLs, so that the resolver
2424
/// can treat them as first-party dependencies for the purpose of analyzing their specifiers.

crates/uv-resolver/src/manifest.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ impl Manifest {
106106
/// - Determining which requirements should allow yanked versions.
107107
/// - Determining which requirements should allow pre-release versions (e.g., `torch>=2.2.0a1`).
108108
/// - Determining which requirements should allow direct URLs (e.g., `torch @ https://...`).
109-
/// - Determining which requirements should allow local version specifiers (e.g., `torch==2.2.0+cpu`).
110109
pub fn requirements<'a>(
111110
&'a self,
112111
env: &'a ResolverEnvironment,

crates/uv-resolver/src/resolver/locals.rs

Lines changed: 0 additions & 201 deletions
This file was deleted.

crates/uv-resolver/src/resolver/locals/tests.rs

Lines changed: 0 additions & 130 deletions
This file was deleted.

0 commit comments

Comments
 (0)