Bump packse

This commit is contained in:
Zanie 2024-01-25 18:49:56 -06:00
parent ecba550152
commit dce07c2ca7
3 changed files with 11 additions and 8 deletions

View File

@ -1,7 +1,7 @@
//! DO NOT EDIT //! DO NOT EDIT
//! //!
//! Generated with ./scripts/scenarios/update.py //! Generated with ./scripts/scenarios/update.py
//! Scenarios from <https://github.com/zanieb/packse/tree/a451c95105db0c2897d0ad1bde0703ba0fc40d3a/scenarios> //! Scenarios from <https://github.com/zanieb/packse/tree/0563417be973397d05b45cd2c5b415d7215161e3/scenarios>
//! //!
#![cfg(all(feature = "python", feature = "pypi"))] #![cfg(all(feature = "python", feature = "pypi"))]
@ -261,7 +261,7 @@ fn requires_incompatible_python_version_compatible_override_no_wheels() -> Resul
/// version installed elsewhere on their system. /// version installed elsewhere on their system.
/// ///
/// ```text /// ```text
/// ae5b2665 /// 23e00318
/// ├── environment /// ├── environment
/// │ ├── python3.11 /// │ ├── python3.11
/// │ └── python3.9 (active) /// │ └── python3.9 (active)
@ -283,11 +283,11 @@ fn requires_incompatible_python_version_compatible_override_no_wheels_available_
// In addition to the standard filters, swap out package names for more realistic messages // In addition to the standard filters, swap out package names for more realistic messages
let mut filters = INSTA_FILTERS.to_vec(); let mut filters = INSTA_FILTERS.to_vec();
filters.push((r"a-ae5b2665", "albatross")); filters.push((r"a-23e00318", "albatross"));
filters.push((r"-ae5b2665", "")); filters.push((r"-23e00318", ""));
let requirements_in = temp_dir.child("requirements.in"); let requirements_in = temp_dir.child("requirements.in");
requirements_in.write_str("a-ae5b2665==1.0.0")?; requirements_in.write_str("a-23e00318==1.0.0")?;
let mut inner = Command::new(get_cargo_bin(BIN_NAME)); let mut inner = Command::new(get_cargo_bin(BIN_NAME));
let mut command = inner let mut command = inner
@ -322,7 +322,10 @@ fn requires_incompatible_python_version_compatible_override_no_wheels_available_
// Since there is a compatible Python version available on the system, it should be // Since there is a compatible Python version available on the system, it should be
// used to build the source distributions. // used to build the source distributions.
command.assert().success(); command
.assert()
.success()
.stdout(predicate::str::contains("a-23e00318==1.0.0"));
Ok(()) Ok(())
} }

View File

@ -1,7 +1,7 @@
//! DO NOT EDIT //! DO NOT EDIT
//! //!
//! Generated with ./scripts/scenarios/update.py //! Generated with ./scripts/scenarios/update.py
//! Scenarios from <https://github.com/zanieb/packse/tree/a451c95105db0c2897d0ad1bde0703ba0fc40d3a/scenarios> //! Scenarios from <https://github.com/zanieb/packse/tree/0563417be973397d05b45cd2c5b415d7215161e3/scenarios>
//! //!
#![cfg(all(feature = "python", feature = "pypi"))] #![cfg(all(feature = "python", feature = "pypi"))]

View File

@ -45,7 +45,7 @@ import textwrap
from pathlib import Path from pathlib import Path
PACKSE_COMMIT = "a451c95105db0c2897d0ad1bde0703ba0fc40d3a" PACKSE_COMMIT = "0563417be973397d05b45cd2c5b415d7215161e3"
TOOL_ROOT = Path(__file__).parent TOOL_ROOT = Path(__file__).parent
TEMPLATES = TOOL_ROOT / "templates" TEMPLATES = TOOL_ROOT / "templates"
INSTALL_TEMPLATE = TEMPLATES / "install.mustache" INSTALL_TEMPLATE = TEMPLATES / "install.mustache"