Skip to content

Commit 3df9353

Browse files
add twine check in tox (#651)
1 parent 9270da7 commit 3df9353

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

tox.ini

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py27,py35,flake8,pylint,sphinx
7+
envlist = py27,py35,flake8,pylint,twine,sphinx
8+
89
skip_missing_interpreters = False
910

1011
[travis]
@@ -73,6 +74,17 @@ deps =
7374
commands =
7475
python -m pylint --rcfile=.pylintrc -j 0 src/sagemaker
7576

77+
[testenv:twine]
78+
basepython = python
79+
# twine check was added starting in 1.12.0
80+
# https://github.com/pypa/twine/blob/master/docs/changelog.rst
81+
deps =
82+
twine>=1.12.0
83+
# https://packaging.python.org/guides/making-a-pypi-friendly-readme/#validating-restructuredtext-markup
84+
commands =
85+
python setup.py sdist
86+
twine check dist/*.tar.gz
87+
7688
[testenv:sphinx]
7789
basepython = python3
7890
changedir = doc

0 commit comments

Comments
 (0)