Update packse to include `--python-platform` (#10531)

## Summary

Relevant for: https://github.com/astral-sh/uv/pull/10527.
This commit is contained in:
Charlie Marsh 2025-01-11 20:37:57 -05:00 committed by GitHub
parent 5788cd2b18
commit 7269273458
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 11 additions and 5 deletions

View File

@ -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.

View File

@ -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)]

View File

@ -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))]

View File

@ -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))]
@ -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
@ -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
@ -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

View File

@ -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

View File

@ -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>