Skip to content

Commit 72ad6ad

Browse files
author
David Sanders
committed
Update Makefile
1 parent 3b2d4ee commit 72ad6ad

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

Makefile

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,45 @@
1-
CURRENT_SIGN_SETTING := $(shell git config commit.gpgSign)
2-
3-
.PHONY: clean-pyc clean-build docs
4-
1+
.PHONY: help
52
help:
63
@echo "clean-build - remove build artifacts"
74
@echo "clean-pyc - remove Python file artifacts"
85
@echo "lint - check style with flake8"
96
@echo "test - run tests quickly with the default Python"
107
@echo "testall - run tests on every Python version with tox"
118
@echo "release - package and upload a release"
12-
@echo "dist - package"
139

10+
.PHONY: clean
1411
clean: clean-build clean-pyc
1512

13+
.PHONY: clean-build
1614
clean-build:
1715
rm -fr build/
1816
rm -fr dist/
1917
rm -fr *.egg-info
2018

19+
.PHONY: clean-pyc
2120
clean-pyc:
2221
find . -name '*.pyc' -exec rm -f {} +
2322
find . -name '*.pyo' -exec rm -f {} +
2423
find . -name '*~' -exec rm -f {} +
2524

25+
.PHONY: lint
2626
lint:
2727
tox -e lint
2828

29+
.PHONY: lint-roll
2930
lint-roll:
3031
isort rest_framework_simplejwt tests
3132
$(MAKE) lint
3233

34+
.PHONY: tests
3335
test:
3436
pytest tests
3537

38+
.PHONY: test-all
3639
test-all:
3740
tox
3841

42+
.PHONY: build-docs
3943
build-docs:
4044
sphinx-apidoc -o docs/ . \
4145
setup.py \
@@ -51,18 +55,23 @@ build-docs:
5155
$(MAKE) -C docs html
5256
$(MAKE) -C docs doctest
5357

58+
.PHONY: docs
5459
docs: build-docs
5560
open docs/_build/html/index.html
5661

62+
.PHONY: linux-docs
5763
linux-docs: build-docs
5864
xdg-open docs/_build/html/index.html
5965

60-
release: clean
66+
.PHONY: bumpversion
67+
bumpversion:
6168
bumpversion $(bump)
69+
70+
.PHONY: pushversion
71+
pushversion:
6272
git push upstream && git push upstream --tags
63-
python setup.py sdist bdist_wheel
64-
twine upload dist/*
6573

74+
.PHONY: dist
6675
dist: clean
6776
python setup.py sdist bdist_wheel
6877
ls -l dist

0 commit comments

Comments
 (0)