forked from tvst/jsbuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (32 loc) · 784 Bytes
/
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
.PHONY: help
help:
@# Magic line used to create self-documenting makefiles.
@# See https://stackoverflow.com/a/35730928
@awk '/^#/{c=substr($$0,3);next}c&&/^[[:alpha:]][[:alnum:]_-]+:/{print substr($$1,1,index($$1,":")),c}1{c=0}' Makefile | column -s: -t
.PHONY: develop
# Set up development environment
develop:
pipenv install --dev
pipenv run python setup.py develop
pipenv shell
.PHONY: install
# Install in your current Python environment
install:
pipenv run python setup.py install
.PHONY: test
# Run unit tests
test:
pytest tests/
.PHONY: clean
# Remove temporary files
clean:
rm -rf dist
rm -rf build
rm -rf *.egg-info
rm -f Pipfile.lock
.PHONY: distribute
# Distributes the package to PyPI
distribute:
python setup.py sdist
twine upload dist/*
rm dist -rf