-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmakefile
63 lines (51 loc) · 1.36 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
61
62
63
ARGUMENTS = $(filter-out $@,$(MAKECMDGOALS)) $(filter-out --,$(MAKEFLAGS))
clean:
-find . -type f -name "*.pyc" -delete
-find . -type d -name "__pycache__" -delete
pytest:
ENV_FILES='test,dev' \
pytest $(ARGUMENTS) \
--ignore=node_modules \
--capture=no \
--nomigrations \
--reuse-db \
-Wignore::DeprecationWarning \
-vv
pytest_single:
ENV_FILES='test,dev' \
pytest \
$(ARGUMENTS)
--junit-xml=./results/pytest_unit_report.xml \
--cov-config=.coveragerc \
--cov-report=html \
--cov=. \
pytest_codecov:
ENV_FILES='test,dev' \
pytest \
--cov-config=.coveragerc \
--cov-report=term \
--cov=. \
--codecov \
$(ARGUMENTS)
flake8:
flake8 . \
--exclude=.venv,venv,.idea-env,setup.py,directory_components/version.py,node_modules \
--max-line-length=120
manage:
ENV_FILES='dev' ./manage.py $(ARGUMENTS)
webserver:
ENV_FILES='dev' python manage.py runserver 0.0.0.0:9013 $(ARGUMENTS)
requirements:
pip-compile requirements.in
pip-compile requirements_test.in
install_requirements:
pip install -e .[test]; \
pip install -e .[demo]; \
pip install -e .[janitor]
css:
./node_modules/.bin/gulp styles
publish:
rm -rf build dist; \
python setup.py bdist_wheel; \
twine upload --username $$DIRECTORY_PYPI_USERNAME --password $$DIRECTORY_PYPI_PASSWORD dist/*
.PHONY: clean pytest flake8 manage webserver requirements install_requirements css publish