Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 UPSTREAM_GIT := https://github.com/HewlettPackard/python-redfish-utility
4 include /usr/share/openstack-pkg-tools/pkgos.make
5
6 %:
7 dh $@ --with python3
8
9 override_dh_auto_clean:
10 rm -rf build .stestr doc/build build $(CURDIR)/ilorest/config/__init__.py *.egg-info
11 find . -iname '*.pyc' -delete
12 for i in $$(find . -type d -iname __pycache__) ; do rm -rf $$i ; done
13
14 override_dh_auto_build:
15 echo "Do nothing..."
16
17 override_dh_auto_install:
18 if ! [ -e ilorest ] ; then ln -s src ilorest ; fi
19 pkgos-dh_auto_install --no-py2 --in-tmp
20
21 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
22 echo "No tests for now..."
23 # pkgos-dh_auto_test --no-py2 'openstackclient\.tests\.(?!(.*test_shell\.TestShellCli\.test_shell_args_precedence.*|.*test_shell\.TestShellCliEnv\.test_shell_args_precedence_.*))'
24 endif
25
26 override_dh_auto_test:
27 echo "Tests to be done after install..."
28
29 override_dh_python3:
30 dh_python3 --shebang=/usr/bin/python3