-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (34 loc) · 828 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
38
39
40
41
42
43
PY ?= 3
PACKAGE := pyosmkit
VENV := venv
.PHONY: test
test:
py.test
.PHONY: doctest
doctest:
find $(PACKAGE) -name '*.py' -print | xargs python -m doctest
python$(PY) -m doctest README.md
$(VENV):
python$(PY) -m venv $@
.PHONY: init-dev
init-dev:
python$(PY) -m pip install -U -r requirements-dev$(PY).txt
python$(PY) -m pip install -U --editable .
.PHONY: install
python$(PY) setup.py install
.PHONY: clean
clean:
# clean setuptools stuff
rm -rf build dist *.egg-info
# clean python stuff
find ./ -name '*.pyc' -delete
find ./ -name __pycache__ -type d -print | xargs rm -rf
.PHONY: archive
archive:
python$(PY) setup.py sdist bdist_wheel
.PHONY: pypi-test-upload
pypi-test-upload:
twine upload --repository testpypi dist/*
.PHONY: pypi-upload
pypi-upload:
twine upload --repository pypi dist/*