Skip to content

Commit cf4df54

Browse files
committed
Add commands to makefile for producing new release
1 parent d9bc771 commit cf4df54

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

Makefile

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
all: init docs test
1+
all: init docs clean test
2+
3+
clean: clean-build clean-pyc
4+
rm -fr htmlcov/
5+
6+
clean-build:
7+
rm -fr build/
8+
rm -fr dist/
9+
rm -fr *.egg-info
10+
11+
clean-pyc:
12+
find . -name '*.pyc' -exec rm -f {} +
13+
find . -name '*.pyo' -exec rm -f {} +
14+
find . -name '*~' -exec rm -f {} +
215

316
init:
417
pip install tox coverage Sphinx
@@ -12,3 +25,21 @@ docs: documentation
1225

1326
documentation:
1427
sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
28+
29+
dist: clean
30+
pip install -U wheel
31+
python setup.py sdist
32+
python setup.py bdist_wheel
33+
for file in dist/* ; do gpg --detach-sign -a "$$file" ; done
34+
ls -l dist
35+
36+
test-release: dist
37+
pip install -U twine
38+
gpg --detach-sign -a dist/*
39+
twine upload -r pypitest dist/*
40+
41+
release: dist
42+
pip install -U twine
43+
gpg --detach-sign -a dist/*
44+
twine upload dist/*
45+

0 commit comments

Comments
 (0)