forked from mozilla-iam/pyoidc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (44 loc) · 1.29 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
PROJECT_ROOT:=.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXABUILD = sphinx-autobuild
BUILDDIR = doc/_build
DOCDIR = doc/
OICDIR = src/oic
TESTDIR = tests
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " html to make HTML documentation files"
@echo " livehtml to make HTML documentation files (live reload!)"
@echo " install to install the python dependencies for development"
@echo " isort to sort imports"
.PHONY: help
clean:
rm -rf $(BUILDDIR)/*
.PHONY: clean
ALLSPHINXOPTS=-W
html:
@pipenv run $(SPHINXBUILD) -b html $(DOCDIR) $(BUILDDIR)/html $(ALLSPHINXOPTS)
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
.PHONY: html
livehtml:
@pipenv run $(SPHINXABUILD) -b html $(DOCDIR) $(BUILDDIR)/html $(ALLSPHINXOPTS)
@echo "Build finished. Watching for change ..."
.PHONY: livehtml
install:
@pipenv install --dev
.PHONY: install
test:
@pipenv run pytest $(TESTDIR)
.PHONY: test
isort:
@pipenv run isort --recursive $(OICDIR) $(TESTDIR)
check-isort:
@pipenv run isort --recursive --diff --check-only $(OICDIR) $(TESTDIR)
.PHONY: isort check-isort
check-pylama:
@pipenv run pylama $(OICDIR) $(TESTDIR)
.PHONY: check-pylama
release:
@pipenv run python setup.py sdist upload -r pypi
.PHONY: release