Skip to content

Commit db910a0

Browse files
committed
build: Use tox to build both sdist and wheel files.
1 parent 21891bd commit db910a0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tox.ini

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,20 @@ passenv =
99
constraints = constraints.txt
1010

1111
[testenv]
12-
package = wheel
13-
wheel_build_env = .pkg
12+
package = external
1413
extras = testing
1514
constraints = constraints.txt
1615
commands = make test
1716
allowlist_externals =
1817
make
1918

19+
[testenv:.pkg_external]
20+
deps = build
21+
package_glob = {toxinidir}{/}dist{/}*.whl
22+
commands =
23+
python -c 'import shutil; shutil.rmtree("{toxinidir}{/}dist", ignore_errors=True)'
24+
pyproject-build --outdir {toxinidir}{/}dist .
25+
2026
[testenv:pytest-min]
2127
extras = testing
2228
constraints = dependencies/pytest-min/constraints.txt

0 commit comments

Comments
 (0)