-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (31 loc) · 764 Bytes
/
Makefile
File metadata and controls
40 lines (31 loc) · 764 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
clean: clean-eggs clean-build
@find . -iname '*.pyc' -delete
@find . -iname '*.pyo' -delete
@find . -iname '*~' -delete
@find . -iname '*.swp' -delete
@find . -iname '__pycache__' -delete
clean-eggs:
@find . -name '*.egg' -print0|xargs -0 rm -rf --
@rm -rf .eggs/
clean-build:
@rm -fr build/
@rm -fr dist/
@rm -fr *.egg-info
deps: update
poetry install -v
test: deps
poetry run pytest -vvv test-drf-project/tests
build: test
poetry build
version = `cat CHANGES.rst | awk '/^[0-9]+\.[0-9]+(\.[0-9]+)?/' | head -n1`
release: clean build
git rev-parse --abbrev-ref HEAD | grep '^master$$'
git tag $(version)
git push origin $(version)
poetry publish
lint:
pre-commit install && pre-commit run -a -v
pyformat:
black .
update:
poetry update