Skip to content

Commit 98a5377

Browse files
committed
add build and release tox env
1 parent a5b7db9 commit 98a5377

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Diff for: requirements-test.txt

+1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ flake8
22
pytest
33
pytest-cov
44
pytest-mock
5+
twine
56
yapf==0.21.0

Diff for: tox.ini

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ envlist =
55
lint
66
format-check
77
doc
8+
py{27,36}-build
89
skipsdist = true
910

1011
[travis]
@@ -22,6 +23,7 @@ deps =
2223
-rrequirements-test.txt
2324
commands =
2425
unit: py.test -vv
26+
build: python setup.py sdist bdist_wheel
2527

2628
[testenv:lint]
2729
commands =
@@ -41,3 +43,7 @@ deps=
4143
-rrequirements-doc.txt
4244
commands=
4345
python setup.py build_sphinx --builder=html
46+
47+
[testenv:release]
48+
commands=
49+
twine upload dist/*

0 commit comments

Comments
 (0)