Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export PYBUILD_NAME=mt-940
4 export PYBUILD_TEST_ARGS={dir}/mt940_tests/
5 export PYBUILD_AFTER_TEST=rm -rfv {build_dir}/htmlcov
6
7 # try to prevent unsanctioned downloads
8 export http_proxy=http://127.0.0.1:9/
9 export https_proxy=http://127.0.0.1:9/
10
11
12 %:
13 dh $@ --with python3,sphinxdoc --buildsystem=pybuild
14
15 override_dh_sphinxdoc:
16 python3 -m sphinx -b html docs $(CURDIR)/debian/python-mt-940-doc/usr/share/doc/python-mt-940-doc/html
17 dh_sphinxdoc
18
19 # remove unnecessary files after install
20 execute_after_dh_auto_install:
21 rm -rf $(CURDIR)/debian/python3-mt-940/usr/lib/python3.11/dist-packages/mt940_tests/*
22 rm -f $(CURDIR)/debian/python3-mt-940/usr/lib/python3.11/dist-packages/.coverage
23 rm -rf $(CURDIR)/debian/python3-mt-940/usr/lib/python3.11/dist-packages/htmlcov/*
24 rm -f $(CURDIR)/debian/python3-mt-940/usr/lib/python3.11/dist-packages/htmlcov/.gitignore