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 include /usr/share/dpkg/pkg-info.mk
7 export DEB_VERSION_UPSTREAM
8
9 export PYBUILD_NAME=cachelib
10 export PYBUILD_VERBOSE=1
11 # Don't run tests for backends whose servers aren't in Debian.
12 export PYBUILD_TEST_ARGS=--deselect tests/test_dynamodb_cache.py --deselect tests/test_mongodb_cache.py
13
14 %:
15 ifeq (,$(filter nodoc,${DEB_BUILD_OPTIONS} ${DEB_BUILD_PROFILES}))
16 dh $@ --with python3,sphinxdoc --buildsystem=pybuild
17 else
18 dh $@ --with python3 --buildsystem=pybuild
19 endif
20
21 override_dh_auto_build: export http_proxy=127.0.0.1:9
22 override_dh_auto_build: export https_proxy=127.0.0.1:9
23 override_dh_auto_build:
24 dh_auto_build
25 ifeq (,$(filter nodoc,${DEB_BUILD_OPTIONS} ${DEB_BUILD_PROFILES}))
26 PYTHONPATH=./src debian/sphinx-build.py -N -bhtml docs/ build/html
27 endif
28
29 override_dh_auto_test:
30 PYTHONPATH=./src dh_auto_test
31
32 override_dh_installchangelogs:
33 dh_installchangelogs CHANGES.rst
34
35 override_dh_installdocs:
36 dh_installdocs --package=python3-cachelib
37 dh_installdocs --package=python-cachelib-doc --doc-main-package=python3-cachelib