| 1 |
|
| 2 |
|
| 3 |
UPSTREAM_GIT := https://github.com/openstack/os-vif.git |
| 4 |
include /usr/share/openstack-pkg-tools/pkgos.make |
| 5 |
|
| 6 |
%: |
| 7 |
dh $@ --buildsystem=pybuild --with python3,sphinxdoc |
| 8 |
|
| 9 |
override_dh_auto_clean: |
| 10 |
rm -rf AUTHORS ChangeLog |
| 11 |
rm -rf build .stestr *.egg-info .pybuild |
| 12 |
find . -iname '*.pyc' -delete |
| 13 |
for i in $$(find . -type d -iname __pycache__) ; do rm -rf $$i ; done |
| 14 |
|
| 15 |
override_dh_auto_build: |
| 16 |
echo "Do nothing..." |
| 17 |
|
| 18 |
override_dh_auto_install: |
| 19 |
for i in $(PYTHON3S) ; do \ |
| 20 |
python3 setup.py install -f --install-layout=deb --root=$(CURDIR)/debian/tmp ; \ |
| 21 |
done |
| 22 |
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) |
| 23 |
PYTHONPATH=$(CURDIR)/debian/usr/lib/python3/dist-packages pkgos-dh_auto_test --no-py2 '--test-path $(CURDIR)/os_vif/tests os_vif\.tests\.unit\.(?!test_objects\.TestObjectVersions\.test_versions)' |
| 24 |
endif |
| 25 |
|
| 26 |
override_dh_auto_test: |
| 27 |
echo "Do nothing..." |
| 28 |
|
| 29 |
override_dh_sphinxdoc: |
| 30 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 31 |
PYTHONPATH=. python3 -m sphinx -b html doc/source debian/python-os-vif-doc/usr/share/doc/python-os-vif-doc/html |
| 32 |
dh_sphinxdoc |
| 33 |
endif |