-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
38 lines (30 loc) · 804 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
.PHONY: install lint test build clean dist codacy
CODACY_PROJECT_TOKEN?=fake
PYTHON_VERSION?=default
# only set if running a backwards compatibility test with marshmallow 2.x.x
COMPAT?=
REGISTRY?=886366864302.dkr.ecr.eu-west-1.amazonaws.com
VERSION?=0.0.0
install:
@echo "# --pre allows pre releases"
pip install --pre -e ".[kafka]"
pip install -r requirements-dev.txt
compat:
pip uninstall -y marshmallow
pip install marshmallow==2.18
lint:
flake8 thunderstorm test
test: lint
pytest \
-vv \
--cov thunderstorm \
--cov-report xml:coverage-${PYTHON_VERSION}${COMPAT}.xml \
--cov-append \
--junit-xml results-${PYTHON_VERSION}${COMPAT}.xml \
test/
clean:
rm -rf dist
dist: clean
python setup.py sdist
codacy:
python-codacy-coverage -r coverage-${PYTHON_VERSION}${COMPAT}.xml