Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 include /usr/share/openstack-pkg-tools/pkgos.make
4
5 %:
6 dh $@ --buildsystem=python_distutils --with python3
7
8 override_dh_clean:
9 dh_clean
10 rm -rf .coverage*
11
12 override_dh_auto_clean:
13 python3 setup.py clean
14
15 override_dh_auto_build:
16 echo "Do nothing..."
17
18 override_dh_auto_install:
19 echo "Do nothing..."
20
21 override_dh_install:
22 for i in $(PYTHON3S) ; do \
23 python$$i setup.py install --install-layout=deb --root $(CURDIR)/debian/tmp ; \
24 done
25
26 # Move config files to standard location
27 install -d -m 755 $(CURDIR)/debian/tmp/etc/openstack-dashboard/enabled
28
29 # Copy config enabled to openstack-dashboard enabled location
30 cp $(CURDIR)/debian/tmp/usr/lib/python3/dist-packages/adjutant_ui/enabled/_[0-9]*.py $(CURDIR)/debian/tmp/etc/openstack-dashboard/enabled/
31
32 dh_install
33 dh_missing --fail-missing
34
35 override_dh_auto_test:
36 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
37 for i in $(PYTHON3S) ; do \
38 PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages \
39 NOSE_WITH_OPENSTACK=1 \
40 NOSE_OPENSTACK_COLOR=1 \
41 NOSE_OPENSTACK_RED=0.05 \
42 NOSE_OPENSTACK_YELLOW=0.025 \
43 NOSE_OPENSTACK_SHOW_ELAPSED=1 \
44 python$$i $(CURDIR)/manage.py test adjutant_ui.test -v 2 --settings=adjutant_ui.test.settings ; \
45 done
46 ## Delete __pycache__
47 find . -name __pycache__ -prune -exec rm -rf {} +;
48 endif