forked from thisissoon/Flask-Store
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (33 loc) · 892 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
#
# Makefile
#
.PHONY: clean-pyc clean-build docs
help:
@echo "clean - cleans up pyc files and build directoroes"
@echo "clean-build - cleans build directoroes"
@echo "clean-pyc - cleans pyc files"
@echo "docs - generate Sphinx HTML documentation, including API docs"
@echo "sdist - creates a distribution and lists contents"
@echo "test - runs test suite"
clean: clean-build clean-pyc
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 {} +
docs:
$(MAKE) -C docs clean
$(MAKE) -C docs html
open docs/_build/html/index.html
develop:
bash -c 'pip install -e .[develop]'
test:
python setup.py test
release: clean
python setup.py sdist upload -r pypi
sdist: clean
python setup.py sdist
find dist -type f -exec ls {} \; | xargs tar -ztvf $$1