Skip to content

Commit 1a26c0b

Browse files
authored
Clarify how to release (#57)
1 parent 87fb3b1 commit 1a26c0b

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
.PHONY: publish
66
publish:
77
@echo "make clean"
8-
@echo "python setup.py sdist bdist_wheel"
9-
@echo "twine"
8+
@echo "tox -e build"
9+
@echo "tox -e release"
1010

1111
.PHONY: clean
1212
clean:

tox.ini

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,26 @@ deps = -rrequirements/doc.txt
1717
commands=
1818
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
1919

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+
2040
[travis]
2141
python =
2242
3.6: py36, style, docs

0 commit comments

Comments
 (0)