File: rules

package info (click to toggle)
python-swiftclient 1%3A4.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,496 kB
  • sloc: python: 18,048; makefile: 84; sh: 49
file content (19 lines) | stat: -rwxr-xr-x 505 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

-include /usr/share/openstack-pkg-tools/pkgos.make

export PYBUILD_NAME=swiftclient

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

override_dh_auto_test:
	PYBUILD_SYSTEM=custom \
		PYBUILD_TEST_ARGS="cd {build_dir} ; {interpreter} -m stestr run" \
		dh_auto_test

override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	python3 -m sphinx -b html doc/source $(CURDIR)/debian/python-swiftclient-doc/usr/share/doc/python-swiftclient/html
	dh_sphinxdoc
endif