Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 #export DH_VERBOSE = 1
5
6 export PYBUILD_NAME=jwt
7 export PYBUILD_TEST_ARGS=-k 'not test_get_jwt_set_sslcontext_default and not test_get_jwt_set_sslcontext_no_ca'
8 export PYTHONWARNINGS=d
9
10 %:
11 dh $@ --buildsystem=pybuild
12
13 execute_before_dh_clean:
14 rm -rf .mypy_cache .pytest_cache
15
16 execute_before_dh_auto_install:
17 find .pybuild -type f -name .coverage -delete
18
19 override_dh_sphinxdoc:
20 ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
21 PYTHONPATH=`dirname $$(find .pybuild/ -type d -name "$(PYBUILD_NAME)*dist-info" | head -n1)` \
22 python3 -m sphinx -b html $(SPHINXOPTS) docs $(CURDIR)/debian/python-$(PYBUILD_NAME)-doc/usr/share/doc/python-$(PYBUILD_NAME)-doc/html
23 dh_sphinxdoc
24 endif
25
26 override_dh_compress:
27 dh_compress -X changelog.html