forked from basak/glacier-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (40 loc) · 768 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
#! /usr/bin/make
default:
python setup.py check build
.PHONY: register dist inspect upload clean docs test
register:
if [ ! -f ~/.pypirc ]; then \
echo "Missing ~/.pypirc file"; \
exit 1; \
fi; \
python setup.py register
dist:
python setup.py sdist
inspect:
python setup.py clean
rm -rf build/
rm -rf dist/
rm -rf *.egg/
rm -rf *.egg-info/
rm -f MANIFEST
python setup.py sdist
cd dist/ && tar xzvf *.tar.gz
upload:
if [ ! -f ~/.pypirc ]; then \
echo "Missing ~/.pypirc file"; \
exit 1; \
fi; \
python setup.py sdist upload
clean:
python setup.py clean
rm -rf build/
rm -rf dist/
rm -rf *.egg/
rm -rf *.egg-info/
rm -rf __pycache__/
rm -f MANIFEST
rm -rf docs/_*/
docs:
cd docs && make html
test:
nosetests -c tests/nose.cfg