Skip to content
This repository was archived by the owner on Feb 10, 2026. It is now read-only.

Commit 7afd5be

Browse files
committed
test.py: replace requirements.txt + inline script w/ pyproject.toml and uv.lock
This ensures that the correct `scan-build`/`intercept-build` version is active while running `test.py`. This is what was causing local errors testing `curl`, as the wrong `intercept-build` was creating duplicate compile commands, which `c2rust transpile` dropped with a warning, but hidden since `test.py` hides that.
1 parent 7345f35 commit 7afd5be

File tree

4 files changed

+75
-12
lines changed

4 files changed

+75
-12
lines changed

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[project]
2+
name = "c2rust-testsuite"
3+
version = "0.21.0"
4+
requires-python = ">=3.15"
5+
dependencies = [
6+
"distro>=1.9.0",
7+
"jinja2>=3.1.6",
8+
"pyyaml>=6.0.3",
9+
"scan-build>=2.0.20",
10+
]

requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

test.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
1-
#!/usr/bin/env -S uv --quiet run
2-
# /// script
3-
# requires-python = ">=3.12"
4-
# dependencies = [
5-
# "distro",
6-
# "jinja2",
7-
# "pyyaml",
8-
# ]
9-
# ///
10-
11-
#!/usr/bin/env python3
1+
#!/usr/bin/env -S uv run
122

133
import argparse
144

uv.lock

Lines changed: 64 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)