-
Notifications
You must be signed in to change notification settings - Fork 46
/
Makefile
59 lines (46 loc) · 1.04 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.PHONY: test
test:
python setup.py test
.PHONY: flake8
flake8:
flake8 django_enumfield
.PHONY: mypy
mypy:
mypy django_enumfield
.PHONY: isort
isort:
isort -rc django_enumfield run_tests.py setup.py
.PHONY: black
black:
black django_enumfield run_tests.py setup.py
.PHONY: black-check
black-check:
black --check django_enumfield run_tests.py setup.py
.PHONY: checks
checks: mypy flake8 black-check
.PHONY: format
format: black isort
.PHONY: install
install:
python setup.py install
.PHONY: develop
develop:
python setup.py develop
.PHONY: coverage
coverage:
coverage run --include=django_enumfield/* setup.py test
.PHONY: clean
clean:
rm -rf build dist .tox/ *.egg *.egg-info .coverage* .eggs
find . -name *.pyc -type f -delete
find . -name __pycache__ -type d -delete
.PHONY: build
build: clean
python -m pip install --upgrade pip
python -m pip install --upgrade wheel
python setup.py sdist bdist_wheel
.PHONY: release
release: build
python -m pip install --upgrade twine
python -m twine check dist/*
python -m twine upload dist/*