Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntSushi committed Sep 3, 2024
1 parent 08fc8ad commit da57490
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ jobs:
- name: "Cargo test"
working-directory: ${{ env.UV_WORKSPACE }}
run: |
cargo nextest run --no-default-features --features python,pypi --workspace --status-level skip --failure-output immediate-final --no-fail-fast -j 20 --final-status-level slow
cargo test -p uv --test pip_compile -- tomli_less_than_python311
- name: "Smoke test"
working-directory: ${{ env.UV_WORKSPACE }}
Expand Down
8 changes: 6 additions & 2 deletions crates/uv/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1037,17 +1037,21 @@ pub fn run_and_format_with_status<T: AsRef<str>>(
// cause the set of dependencies to be the same across platforms.
if cfg!(windows) {
if let Some(windows_filters) = windows_filters {
// 47 │-tzdata==2024.1
// 48 │- # via pandas

// The optional leading +/-/~ is for install logs, the optional next line is for lockfiles
let windows_only_deps = [
(r"( ?[-+~] ?)?colorama==\d+(\.\d+)+( \\n\s+--hash=.*)?\n(\s+# via .*\n)?"),
(r"( ?[-+~] ?)?colorama==\d+(\.\d+)+\s+[-+~]?(\s+# via .*)?\n"),
(r"( ?[-+~] ?)?colorama==\d+(\.\d+)+(\s+[-+~]?\s+# via .*)?\n"),
(r"( ?[-+~] ?)?tzdata==\d+(\.\d+)+( \\n\s+--hash=.*)?\n(\s+# via .*\n)?"),
(r"( ?[-+~] ?)?tzdata==\d+(\.\d+)+\s+[-+~]?(\s+# via .*)?\n"),
(r"( ?[-+~] ?)?tzdata==\d+(\.\d+)+(\s+[-+~]?\s+# via .*)?\n"),
];
let mut removed_packages = 0;
for windows_only_dep in windows_only_deps {
// TODO(konstin): Cache regex compilation
let re = Regex::new(windows_only_dep).unwrap();
dbg!((&re, &snapshot, re.is_match(&snapshot)));
if re.is_match(&snapshot) {
snapshot = re.replace(&snapshot, "").to_string();
removed_packages += 1;
Expand Down

0 comments on commit da57490

Please sign in to comment.