File: rules

package info (click to toggle)
python-pdoc 15.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,192 kB
  • sloc: python: 8,013; javascript: 1,156; makefile: 18; sh: 3
file content (25 lines) | stat: -rwxr-xr-x 856 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
#!/usr/bin/make -f

export PYBUILD_NAME=pdoc

# Disable tests needing depends not in Debian
export PYBUILD_TEST_ARGS = \
	-k 'not test_walk_specs \
	and not test_parse_spec \
	and not test_snapshots[html-flavors_rst] \
	and not test_snapshots[html-example_customtemplate] \
	and not test_snapshots[html-example_darkmode] \
	and not test_snapshots[html-example_mkdocs] \
	and not test_snapshots[html-demo_long] \
	and not test_snapshots[html-demopackage_dir] \
	and not snapshots[repr-pyo3_sample_library] \
	and not test_snapshots[html-pyo3_sample_library] \
	and not test_snapshots[repr-misc_py312]'

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

override_dh_auto_install:
	dh_auto_install
	# Fix permissions for non-executable files
	find debian/python3-pdoc/usr/lib/python3.*/dist-packages/pdoc/templates/ -type f -name '*.jinja2' -exec chmod -x {} +