| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/openstack-pkg-tools/pkgos.make |
| 4 |
|
| 5 |
IPA_CONF=$(CURDIR)/debian/ironic-python-agent/etc/ironic-python-agent/ironic-python-agent.conf |
| 6 |
|
| 7 |
%: |
| 8 |
dh $@ --buildsystem=pybuild --with python3 |
| 9 |
|
| 10 |
override_dh_auto_build: |
| 11 |
echo "Do nothing..." |
| 12 |
|
| 13 |
override_dh_auto_test: |
| 14 |
echo "Do nothing..." |
| 15 |
|
| 16 |
override_dh_auto_install: |
| 17 |
echo "Do nothing..." |
| 18 |
|
| 19 |
override_dh_auto_clean: |
| 20 |
rm -rf *.egg-info build |
| 21 |
rm -f debian/*.init debian/*.service |
| 22 |
find . -type d -name __pycache__ -exec rm -r {} \+ |
| 23 |
|
| 24 |
override_dh_install: |
| 25 |
touch ironic_python_agent/metrics_lib/__init__.py |
| 26 |
pkgos-dh_auto_install --no-py2 --in-tmp |
| 27 |
|
| 28 |
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) |
| 29 |
# Failing under riscv: |
| 30 |
# extensions.test_standby.TestStandbyExtension.test_execute_bootc_install |
| 31 |
pkgos-dh_auto_test --no-py2 'ironic_python_agent\.tests\.unit\.(?!test_inspector\.TestWaitForDhcp\.test_timeout|extensions\.test_standby\.TestStandbyExtension\.test_execute_bootc_install)' |
| 32 |
endif |
| 33 |
mkdir -p $(CURDIR)/debian/ironic-python-agent/etc/ironic-python-agent |
| 34 |
PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages oslo-config-generator \ |
| 35 |
--output-file $(IPA_CONF) \ |
| 36 |
--wrap-width 140 \ |
| 37 |
--namespace ironic-python-agent |
| 38 |
dh_install |
| 39 |
|
| 40 |
pkgos-fix-config-default $(NOVA_CONF) DEFAULT collect_lldp true |
| 41 |
|
| 42 |
override_dh_python3: |
| 43 |
dh_python3 --shebang=/usr/bin/python3 |