Skip to content

Commit f8a197a

Browse files
authored
test(functional): build wheel using uv build (#884)
* test(functional): build wheel using `uv build` * test: fix print
1 parent c9f7ae5 commit f8a197a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/functional/conftest.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ def pytest_sessionstart(session: pytest.Session) -> None:
2626

2727
try:
2828
result = subprocess.run(
29-
shlex.split(f"uvx pdm build -v --no-sdist --dest {deptry_wheel_path}", posix=sys.platform != "win32"),
29+
shlex.split(f"uv build --verbose --wheel --out-dir {deptry_wheel_path}", posix=sys.platform != "win32"),
3030
capture_output=True,
3131
text=True,
3232
check=True,
3333
)
34-
print("pdm build output: %s", result.stdout) # noqa: T201
35-
print("pdm build errors: %s", result.stderr) # noqa: T201
34+
print(f"uv build output: {result.stdout}") # noqa: T201
35+
print(f"uv build errors: {result.stderr}") # noqa: T201
3636
except subprocess.CalledProcessError as e:
37-
print("Output: %s", e.output) # noqa: T201
38-
print("Errors: %s", e.stderr) # noqa: T201
37+
print(f"Output: {e.output}") # noqa: T201
38+
print(f"Errors: {e.stderr}") # noqa: T201
3939
raise
4040

4141

0 commit comments

Comments
 (0)