forked from jazzband/django-simple-history
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (34 loc) · 807 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
all: init docs clean test
clean: clean-build clean-pyc
rm -fr htmlcov/
clean-build:
rm -fr build/
rm -fr dist/
rm -fr *.egg-info
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
init:
pip install tox>=1.8 coverage Sphinx
test:
coverage erase
tox
coverage html
docs: documentation
documentation:
sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
dist: clean
pip install -U wheel
python setup.py sdist
python setup.py bdist_wheel
for file in dist/* ; do gpg --detach-sign -a "$$file" ; done
ls -l dist
test-release: dist
pip install -U twine
gpg --detach-sign -a dist/*
twine upload -r pypitest dist/*
release: dist
pip install -U twine
gpg --detach-sign -a dist/*
twine upload dist/*