forked from kiwicom/pytest-recording
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (27 loc) · 857 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
UPGRADE_ARGS ?= --upgrade
.PHONY: upgrade-requirements
upgrade-requirements: ## Upgrade requirements to latest versions (use UPGRADE_ARGS='-P <package>' to upgrade one)
pip install pip-tools
pip-compile $(UPGRADE_ARGS) --output-file=./requirements.txt requirements.in
pip-compile $(UPGRADE_ARGS) --output-file=./test-requirements.txt test-requirements.in
test:
ARCHFLAGS="-arch x86_64" pip install -r ./requirements.txt
pytest tests -v
tox-test:
tox -p all
pylint:
tox -e pylint
black:
black -l 120 src/pytest_recording docs tests setup.py
mypy:
mypy --config-file ./mypy.ini src/pytest_recording
install:
ARCHFLAGS="-arch x86_64" pip install -r ./requirements.txt
build:
pip install wheel
python setup.py bdist_wheel
release: build
pip install twine
twine check dist/*
twine upload dist/*
.PHONY: test black install build release