Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # See debhelper(7) (uncomment to enable)
3 # output every command that modifies files on the build system.
4 #export DH_VERBOSE = 1
5
6 export PYBUILD_NAME=cachelib
7 export PYBUILD_VERBOSE=1
8 # Don't run tests for backends whose servers aren't in Debian.
9 export PYBUILD_TEST_ARGS=-k 'not test_dynamodb and not test_mongodb'
10
11 %:
12 ifeq (,$(filter nodoc,${DEB_BUILD_OPTIONS} ${DEB_BUILD_PROFILES}))
13 dh $@ --with python3,sphinxdoc --buildsystem=pybuild
14 else
15 dh $@ --with python3 --buildsystem=pybuild
16 endif
17
18 override_dh_auto_build: export http_proxy=127.0.0.1:9
19 override_dh_auto_build: export https_proxy=127.0.0.1:9
20 override_dh_auto_build:
21 dh_auto_build
22 ifeq (,$(filter nodoc,${DEB_BUILD_OPTIONS} ${DEB_BUILD_PROFILES}))
23 PYTHONPATH=./src python3 -m sphinx -N -bhtml docs/ build/html
24 endif
25
26 override_dh_auto_test:
27 PYTHONPATH=./src dh_auto_test
28
29 override_dh_installchangelogs:
30 dh_installchangelogs CHANGES.rst
31
32 override_dh_installdocs:
33 dh_installdocs --package=python3-cachelib
34 dh_installdocs --package=python-cachelib-doc --doc-main-package=python3-cachelib