Skip to content

Commit

Permalink
Update packse to include --python-platform (#10531)
Browse files Browse the repository at this point in the history
## Summary

Relevant for: #10527.
  • Loading branch information
charliermarsh authored Jan 12, 2025
1 parent 5788cd2 commit 7269273
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/uv/tests/it/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ use uv_static::EnvVars;
// Exclude any packages uploaded after this date.
static EXCLUDE_NEWER: &str = "2024-03-25T00:00:00Z";

pub const PACKSE_VERSION: &str = "0.3.42";
pub const PACKSE_VERSION: &str = "0.3.43";

/// Using a find links url allows using `--index-url` instead of `--extra-index-url` in tests
/// to prevent dependency confusion attacks against our test suite.
Expand Down
2 changes: 1 addition & 1 deletion crates/uv/tests/it/lock_scenarios.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! DO NOT EDIT
//!
//! Generated with `./scripts/sync_scenarios.sh`
//! Scenarios from <https://github.com/astral-sh/packse/tree/0.3.42/scenarios>
//! Scenarios from <https://github.com/astral-sh/packse/tree/0.3.43/scenarios>
//!
#![cfg(all(feature = "python", feature = "pypi"))]
#![allow(clippy::needless_raw_string_hashes)]
Expand Down
2 changes: 1 addition & 1 deletion crates/uv/tests/it/pip_compile_scenarios.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! DO NOT EDIT
//!
//! Generated with `./scripts/sync_scenarios.sh`
//! Scenarios from <https://github.com/astral-sh/packse/tree/0.3.42/scenarios>
//! Scenarios from <https://github.com/astral-sh/packse/tree/0.3.43/scenarios>
//!
#![cfg(all(feature = "python", feature = "pypi", unix))]

Expand Down
5 changes: 4 additions & 1 deletion crates/uv/tests/it/pip_install_scenarios.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! DO NOT EDIT
//!
//! Generated with `./scripts/sync_scenarios.sh`
//! Scenarios from <https://github.com/astral-sh/packse/tree/0.3.42/scenarios>
//! Scenarios from <https://github.com/astral-sh/packse/tree/0.3.43/scenarios>
//!
#![cfg(all(feature = "python", feature = "pypi", unix))]

Expand Down Expand Up @@ -4079,6 +4079,7 @@ fn no_sdist_no_wheels_with_matching_abi() {
filters.push((r"no-sdist-no-wheels-with-matching-abi-", "package-"));

uv_snapshot!(filters, command(&context)
.arg("--python-platform=x86_64-manylinux2014")
.arg("no-sdist-no-wheels-with-matching-abi-a")
, @r###"
success: false
Expand Down Expand Up @@ -4119,6 +4120,7 @@ fn no_sdist_no_wheels_with_matching_platform() {
filters.push((r"no-sdist-no-wheels-with-matching-platform-", "package-"));

uv_snapshot!(filters, command(&context)
.arg("--python-platform=x86_64-manylinux2014")
.arg("no-sdist-no-wheels-with-matching-platform-a")
, @r###"
success: false
Expand Down Expand Up @@ -4159,6 +4161,7 @@ fn no_sdist_no_wheels_with_matching_python() {
filters.push((r"no-sdist-no-wheels-with-matching-python-", "package-"));

uv_snapshot!(filters, command(&context)
.arg("--python-platform=x86_64-manylinux2014")
.arg("no-sdist-no-wheels-with-matching-python-a")
, @r###"
success: false
Expand Down
2 changes: 1 addition & 1 deletion scripts/scenarios/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ msgspec==0.18.6
# via packse
packaging==24.2
# via hatchling
packse==0.3.42
packse==0.3.43
# via -r scripts/scenarios/requirements.in
pathspec==0.12.1
# via hatchling
Expand Down
3 changes: 3 additions & 0 deletions scripts/scenarios/templates/install.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ fn {{module_name}}() {
.arg("--no-binary")
.arg("{{.}}")
{{/resolver_options.no_binary}}
{{#resolver_options.python_platform}}
.arg("--python-platform={{.}}")
{{/resolver_options.python_platform}}
{{#root.requires}}
.arg("{{requirement}}")
{{/root.requires}}, @r###"<snapshot>
Expand Down

0 comments on commit 7269273

Please sign in to comment.