File: rules

package info (click to toggle)
python-scrapy 2.8.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,224 kB
  • sloc: python: 44,213; xml: 199; makefile: 92; sh: 7
file content (33 lines) | stat: -rwxr-xr-x 1,054 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
30
31
32
33
#!/usr/bin/make -f
# -*- makefile -*-

export PYBUILD_NAME=scrapy
export PYBUILD_BEFORE_TEST=cd {dir}/tests/keys; cat example-com.key.pem example-com.cert.pem >cert.pem
# test_command_check.py requires network access
# some test_squeues.py tests are broken with recent python3-queuelib until the next python3-scrapy release
export PYBUILD_TEST_ARGS= \
	--ignore tests/test_command_check.py \
    -k 'not (test_squeues.py and (test_peek_fifo or test_peek_one_element or test_peek_lifo))'
export DH_ALWAYS_EXCLUDE=license.txt:_sources/:.buildinfo

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

override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. python3 -m sphinx -b html -N docs/ $(CURDIR)/debian/python-scrapy-doc/usr/share/doc/python-scrapy-doc/html
	dh_sphinxdoc
endif

override_dh_install:
	dh_install -Xjquery.js

override_dh_clean:
	rm -rf docs/.build
	dh_clean

override_dh_compress:
	dh_compress -X.js -Xobjects.inv

override_dh_installchangelogs:
	dh_installchangelogs docs/news.rst