Package list python-castellan / eebca11
Run unit tests from installed Python package. Thomas Goirand 2 years ago
3 changed file(s) with 13 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
11
22 * New upstream release.
33 * Removed Python 2 support.
4 * Run unit tests from installed Python package.
45
56 -- Thomas Goirand <zigo@debian.org> Tue, 26 Mar 2019 17:50:55 +0100
67
1212 echo "Do nothing..."
1313
1414 override_dh_auto_install:
15 pkgos-dh_auto_install --no-py2
15 for i in $(PYTHON3S) ; do \
16 python3 setup.py install -f --install-layout=deb --root=$(CURDIR)/debian/tmp ; \
17 done
1618
17 mkdir -p $(CURDIR)/debian/python-castellan/etc/castellan
18 PYTHONPATH=. oslo-config-generator --output-file $(CURDIR)/debian/python-castellan/etc/castellan/castellan.conf \
19 mkdir -p $(CURDIR)/debian/tmp/etc/castellan
20 PYTHONPATH=. oslo-config-generator --output-file $(CURDIR)/debian/tmp/etc/castellan/castellan.conf \
1921 --wrap-width 140 \
2022 --namespace castellan.config
2123
24 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
25 PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages pkgos-dh_auto_test --no-py2 'castellan\.tests\.unit.*'
26 endif
27
2228 override_dh_auto_test:
23 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
24 pkgos-dh_auto_test --no-py2 'castellan\.tests\.unit.*'
25 endif
29 echo "Do nothing..."
2630
2731 override_dh_sphinxdoc:
2832 ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))