-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 761 Bytes
/
Makefile
File metadata and controls
29 lines (22 loc) · 761 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
help:
@cat Makefile | grep '^## ' | cut -c4- | sed -e 's/ - /\t- /;' | column -s "$$( echo -e '\t' )" -t
## isort - Runs isort recursively on all Python files
isort:
isort -rc phablytics
## clean - Cleans dist and build, part of build lifecycle
clean:
rm -rf dist/*
rm -rf build/*
## package - Create package for dist
package:
python setup.py sdist bdist_wheel
## repackage - Runs clean and package
repackage: clean package
## install - Installs locally built package
install: package
sh -c "pip install -U dist/phablytics-`cat VERSION`.tar.gz"
## upload - Uploads built package to PYPI
upload:
sh -c "twine upload dist/phablytics-`cat VERSION`-py2.py3-none-any.whl"
## publish - Clean, build and publish package to PyPI
publish: repackage upload