File: rules

package info (click to toggle)
python-telegram-bot 22.3-1
  • links: PTS
  • area: main
  • in suites: sid
  • size: 11,060 kB
  • sloc: python: 90,298; makefile: 176; sh: 4
file content (28 lines) | stat: -rwxr-xr-x 861 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
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

export PYBUILD_NAME=python-telegram-bot

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

# If you need to rebuild the Sphinx documentation
# Add spinxdoc to the dh --with line
override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=./src http_proxy='127.0.0.1:9' https_proxy='127.0.0.1:9' \
		sphinx-build -N -bhtml \
		docs/source/ build/html # HTML generator
	PYTHONPATH=./src http_proxy='127.0.0.1:9' https_proxy='127.0.0.1:9' \
		sphinx-build -N -bman \
		docs/source/ build/man # Manpage generator

override_dh_auto_clean:
	dh_auto_clean
	rm -rf $(CURDIR)/.pytest_cache
	rm -rf $(CURDIR)/python_telegram_bot.egg-info

override_dh_auto_test:
	# The unit test connects to the internet thus we disable it.