File tree Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Original file line number Diff line number Diff line change 1
- CURRENT_SIGN_SETTING := $(shell git config commit.gpgSign)
2
-
3
- .PHONY : clean-pyc clean-build docs
4
-
1
+ .PHONY : help
5
2
help :
6
3
@echo " clean-build - remove build artifacts"
7
4
@echo " clean-pyc - remove Python file artifacts"
8
5
@echo " lint - check style with flake8"
9
6
@echo " test - run tests quickly with the default Python"
10
7
@echo " testall - run tests on every Python version with tox"
11
8
@echo " release - package and upload a release"
12
- @echo " dist - package"
13
9
10
+ .PHONY : clean
14
11
clean : clean-build clean-pyc
15
12
13
+ .PHONY : clean-build
16
14
clean-build :
17
15
rm -fr build/
18
16
rm -fr dist/
19
17
rm -fr * .egg-info
20
18
19
+ .PHONY : clean-pyc
21
20
clean-pyc :
22
21
find . -name ' *.pyc' -exec rm -f {} +
23
22
find . -name ' *.pyo' -exec rm -f {} +
24
23
find . -name ' *~' -exec rm -f {} +
25
24
25
+ .PHONY : lint
26
26
lint :
27
27
tox -e lint
28
28
29
+ .PHONY : lint-roll
29
30
lint-roll :
30
31
isort rest_framework_simplejwt tests
31
32
$(MAKE ) lint
32
33
34
+ .PHONY : tests
33
35
test :
34
36
pytest tests
35
37
38
+ .PHONY : test-all
36
39
test-all :
37
40
tox
38
41
42
+ .PHONY : build-docs
39
43
build-docs :
40
44
sphinx-apidoc -o docs/ . \
41
45
setup.py \
@@ -51,18 +55,23 @@ build-docs:
51
55
$(MAKE ) -C docs html
52
56
$(MAKE ) -C docs doctest
53
57
58
+ .PHONY : docs
54
59
docs : build-docs
55
60
open docs/_build/html/index.html
56
61
62
+ .PHONY : linux-docs
57
63
linux-docs : build-docs
58
64
xdg-open docs/_build/html/index.html
59
65
60
- release : clean
66
+ .PHONY : bumpversion
67
+ bumpversion :
61
68
bumpversion $(bump )
69
+
70
+ .PHONY : pushversion
71
+ pushversion :
62
72
git push upstream && git push upstream --tags
63
- python setup.py sdist bdist_wheel
64
- twine upload dist/*
65
73
74
+ .PHONY : dist
66
75
dist : clean
67
76
python setup.py sdist bdist_wheel
68
77
ls -l dist
You can’t perform that action at this time.
0 commit comments