-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (28 loc) · 823 Bytes
/
Makefile
File metadata and controls
34 lines (28 loc) · 823 Bytes
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
.PHONY: clean
help:
@echo " clean remove unwanted stuff"
@echo " dev make a development package"
@echo " publish-test package and upload a release to test.pypi.org"
@echo " publish-release package and upload a release to pypi.org"
clean:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '.DS_Store' -exec rm -f {} +
find . -name '__pycache__' -exec rm -rf {} +
find . -name '.coverage' -exec rm -rf {} +
rm -rf build dist .eggs *.egg-info +
build:
pip install -U setuptools twine wheel
python setup.py sdist bdist_wheel
dev:
pip install .
$(MAKE) clean
publish-test:
$(MAKE) build
twine upload -r testpypi dist/*
$(MAKE) clean
publish-release:
$(MAKE) build
twine upload dist/*
$(MAKE) clean