Skip to content

Commit ba1dbf2

Browse files
committed
Create makefile
1 parent 21089ad commit ba1dbf2

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

makefile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
.PHONY: clean clean-build clean-pyc clean-test release dist
2+
3+
help:
4+
@echo "clean - remove all build, test, coverage and Python artifacts"
5+
@echo "clean-build - remove build artifacts"
6+
@echo "clean-pyc - remove Python file artifacts"
7+
@echo "clean-test - remove test and coverage artifacts"
8+
@echo "release - package and upload a release"
9+
@echo "dist - package"
10+
11+
clean: clean-build clean-pyc clean-test
12+
13+
clean-build:
14+
rm -fr build/
15+
rm -fr dist/
16+
rm -fr .eggs/
17+
find . -name '*.egg-info' -exec rm -fr {} +
18+
find . -name '*.egg' -exec rm -f {} +
19+
20+
clean-pyc:
21+
find . -name '*.pyc' -exec rm -f {} +
22+
find . -name '*.pyo' -exec rm -f {} +
23+
find . -name '*~' -exec rm -f {} +
24+
find . -name '__pycache__' -exec rm -fr {} +
25+
find . -name '*_cache' -exec rm -fr {} +
26+
27+
clean-test:
28+
rm -f .coverage
29+
30+
dist: clean
31+
python setup.py sdist bdist_wheel
32+
ls -l dist
33+
34+
release:
35+
python -m twine upload dist/*

0 commit comments

Comments
 (0)