File tree Expand file tree Collapse file tree 1 file changed +32
-1
lines changed Expand file tree Collapse file tree 1 file changed +32
-1
lines changed Original file line number Diff line number Diff line change 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 {} +
2
15
3
16
init :
4
17
pip install tox coverage Sphinx
@@ -12,3 +25,21 @@ docs: documentation
12
25
13
26
documentation :
14
27
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
+
You can’t perform that action at this time.
0 commit comments