-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
39 lines (32 loc) · 766 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
39
.PHONY: lint
lint:
# mypy .
black .
.PHONY: test
test: unit-test integration-test
.PHONY: unit-test
unit-test: lint
ifdef key
pytest tests/unit_tests -v -k $(key)
else
pytest tests/unit_tests
endif
.PHONY: integration-test
integration-test: lint
ifdef key
pytest tests/integration_tests -v -k $(key)
else
pytest tests/integration_tests
endif
.PHONY: check
check: lint test integration-test
.PHONY: build
build: lint
poetry build
.PHONY: publish
publish: build export-requirements
poetry publish --username=__token__ --password=$(PYPI_TOKEN)
.PHONEY: export-requirements
export-requirements:
poetry export -f requirements.txt -o requirements.txt --without-hashes
poetry export -f requirements.txt -o requirements-dev.txt --without-hashes --with dev