| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
#export DH_VERBOSE=1 |
| 4 |
export LC_ALL=C.UTF-8 |
| 5 |
export PYBUILD_TEST_ARGS=-v |
| 6 |
|
| 7 |
%: |
| 8 |
dh $@ --buildsystem=pybuild |
| 9 |
|
| 10 |
override_dh_auto_configure: |
| 11 |
dh_auto_configure |
| 12 |
mkdir -p share/templates/lab/static |
| 13 |
cp debian/missing-sources/[email protected]/style/index.css share/templates/lab/static/index.css |
| 14 |
cp debian/missing-sources/[email protected]/style/variables.css share/templates/lab/static/theme-light.css |
| 15 |
cp debian/missing-sources/[email protected]/style/variables.css share/templates/lab/static/theme-dark.css |
| 16 |
|
| 17 |
override_dh_auto_test: |
| 18 |
@echo "Disabling autotests: entry points are not available yet!" |
| 19 |
|
| 20 |
override_dh_auto_install: |
| 21 |
dh_auto_install |
| 22 |
rm -rf `find debian/tmp -name tests -type d` |
| 23 |
|
| 24 |
override_dh_sphinxdoc: |
| 25 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 26 |
ln -nsf . share/nbconvert |
| 27 |
PYTHONPATH=. JUPYTER_PATH=share python3 -m sphinx -b html docs/source debian/python-nbconvert-doc/usr/share/doc/python-nbconvert-doc/html |
| 28 |
dh_sphinxdoc -O--buildsystem=pybuild |
| 29 |
endif |
| 30 |
|
| 31 |
override_dh_installchangelogs: |
| 32 |
dh_installchangelogs -k CHANGELOG.md |