-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython.mk
More file actions
43 lines (28 loc) · 752 Bytes
/
python.mk
File metadata and controls
43 lines (28 loc) · 752 Bytes
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
PIP_INSTALL_PACKAGE=[test]
all:: lint test coverage
lint:: black-check flake8
black-check:
black --check .
black:
black .
flake8:
flake8 .
test:: test-unit test-integration test-e2e
test-unit:
[ -d tests/unit ] && python -m pytest tests/unit
test-integration:
[ -d tests/integration ] && python -m pytest tests/integration
test-e2e:
[ -d tests/e2e ] && python -m pytest tests/e2e
coverage:
coverage run --source $(PACKAGE) -m pytest && coverage report
coveralls:
py.test --cov $(PACKAGE) tests/ --cov-report=term --cov-report=html
bump::
git tag $(shell python version.py)
dist:: all
python setup.py sdist bdist_wheel
upload:: dist
twine upload dist/*
makerules::
curl -qfsL '$(MAKERULES_URL)python.mk' > makerules/python.mk