Skip to content

Commit 17ed751

Browse files
committed
Add tox build-check command
1 parent b59dc58 commit 17ed751

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tox.ini

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,14 @@ testpaths=docs src/sortedcontainers tests
2626
[testenv:pylint]
2727
deps=pylint<2.6
2828
commands=pylint src/sortedcontainers
29+
30+
[testenv:build-check]
31+
description=Builds source and binary packages and uses twine check to validate
32+
skip_install=True
33+
changedir={envtmpdir}
34+
deps=
35+
pep517
36+
twine
37+
commands=
38+
python -m pep517.build -b -s {toxinidir} -o {envtmpdir}/dist
39+
twine check {envtmpdir}/dist/*

0 commit comments

Comments
 (0)