Validate project metadata
Adds a step that builds and tests both deliverables using twine. Change-Id: Ib1d867df19d56bb01dcb2fed9e785d04286764c4
This commit is contained in:
parent
2a433d9404
commit
cd375aedeb
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,6 +2,7 @@
|
|||||||
*.egg-info
|
*.egg-info
|
||||||
*.pyc
|
*.pyc
|
||||||
*.retry
|
*.retry
|
||||||
|
.eggs
|
||||||
.idea
|
.idea
|
||||||
.mypy_cache
|
.mypy_cache
|
||||||
.test
|
.test
|
||||||
|
9
tox.ini
9
tox.ini
@ -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 =
|
||||||
|
Loading…
Reference in New Issue
Block a user