Run unit tests from installed Python package.
Thomas Goirand
4 years ago
1 | 1 |
|
2 | 2 |
* New upstream release.
|
3 | 3 |
* Removed Python 2 support.
|
|
4 |
* Run unit tests from installed Python package.
|
4 | 5 |
|
5 | 6 |
-- Thomas Goirand <zigo@debian.org> Tue, 26 Mar 2019 17:50:55 +0100
|
6 | 7 |
|
12 | 12 |
echo "Do nothing..."
|
13 | 13 |
|
14 | 14 |
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
|
16 | 18 |
|
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 \
|
19 | 21 |
--wrap-width 140 \
|
20 | 22 |
--namespace castellan.config
|
21 | 23 |
|
|
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 |
|
22 | 28 |
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..."
|
26 | 30 |
|
27 | 31 |
override_dh_sphinxdoc:
|
28 | 32 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
|