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 *.egg-info
*.pyc *.pyc
*.retry *.retry
.eggs
.idea .idea
.mypy_cache .mypy_cache
.test .test

View File

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