File: rules

package info (click to toggle)
python-shade 1.30.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 3,196 kB
  • sloc: python: 33,354; sh: 111; makefile: 15
file content (21 lines) | stat: -rwxr-xr-x 673 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
#!/usr/bin/make -f
export PYBUILD_NAME=shade

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

override_dh_install:
	dh_install -O--buildsystem=pybuild
	rm -f debian/python*-shade/usr/bin/shade-inventory

override_dh_installman: debian/shade-inventory.1
	dh_installman -O--buildsystem=pybuild

debian/shade-inventory.1:
	PYTHONPATH=. argparse-manpage --pyfile shade/cmd/inventory.py --function get_parser --project shade-inventory --author OpenStack --author-email openstack-discuss@lists.openstack.org --url https://git.openstack.org/cgit/openstack-infra/shade > $@

override_dh_auto_test:
ifeq (,$(filter nocheck, $(DEB_BUILD_OPTIONS)))
	stestr run
	stestr slowest
endif