File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 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/*
You can’t perform that action at this time.
0 commit comments