File: rules

package info (click to toggle)
python-requests-toolbelt 0.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 860 kB
  • sloc: python: 3,677; makefile: 158
file content (24 lines) | stat: -rwxr-xr-x 604 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f

export DH_VERBOSE=1
export PYBUILD_NAME=requests-toolbelt

# Requires betamax #808880
export PYBUILD_DISABLE=test

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

override_dh_installdocs:
	LC_ALL=C PYTHONPATH=. http_proxy='http://127.0.0.1:9/' sphinx-build -N -bhtml docs debian/html
	dh_installdocs
	dh_sphinxdoc

override_dh_auto_clean:
	$(RM) -r debian/html
	dh_auto_clean

override_dh_installchangelogs:
	dh_installchangelogs HISTORY.rst
	# Remove backup file included in distribution by mistake
	$(RM) debian/*/usr/lib/*/dist-packages/requests_toolbelt/multipart/.encoder.py.swp