File: rules

package info (click to toggle)
python-jose 3.3.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 528 kB
  • sloc: python: 4,020; makefile: 162; sh: 6
file content (26 lines) | stat: -rwxr-xr-x 655 bytes parent folder | download
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
#!/usr/bin/make -f

export PYBUILD_NAME=jose
export PYBUILD_TEST_ARGS=-v -k "not ECDSAECKey-BadDigestError" # This test is failing
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/.coverage

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_clean:
	rm -rf .pytest_cache
	dh_auto_clean

override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	python3 -m sphinx -b html -d docs/.build/.doctrees -N docs $(CURDIR)/debian/python-jose-doc/usr/share/doc/python-jose-doc/html
endif
	dh_sphinxdoc

execute_after_dh_clean:
	rm -rf docs/.build

override_dh_auto_test:
ifeq ($(filter nocheck,$(DEB_BUILD_PROFILES)),)
	dh_auto_test
endif