-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
43 lines (27 loc) · 955 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
VIRTUALENV = $(shell which virtualenv)
ifeq ($(strip $(VIRTUALENV)),)
VIRTUALENV = /usr/local/python3/bin/virtualenv
endif
venv:
$(VIRTUALENV) venv
install: venv
. venv/bin/activate; python -m pip install -U pip ; python -m pip install -e .
install-dev: venv
. venv/bin/activate; python -m pip install -e .[dev]
install-ci: venv
. venv/bin/activate; python -m pip install -e .[ci]
install-test: venv install
. venv/bin/activate; python -m pip install -e .[test]
test_lite: venv install-test
. venv/bin/activate; python -m pip freeze | grep -v diycrate > requirements.txt; tox; rm requirements.txt;
test: venv install-test test_lite clean
release: venv
. venv/bin/activate; python -m pip install twine
. venv/bin/activate; twine upload dist/*
build: venv
. venv/bin/activate; python -m setup sdist
. venv/bin/activate; python -m pip wheel --no-deps --wheel-dir=dist .
clean:
rm -rf diycrate.egg-info
rm -rf dist
rm -rf build