Skip to content

Commit

Permalink
Add build+twine test to tox
Browse files Browse the repository at this point in the history
Allows local twine validation of build
before sending it to GitHub CI
  • Loading branch information
aaronkollasch committed Jun 17, 2021
1 parent d664f7b commit 473ed46
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ test =
universal = 1

[tox:tox]
envlist = linters, py36, py37, py38, py39, coverage-report
envlist = linters, twine, py36, py37, py38, py39, coverage-report
isolated_build = True
requires = tox-conda; platform_system=="Darwin"

Expand Down Expand Up @@ -90,6 +90,15 @@ commands =
black --check --diff .
flake8 --count src tests

[testenv:twine]
deps =
build>=0.4.0
twine>=3.4.1
skip_install = true
commands =
python -m build --sdist --wheel .
python -m twine check dist/*

[testenv:coverage-report]
deps = coverage[toml]
skip_install = true
Expand Down

0 comments on commit 473ed46

Please sign in to comment.