Skip to content

Commit

Permalink
fix: allow exact yanked packages (prefix-dev#2116)
Browse files Browse the repository at this point in the history
Co-authored-by: Tim de Jager <[email protected]>
  • Loading branch information
nichmor and tdejager authored Sep 23, 2024
1 parent cf91da2 commit 7294fce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lock_file/resolve/pypi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,8 @@ pub async fn resolve_pypi(
.into_diagnostic()
.context("error creating requires-python for solver")?;

let markers = ResolverMarkers::SpecificEnvironment(marker_environment.into());

let fallback_provider = DefaultResolverProvider::new(
DistributionDatabase::new(
&registry_client,
Expand All @@ -406,7 +408,7 @@ pub async fn resolve_pypi(
&flat_index,
Some(&tags),
Some(&requires_python),
AllowedYanks::default(),
AllowedYanks::from_manifest(&manifest, &markers, options.dependency_mode),
&context.hash_strategy,
options.exclude_newer,
&context.build_options,
Expand All @@ -427,7 +429,7 @@ pub async fn resolve_pypi(
manifest,
options,
&context.hash_strategy,
ResolverMarkers::SpecificEnvironment(marker_environment.into()),
markers,
&PythonRequirement::from_python_version(&interpreter, &python_version),
&resolver_in_memory_index,
&git_resolver,
Expand Down
1 change: 1 addition & 0 deletions tests/wheel_tests/wheels.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pytest-benchmark = "*"
pyvista = "*"
ruff = "*"
scipy = "*"
setuptools-scm = "6.2.0"
taichi = "*"
trimesh = "*"
typeguard = "*"
Expand Down

0 comments on commit 7294fce

Please sign in to comment.