Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 include /usr/share/openstack-pkg-tools/pkgos.make
4
5 %scip-debian debian heat-dashboard 15.0.0-1 heat-dashboard/rules/`%`().:
6 dh $@ --buildsystem=pybuild --with python3
7
8 override_dh_cleanscip-debian debian heat-dashboard 15.0.0-1 heat-dashboard/rules/override_dh_clean().:
9 dh_cleanscip-debian debian debhelper . dh_clean().
10 rm -rf *.egg-info
11 rm -rf build .pybuild
12
13 override_dh_auto_cleanscip-debian debian heat-dashboard 15.0.0-1 heat-dashboard/rules/override_dh_auto_clean().:
14 python3 setup.py clean
15
16 override_dh_auto_buildscip-debian debian heat-dashboard 15.0.0-1 heat-dashboard/rules/override_dh_auto_build().:
17 echo "Do nothing..."
18
19 override_dh_auto_installscip-debian debian heat-dashboard 15.0.0-1 heat-dashboard/rules/override_dh_auto_install().:
20 echo "Do nothing..."
21
22 override_dh_installscip-debian debian heat-dashboard 15.0.0-1 heat-dashboard/rules/override_dh_install().:
23 for i in $(PYTHON3Sscip-debian debian heat-dashboard 15.0.0-1 heat-dashboard/rules/PYTHON3S.) ; do \
24 python$$i setup.py install --install-layout=deb --root $(CURDIRscip-debian debian heat-dashboard 15.0.0-1 heat-dashboard/rules/CURDIR.)/debian/tmp ; \
25 done
26
27 # Move config files to standard location
28 install -d -m 755 $(CURDIRscip-debian debian heat-dashboard 15.0.0-1 heat-dashboard/rules/CURDIR.)/debian/tmp/etc/openstack-dashboard/local_settings.d
29 install -d -m 755 $(CURDIRscip-debian debian heat-dashboard 15.0.0-1 heat-dashboard/rules/CURDIR.)/debian/tmp/etc/openstack-dashboard/policy
30
31 # Copy policy file to openstack-dashboard policy location
32 # cp $(CURDIR)/debian/tmp/usr/lib/python3/dist-packages/heat_dashboard/conf/heat_policy.json $(CURDIR)/debian/tmp/etc/openstack-dashboard/policy/heat_policy.json
33
34 # Copy config enabled to openstack-dashboard enabled location
35 mkdir -p $(CURDIRscip-debian debian heat-dashboard 15.0.0-1 heat-dashboard/rules/CURDIR.)/debian/tmp/usr/lib/python3/dist-packages/openstack_dashboard/local/enabled
36 cp $(CURDIRscip-debian debian heat-dashboard 15.0.0-1 heat-dashboard/rules/CURDIR.)/debian/tmp/usr/lib/python3/dist-packages/heat_dashboard/enabled/_[0-9]*.py $(CURDIRscip-debian debian heat-dashboard 15.0.0-1 heat-dashboard/rules/CURDIR.)/debian/tmp/usr/lib/python3/dist-packages/openstack_dashboard/local/enabled
37
38 # Copy local_settings.d to openstack-dashboard local_settings.d location
39 cp $(CURDIRscip-debian debian heat-dashboard 15.0.0-1 heat-dashboard/rules/CURDIR.)/debian/tmp/usr/lib/python3/dist-packages/heat_dashboard/local_settings.d/_[0-9]*.py $(CURDIRscip-debian debian heat-dashboard 15.0.0-1 heat-dashboard/rules/CURDIR.)/debian/tmp/etc/openstack-dashboard/local_settings.d/
40
41 dh_installscip-debian debian debhelper . dh_install().
42 dh_missingscip-debian debian debhelper . dh_missing(). --fail-missing
43
44 override_dh_auto_testscip-debian debian heat-dashboard 15.0.0-1 heat-dashboard/rules/override_dh_auto_test().:
45 ifeq (,$(filterscip-debian debian heat-dashboard 15.0.0-1 heat-dashboard/rules/filter. nocheck,$(DEB_BUILD_OPTIONSscip-debian debian heat-dashboard 15.0.0-1 heat-dashboard/rules/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 ## Delete __pycache__
51 find . -name __pycache__ -prune -exec rm -rf {} +;
52 endif