-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (33 loc) · 1.02 KB
/
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
help:
@echo "clean-build - get rid of build artifacts & metadata"
@echo "clean-pyc - get rid of dross files"
@echo "dist - build a distribution; calls test, clean-build and clean-pyc"
@echo "check - check the quality of the built distribution; calls dist for you"
@echo "release - register and upload to PyPI"
clean-build:
rm -fr build/
rm -fr htmlcov/
rm -fr dist/
rm -fr .eggs/
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -f {} +
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
dist: clean-build clean-pyc
python setup.py sdist bdist_wheel
check: dist
pip install check-manifest pyroma restview
check-manifest
pyroma .
restview --long-description
release:
@echo "INSTRUCTIONS:"
@echo "- pip install wheel twine"
@echo "- make check"
@echo "- python setup.py sdist bdist_wheel"
@echo "- ls dist/"
@echo "- twine register dist/???"
@echo "- twine upload dist/*"