forked from NavAbility/NavAbilitySDK.py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (26 loc) · 769 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
.PHONY: help install test release lint clean
PYTHON_VERSION?=python3
VIRTUAL_ENV_DIR?=venv_test
install: $(VIRTUAL_ENV_DIR)
$(VIRTUAL_ENV_DIR):
$(PYTHON_VERSION) -m venv $(VIRTUAL_ENV_DIR)
$(VIRTUAL_ENV_DIR)/bin/$(PYTHON_VERSION) setup.py install
release: $(VIRTUAL_ENV_DIR)
rm -rf dist
$(VIRTUAL_ENV_DIR)/bin/$(PYTHON_VERSION) setup.py sdist
# Assuming you have twine already in the sdist
$(VIRTUAL_ENV_DIR)/bin/pip install twine
$(VIRTUAL_ENV_DIR)/bin/twine upload dist/*
# typically, phony make targets are imperatives.
lint: install
tox -e lint
test: install
tox
clean:
rm -rf $(TESTING_CONFIG_DIR)
rm -rf build *.egg-info
find -name "*.pyc" -delete
find -name "__pycache__" -delete
rm -rf $(VIRTUAL_ENV_DIR)
rm -rf tar-source
rm -f *.tar.gz