Validate project metadata

Adds a step that builds and tests both deliverables using twine.

Change-Id: Ib1d867df19d56bb01dcb2fed9e785d04286764c4
This commit is contained in:
Sorin Sbarnea 2020-12-04 16:52:27 +00:00
parent 2a433d9404
commit cd375aedeb
2 changed files with 9 additions and 1 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@
*.egg-info
*.pyc
*.retry
.eggs
.idea
.mypy_cache
.test

View File

@ -18,7 +18,9 @@ passenv =
OS_STDERR_CAPTURE
OS_STDOUT_CAPTURE
usedevelop = True
whitelist_externals = bash
whitelist_externals =
bash
rm
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
@ -34,9 +36,14 @@ install_command = pip install {opts} {packages}
deps =
flake8
mypy<0.790
twine>=3.3.0
commands =
flake8 {posargs}
mypy --ignore-missing-imports zuulclient
# metadata validation
rm -rfv {toxinidir}/dist/
python setup.py sdist bdist_wheel
twine check --strict {toxinidir}/dist/*
[testenv:cover]
setenv =