| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
UPSTREAM_GIT := https://github.com/openstack/os-service-types.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 build .pybuild *egg-info |
| 11 |
find . -type d -name __pycache__ -exec rm -r {} \+ |
| 12 |
|
| 13 |
override_dh_auto_build: |
| 14 |
echo "Do nothing..." |
| 15 |
|
| 16 |
override_dh_auto_install: |
| 17 |
pkgos-dh_auto_install --no-py2 |
| 18 |
|
| 19 |
override_dh_auto_test: |
| 20 |
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) |
| 21 |
pkgos-dh_auto_test --no-py2 |
| 22 |
endif |
| 23 |
|
| 24 |
override_dh_sphinxdoc: |
| 25 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 26 |
python3 -m sphinx -b html doc/source debian/python-os-service-types-doc/usr/share/doc/python-os-service-types-doc/html |
| 27 |
dh_sphinxdoc -O--buildsystem=pybuild |
| 28 |
endif |