File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 5
5
.PHONY : publish
6
6
publish :
7
7
@echo " make clean"
8
- @echo " python setup.py sdist bdist_wheel "
9
- @echo " twine "
8
+ @echo " tox -e build "
9
+ @echo " tox -e release "
10
10
11
11
.PHONY : clean
12
12
clean :
Original file line number Diff line number Diff line change @@ -17,6 +17,26 @@ deps = -rrequirements/doc.txt
17
17
commands =
18
18
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
19
19
20
+ # Release tooling
21
+ [testenv:build]
22
+ basepython = python3
23
+ skip_install = true
24
+ deps =
25
+ wheel
26
+ setuptools
27
+ commands =
28
+ python setup.py -q sdist bdist_wheel
29
+
30
+ [testenv:release]
31
+ basepython = python3
32
+ skip_install = true
33
+ deps =
34
+ {[testenv:build]deps}
35
+ twine >= 1.5.0
36
+ commands =
37
+ {[testenv:build]commands}
38
+ twine upload --skip-existing dist/*
39
+
20
40
[travis]
21
41
python =
22
42
3.6: py36, style, docs
You can’t perform that action at this time.
0 commit comments