forked from eden-box/pdfworkshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (25 loc) · 823 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
PIP=python -m pip
PYR=python -m pipenv
PRINT=python -c "import sys; print(str(sys.argv[1]))"
help:
$(PRINT) "Usage:"
$(PRINT) " help show this message"
$(PRINT) " setup create virtual environment and install dependencies"
$(PRINT) " dist package application for distribution"
$(PRINT) " clean remove the project dependencies and environment"
setup:
$(PIP) install pipenv
$(PYR) install --three
$(PYR) run pip install .
$(PYR) lock -r > requirements.txt
dist: clean setup
$(PYR) run python setup.py sdist bdist_wheel
pub: dist
twine upload dist/*
pubt: dist
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
clean:
rm -f -r dist build *.egg-info requirements.txt
delete: clean
$(PYR) --rm
.PHONY: setup dist pub pubt clean delete