Skip to content

Commit 1640734

Browse files
committed
Use build for building sdist and wheels
1 parent 88f1230 commit 1640734

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,17 @@ commands = {posargs}
4444

4545
[testenv:build]
4646
deps =
47+
build
4748
wheel
4849
commands =
49-
python setup.py sdist bdist_wheel
50+
python -m build
5051

5152
[testenv:release]
5253
deps =
5354
{[testenv:build]deps}
5455
twine>=1.4.0
5556
commands =
57+
python -c 'import shutil; shutil.rmtree("dist/", ignore_errors=True); shutil.rmtree("build/", ignore_errors=True)'
5658
{[testenv:build]commands}
5759
twine upload {posargs:--skip-existing dist/*}
5860

0 commit comments

Comments
 (0)