File: rules

package info (click to toggle)
python-tld 0.11.11-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,360 kB
  • sloc: python: 1,413; makefile: 20
file content (17 lines) | stat: -rwxr-xr-x 619 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f
#export DH_VERBOSE = 1

export PYBUILD_NAME=tld
export PYBUILD_BEFORE_TEST=mkdir -p {build_dir}/tld/res;ln -sf /usr/share/publicsuffix/effective_tld_names.dat {build_dir}/tld/res/effective_tld_names.dat.txt;cp -r {dir}/src/tld/tests/res {build_dir}/tld/tests
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/tld/res; rm -rf {build_dir}/tld/tests/res

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


override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=. http_proxy='127.0.0.1:9' python3 -m sphinx -N -bhtml docs/ build/html # HTML generator

override_dh_auto_install:
	dh_auto_install -Xres/old