tenzir-test 0.13.0__py3-none-any.whl → 0.13.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -106,11 +106,16 @@ class DiffRunner(TqlRunner):
106
106
  fixture_api.pop_context(context_token)
107
107
  run_mod.cleanup_test_tmp_dir(env.get(run_mod.TEST_TMP_ENV_VAR))
108
108
 
109
+ # Strip the ROOT prefix from paths in output to make them relative,
110
+ # consistent with run_simple_test behavior.
111
+ root_bytes = str(run_mod.ROOT).encode() + b"/"
112
+ unoptimized_stdout = unoptimized.stdout.replace(root_bytes, b"")
113
+ optimized_stdout = optimized.stdout.replace(root_bytes, b"")
109
114
  diff_chunks = list(
110
115
  difflib.diff_bytes(
111
116
  difflib.unified_diff,
112
- unoptimized.stdout.splitlines(keepends=True),
113
- optimized.stdout.splitlines(keepends=True),
117
+ unoptimized_stdout.splitlines(keepends=True),
118
+ optimized_stdout.splitlines(keepends=True),
114
119
  n=2**31 - 1,
115
120
  )
116
121
  )[3:]
@@ -118,7 +123,7 @@ class DiffRunner(TqlRunner):
118
123
  diff_bytes = b"".join(diff_chunks)
119
124
  else:
120
125
  diff_bytes = b"".join(
121
- b" " + line for line in unoptimized.stdout.splitlines(keepends=True)
126
+ b" " + line for line in unoptimized_stdout.splitlines(keepends=True)
122
127
  )
123
128
  ref_path = test.with_suffix(".diff")
124
129
  if update:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tenzir-test
3
- Version: 0.13.0
3
+ Version: 0.13.1
4
4
  Summary: Reusable test execution framework extracted from the Tenzir repository.
5
5
  Project-URL: Homepage, https://github.com/tenzir/test
6
6
  Project-URL: Repository, https://github.com/tenzir/test
@@ -63,18 +63,18 @@ for an end-to-end walkthrough of writing tests.
63
63
  We also provide a dense [reference](https://docs.tenzir.com/reference/test) that
64
64
  explains concepts, configuration, multi-project execution, and CLI details.
65
65
 
66
- ## 🧑‍💻 Development
67
-
68
- Contributor workflows, quality gates, and release procedures live in
69
- [`DEVELOPMENT.md`](DEVELOPMENT.md). Follow that guide when you work on the
70
- project locally.
71
-
72
66
  ## 🗞️ Releases
73
67
 
74
68
  New versions are published to PyPI through trusted publishing when a GitHub
75
69
  release is created. Review the latest release notes on GitHub for details about
76
70
  what's new.
77
71
 
72
+ ## 🤝 Contributing
73
+
74
+ Want to contribute? We're all-in on agentic coding with [Claude
75
+ Code](https://claude.ai/code)! The repo comes pre-configured with our [custom
76
+ plugins](https://github.com/tenzir/claude-plugins)—just clone and start hacking.
77
+
78
78
  ## 📜 License
79
79
 
80
80
  `tenzir-test` is available under the Apache License, Version 2.0. See
@@ -1,6 +1,5 @@
1
1
  tenzir_test/__init__.py,sha256=k7V6Pbjaa8SAy6t4KnaauHTyfnyVEwc1VGtH823MANU,1181
2
2
  tenzir_test/_python_runner.py,sha256=LmghMIolsNEC2wUyJdv1h_cefOxTxET1IACrw-_hHuY,2900
3
- tenzir_test/checks.py,sha256=VhZjU1TExqWzA1KcaW1xOGICpqb_G43AezrJIzw09eM,653
4
3
  tenzir_test/cli.py,sha256=JJNCaF-vZSql6kvPGG4JwO9Z8XIwQWe_5bKuBiuGjLE,6553
5
4
  tenzir_test/config.py,sha256=bVuMJlEvevZxCmvzTJ4bs4SkYLNGZtxcCDYhtC-0sp8,1697
6
5
  tenzir_test/packages.py,sha256=cTCQdGjCS1XmuKyiwh0ew-z9tHn6J-xZ6nvBP-hU8bc,948
@@ -16,14 +15,14 @@ tenzir_test/fixtures/node.py,sha256=Y3YqWeqYz-mg3B5V0wIthk55zVOd4JS37zlTdHzlA6c,
16
15
  tenzir_test/runners/__init__.py,sha256=M3p-TsDp231Dy58miDb467bA1kLYzgpa0pqVr_KP1ro,4616
17
16
  tenzir_test/runners/_utils.py,sha256=BWv7UEPGa01l4tGTCg5i_22NblIyRw8vjk_5NIf1x_c,467
18
17
  tenzir_test/runners/custom_python_fixture_runner.py,sha256=uXbSf18xTttf51k2EbjWf8AqN2R7TfpfSCkLyU5HJx4,7284
19
- tenzir_test/runners/diff_runner.py,sha256=ah1hr1vvD6BON2PZz61mxwioRFIzHFuaAbJ0DjDSqG4,5151
18
+ tenzir_test/runners/diff_runner.py,sha256=WIEry_-4R4VIlA9HON5kl2ipyy1TKzS4jRc2wPl6r5c,5476
20
19
  tenzir_test/runners/ext_runner.py,sha256=sKL9Mw_ksVVBWnrdIJR2WS5ueVnLKuNYYWZ22FTZIPo,730
21
20
  tenzir_test/runners/runner.py,sha256=LtlD8huQOSmD7RyYDnKeCuI4Y6vhxGXMKsHA2qgfWN0,989
22
21
  tenzir_test/runners/shell_runner.py,sha256=OuofgHeZN2FaO6xRI3uyqstLBymc6rmWC4HAnSn91AE,6068
23
22
  tenzir_test/runners/tenzir_runner.py,sha256=464FFYS_mh6l-ehccc-S8cIUO1MxdapwQL5X3PmMkMI,1006
24
23
  tenzir_test/runners/tql_runner.py,sha256=2ZLMf3TIKwcOvaOFrVvvhzK-EcWmGOUZxKkbSoByyQA,248
25
- tenzir_test-0.13.0.dist-info/METADATA,sha256=Px13JCBnRZUYPnn2ssXYRumDFAkeHWV_lIaRjCEQmYE,3008
26
- tenzir_test-0.13.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
27
- tenzir_test-0.13.0.dist-info/entry_points.txt,sha256=q0eD9RQ_9eMPYvFNpBElo55HQYeaPgLfe9YhLsNwl10,93
28
- tenzir_test-0.13.0.dist-info/licenses/LICENSE,sha256=ajMbpcBiSTXI8Rr4t17pvowV-On8DktghfZKxY_A22Q,10750
29
- tenzir_test-0.13.0.dist-info/RECORD,,
24
+ tenzir_test-0.13.1.dist-info/METADATA,sha256=WB95n9cgGgb6T9SraMuXw3ymn3ujtM5qEIg3zm3fTXo,3066
25
+ tenzir_test-0.13.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
26
+ tenzir_test-0.13.1.dist-info/entry_points.txt,sha256=l8DJgiEVrjScdTTo613cZ3PKodOmqrUVIbz-3awfV8w,53
27
+ tenzir_test-0.13.1.dist-info/licenses/LICENSE,sha256=ajMbpcBiSTXI8Rr4t17pvowV-On8DktghfZKxY_A22Q,10750
28
+ tenzir_test-0.13.1.dist-info/RECORD,,
@@ -1,3 +1,2 @@
1
1
  [console_scripts]
2
- check-release = tenzir_test.checks:main
3
2
  tenzir-test = tenzir_test.cli:main
tenzir_test/checks.py DELETED
@@ -1,31 +0,0 @@
1
- from __future__ import annotations
2
-
3
- import shlex
4
- import subprocess
5
- from typing import Sequence
6
-
7
- _COMMANDS: Sequence[Sequence[str]] = (
8
- ("ruff", "check"),
9
- ("ruff", "format", "--check"),
10
- ("mypy",),
11
- ("pytest",),
12
- ("uv", "build"),
13
- )
14
-
15
-
16
- def _run(command: Sequence[str]) -> None:
17
- printable = " ".join(shlex.quote(part) for part in command)
18
- print(f"> {printable}")
19
- result = subprocess.run(command, check=False)
20
- if result.returncode != 0:
21
- raise SystemExit(result.returncode)
22
-
23
-
24
- def main() -> int:
25
- for command in _COMMANDS:
26
- _run(command)
27
- return 0
28
-
29
-
30
- if __name__ == "__main__":
31
- raise SystemExit(main())