Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 #export DH_VERBOSE=1
3 export PYBUILD_NAME=citeproc
4
5 include /usr/share/dpkg/default.mk
6 include /usr/share/dpkg/default.mk
7 VERSION := $(shell dpkg-parsechangelog -Sversion | cut -d- -f1)
8 include /usr/share/dpkg/default.mk
9 DEBDATE := $(shell dpkg-parsechangelog -Sdate | date -u +"%F" -f -)
10
11
12 %:
13 dh $@ --buildsystem=pybuild
14
15 override_dh_auto_test:
16 PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} -m pytest -k 'not test_ordinals_with_embedded_locale and not schema' -v -x" dh_auto_test
17
18 override_dh_installdocs:
19 dh_installdocs -A README.md
20
21 override_dh_installexamples:
22 dh_installexamples -A examples/*
23 sed -i 's/usr\/bin\/env\ python/usr\/bin\/env\ python3/' debian/python3-citeproc/usr/share/doc/python3-citeproc/examples/*py
24
25 override_dh_installman:
26 txt2man -s 1 -v "python3-citeproc" -t "csl_unsorted" -r "$(VERSION)" -d "$(DEBDATE)" debian/csl_unsorted.txt > .pybuild/csl_unsorted.1
27 dh_installman -ppython3-citeproc .pybuild/csl_unsorted.1