File: rules

package info (click to toggle)
python-telegram-bot 22.4-1
  • links: PTS
  • area: main
  • in suites: forky
  • size: 11,796 kB
  • sloc: python: 92,379; makefile: 179; sh: 4
file content (31 lines) | stat: -rwxr-xr-x 975 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
25
26
27
28
29
30
31
#!/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:
	cp -r $(CURDIR)/debian/staimg $(CURDIR)
	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
	rm -rf $(CURDIR)/staimg

override_dh_auto_test:
	# The unit test connects to the internet thus we disable it.
	echo "Skip test because it uses the internet:"