Skip to content

Commit

Permalink
update tox for py37 and build signing
Browse files Browse the repository at this point in the history
  • Loading branch information
robertpeteuil committed Aug 20, 2018
1 parent 9d671b4 commit ac1c6f3
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# tox testing configuration

[tox]
envlist = py27,py33,py34,py35,py36,flake8,bandit,readme
envlist = py27,py33,py34,py35,py36,py37,flake8,bandit,readme
skip_missing_interpreters=true

[testenv]
Expand Down Expand Up @@ -61,7 +61,7 @@ commands =
python setup.py check -m -r -s
doc8 README.rst

# RELEASE tooling
# RELEASE tooling - non signed
[testenv:build]
basepython = python2.7
skip_install = true
Expand All @@ -81,6 +81,29 @@ commands =
{[testenv:build]commands}
twine upload --skip-existing dist/*

# RELEASE tooling - signed - requires PGP certs
[testenv:buildsign]
basepython = python2.7
skip_install = true
deps =
wheel
setuptools
commands =
python setup.py -q sdist bdist_wheel
/bin/bash -c 'for filename in dist/*; do gpg --detach-sign -a $filename; done'


[testenv:releasesign]
basepython = python2.7
skip_install = true
deps =
{[testenv:build]deps}
twine >= 1.5.0
commands =
{[testenv:build]commands}
twine upload --skip-existing dist/*.gz dist/*.gz.asc
twine upload --skip-existing dist/*.whl dist/*.whl.asc

[flake8]
ignore = D203,H301,H306,E402
max-line-length = 100
Expand Down

0 comments on commit ac1c6f3

Please sign in to comment.