| 1 |
|
| 2 |
|
| 3 |
include /usr/share/openstack-pkg-tools/pkgos.make |
| 4 |
|
| 5 |
%: |
| 6 |
dh $@ --buildsystem=pybuild --with python3 |
| 7 |
|
| 8 |
override_dh_clean: |
| 9 |
dh_clean |
| 10 |
rm -rf *.egg-info |
| 11 |
rm -rf build .pybuild |
| 12 |
|
| 13 |
override_dh_auto_clean: |
| 14 |
python3 setup.py clean |
| 15 |
|
| 16 |
override_dh_auto_build: |
| 17 |
echo "Do nothing..." |
| 18 |
|
| 19 |
override_dh_auto_install: |
| 20 |
echo "Do nothing..." |
| 21 |
|
| 22 |
override_dh_install: |
| 23 |
for i in $(PYTHON3S) ; do \ |
| 24 |
python$$i setup.py install --install-layout=deb --root $(CURDIR)/debian/tmp ; \ |
| 25 |
done |
| 26 |
|
| 27 |
|
| 28 |
install -d -m 755 $(CURDIR)/debian/tmp/etc/openstack-dashboard/local_settings.d |
| 29 |
install -d -m 755 $(CURDIR)/debian/tmp/etc/openstack-dashboard/policy |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
mkdir -p $(CURDIR)/debian/tmp/usr/lib/python3/dist-packages/openstack_dashboard/local/enabled |
| 36 |
cp $(CURDIR)/debian/tmp/usr/lib/python3/dist-packages/heat_dashboard/enabled/_[0-9]*.py $(CURDIR)/debian/tmp/usr/lib/python3/dist-packages/openstack_dashboard/local/enabled |
| 37 |
|
| 38 |
|
| 39 |
cp $(CURDIR)/debian/tmp/usr/lib/python3/dist-packages/heat_dashboard/local_settings.d/_[0-9]*.py $(CURDIR)/debian/tmp/etc/openstack-dashboard/local_settings.d/ |
| 40 |
|
| 41 |
dh_install |
| 42 |
dh_missing --fail-missing |
| 43 |
|
| 44 |
override_dh_auto_test: |
| 45 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 46 |
for i in $(PYTHON3S) ; do \ |
| 47 |
PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages \ |
| 48 |
python$$i $(CURDIR)/manage.py test heat_dashboard.test -v 2 --settings=heat_dashboard.test.settings --exclude-tag integration ; \ |
| 49 |
done |
| 50 |
|
| 51 |
find . -name __pycache__ -prune -exec rm -rf {} +; |
| 52 |
endif |