File: rules

package info (click to toggle)
pymongo 4.15.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,376 kB
  • sloc: python: 107,885; ansic: 4,601; javascript: 137; makefile: 38; sh: 10
file content (39 lines) | stat: -rwxr-xr-x 1,340 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
32
33
34
35
36
37
38
39
#!/usr/bin/make -f
# -*- makefile -*-

export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Skip tests that require network access.
export PYBUILD_TEST_ARGS := \
	--deselect test/asynchronous/test_client.py::AsyncClientUnitTest::test_connection_timeout_ms_propagates_to_DNS_resolver \
	--deselect test/test_client.py::ClientUnitTest::test_connection_timeout_ms_propagates_to_DNS_resolver \
	--deselect test/test_client.py::ClientUnitTest::test_detected_environment_warning
# Skip broken tests.
PYBUILD_TEST_ARGS += \
	--deselect test/test_srv_polling.py::TestSrvPolling \
	--deselect test/asynchronous/test_srv_polling.py::TestSrvPolling \
	--deselect test/test_uri_spec.py

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

override_dh_auto_clean:
	rm bson/_cbson.so  pymongo/_cmessage.so pymongo.egg-info -rf
	find . -name '*.so' -delete
	dh_auto_clean

override_dh_installchangelogs:
	dh_installchangelogs doc/changelog.rst

override_dh_compress:
	dh_compress -X.html

execute_after_dh_installdocs:
	PYTHONPATH=. http_proxy='http://127.0.0.1:9/' sphinx-build -N -q -E -bhtml doc/ debian/python-pymongo-doc/usr/share/doc/python-pymongo-doc/html/

override_dh_sphinxdoc:
ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS)))
	# Run dh_sphinxdoc only on python-pymongo-doc, see #745690
	dh_sphinxdoc -ppython-pymongo-doc
endif