-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
60 lines (46 loc) · 1.13 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
PYTHON=python3
PYTHON_VENV=env
$(PYTHON_VENV)/.created: REQUIREMENTS.dev.txt
rm -rf $(PYTHON_VENV) && \
$(PYTHON) -m venv $(PYTHON_VENV) && \
. $(PYTHON_VENV)/bin/activate && \
pip install --upgrade pip && \
pip install -r ./REQUIREMENTS.dev.txt && \
date > $(PYTHON_VENV)/.created
env: $(PYTHON_VENV)/.created
clean:
rm -rf $(PYTHON_VENV)
lint: env
. $(PYTHON_VENV)/bin/activate && \
tox -e lint
lazy-test: env
. $(PYTHON_VENV)/bin/activate && \
tox $(args)
test: env
. $(PYTHON_VENV)/bin/activate && \
rm -rf flamingo.egg-info dist build && \
tox -r $(args)
ci-test: env
. $(PYTHON_VENV)/bin/activate && \
EXTENDED_BUILD_TESTS=1 JENKINS_URL=1 tox -r $(args)
shell: env
. $(PYTHON_VENV)/bin/activate && \
rlpython
freeze: env
. $(PYTHON_VENV)/bin/activate && \
pip freeze
test-site: env
. $(PYTHON_VENV)/bin/activate && \
rm -rf test-site && \
flamingo init test-site debug=True $(args)
server: test-site
cd test-site && \
make server
sdist: env
. $(PYTHON_VENV)/bin/activate && \
rm -rf dist *.egg-info && \
./setup.py sdist
_release: sdist
. $(PYTHON_VENV)/bin/activate && \
twine upload dist/*
.PHONY: test-site