File: rules

package info (click to toggle)
txtorcon 24.8.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,036 kB
  • sloc: python: 17,607; makefile: 227; sh: 34
file content (29 lines) | stat: -rwxr-xr-x 929 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
#!/usr/bin/make -f

export PYBUILD_NAME=txtorcon

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

override_dh_auto_build:
	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs/ docs/_build/html # HTML generator
	dh_auto_build -O--buildsystem=pybuild

override_dh_auto_install:
	dh_auto_install -O--buildsystem=pybuild
	mkdir -p debian/python3-txtorcon/usr/share/doc/python3-txtorcon
	set -e && \
	for data_src in README.rst TODO examples; do \
		mv debian/python3-txtorcon/usr/share/txtorcon/$$data_src \
			debian/python3-txtorcon/usr/share/doc/python3-txtorcon; \
	done
	chmod 644 debian/python3-txtorcon/usr/share/doc/python3-txtorcon/examples/*.py
	rm -r debian/python3-txtorcon/usr/share/txtorcon

override_dh_compress:
	dh_compress -Xlaunch_tor_with_simplehttpd.py -O--buildsystem=pybuild

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. trial3 --reporter=text test
endif