| 1 |
|
| 2 |
|
| 3 |
UPSTREAM_GIT := http://github.com/clalancette/pycdlib |
| 4 |
include /usr/share/openstack-pkg-tools/pkgos.make |
| 5 |
|
| 6 |
TMP_IS_TMPFS := $(shell egrep -q "^tmpfs[[:space:]]+/tmp[[:space:]]" /proc/mounts && echo true || echo false) |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ --with python3 |
| 10 |
|
| 11 |
override_dh_auto_clean: |
| 12 |
rm -rf build .stestr *.egg-info .pytest_cache |
| 13 |
find . -iname '*.pyc' -delete |
| 14 |
for i in $$(find . -type d -iname __pycache__) ; do rm -rf $$i ; done |
| 15 |
|
| 16 |
override_dh_auto_build: |
| 17 |
echo "Do nothing..." |
| 18 |
|
| 19 |
override_dh_auto_install: |
| 20 |
pkgos-dh_auto_install --no-py2 --in-tmp |
| 21 |
|
| 22 |
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) |
| 23 |
ifeq ($(TMP_IS_TMPFS),true) |
| 24 |
set -e ; set -x ; for pyvers in $(PYTHON3S); do \ |
| 25 |
PATH=$$PATH:$(CURDIR)/debian/tmp/usr/bin PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages python$$pyvers -m pytest tests -k 'not test_volumedescdate_new_nonzero and not test_gmtoffset_from_tm'; \ |
| 26 |
done |
| 27 |
endif |
| 28 |
endif |
| 29 |
|
| 30 |
override_dh_python3: |
| 31 |
dh_python3 --shebang=/usr/bin/python3 |
| 32 |
|
| 33 |
override_dh_auto_test: |
| 34 |
echo "Do nothing..." |