forked from ambition-study/ambition
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
50 lines (39 loc) · 915 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
45
46
47
48
49
50
# all: init docs clean test
all: init 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 -U pip
pip install "tox>=1.8" coverage Sphinx codecov black
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/*
format:
pip install -U black
black ambition_edc