File: rules

package info (click to toggle)
nbconvert 7.16.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,044 kB
  • sloc: python: 8,394; makefile: 199; javascript: 2
file content (32 lines) | stat: -rwxr-xr-x 1,102 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/make -f

#export DH_VERBOSE=1
export LC_ALL=C.UTF-8
export PYBUILD_TEST_ARGS=-v

%:
	dh $@ --with python3,sphinxdoc --buildsystem=pybuild

override_dh_auto_configure:
	dh_auto_configure
	mkdir -p share/templates/lab/static
	cp debian/missing-sources/nbconvert-css@4.0.2/style/index.css share/templates/lab/static/index.css
	cp debian/missing-sources/theme-light-extension@4.0.2/style/variables.css share/templates/lab/static/theme-light.css
	cp debian/missing-sources/theme-dark-extension@4.0.2/style/variables.css share/templates/lab/static/theme-dark.css

override_dh_auto_test:
	@echo "Disabling autotests: entry points are not available yet!"

override_dh_auto_install:
	dh_auto_install
	rm -rf `find debian/tmp -name tests -type d`

override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	ln -nsf . share/nbconvert
	PYTHONPATH=. JUPYTER_PATH=share python3 -m sphinx -b html docs/source debian/python-nbconvert-doc/usr/share/doc/python-nbconvert-doc/html
	dh_sphinxdoc -O--buildsystem=pybuild
endif

override_dh_installchangelogs:
	dh_installchangelogs -k CHANGELOG.md