Skip to content

Commit

Permalink
test(functional): build wheel using uv build (#884)
Browse files Browse the repository at this point in the history
* test(functional): build wheel using `uv build`

* test: fix print
  • Loading branch information
mkniewallner authored Oct 8, 2024
1 parent c9f7ae5 commit f8a197a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/functional/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ def pytest_sessionstart(session: pytest.Session) -> None:

try:
result = subprocess.run(
shlex.split(f"uvx pdm build -v --no-sdist --dest {deptry_wheel_path}", posix=sys.platform != "win32"),
shlex.split(f"uv build --verbose --wheel --out-dir {deptry_wheel_path}", posix=sys.platform != "win32"),
capture_output=True,
text=True,
check=True,
)
print("pdm build output: %s", result.stdout) # noqa: T201
print("pdm build errors: %s", result.stderr) # noqa: T201
print(f"uv build output: {result.stdout}") # noqa: T201
print(f"uv build errors: {result.stderr}") # noqa: T201
except subprocess.CalledProcessError as e:
print("Output: %s", e.output) # noqa: T201
print("Errors: %s", e.stderr) # noqa: T201
print(f"Output: {e.output}") # noqa: T201
print(f"Errors: {e.stderr}") # noqa: T201
raise


Expand Down

0 comments on commit f8a197a

Please sign in to comment.