| 1 |
|
| 2 |
|
| 3 |
UPSTREAM_GITscip-debian debian python-etcd3gw 2.5.0-2 python-etcd3gw/rules/UPSTREAM_GIT. := https://opendev.org/openstack/etcd3gw |
| 4 |
include /usr/share/openstack-pkg-tools/pkgos.make |
| 5 |
|
| 6 |
%scip-debian debian python-etcd3gw 2.5.0-2 python-etcd3gw/rules/`%`().: |
| 7 |
dh $@ --buildsystem=pybuild --with python3,sphinxdoc |
| 8 |
|
| 9 |
override_dh_auto_cleanscip-debian debian python-etcd3gw 2.5.0-2 python-etcd3gw/rules/override_dh_auto_clean().: |
| 10 |
rm -rf build .stestr *.egg-info .pybuild |
| 11 |
find . -iname '*.pyc' -delete |
| 12 |
for i in $$(find . -type d -iname __pycache__) ; do rm -rf $$i ; done |
| 13 |
|
| 14 |
override_dh_auto_testscip-debian debian python-etcd3gw 2.5.0-2 python-etcd3gw/rules/override_dh_auto_test().: |
| 15 |
echo "Do nothing..." |
| 16 |
|
| 17 |
override_dh_auto_buildscip-debian debian python-etcd3gw 2.5.0-2 python-etcd3gw/rules/override_dh_auto_build().: |
| 18 |
echo "Do nothing..." |
| 19 |
|
| 20 |
override_dh_auto_installscip-debian debian python-etcd3gw 2.5.0-2 python-etcd3gw/rules/override_dh_auto_install().: |
| 21 |
pkgos-dh_auto_installscip-debian debian debhelper . dh_auto_install(). --no-py2 --in-tmp |
| 22 |
|
| 23 |
ifeq (,$(findstringscip-debian debian python-etcd3gw 2.5.0-2 python-etcd3gw/rules/findstring. nocheck, $(DEB_BUILD_OPTIONSscip-debian debian python-etcd3gw 2.5.0-2 python-etcd3gw/rules/DEB_BUILD_OPTIONS.))) |
| 24 |
pkgos-dh_auto_test --no-py2 'etcd3gw\.tests.*' |
| 25 |
endif |
| 26 |
|
| 27 |
override_dh_sphinxdocscip-debian debian python-etcd3gw 2.5.0-2 python-etcd3gw/rules/override_dh_sphinxdoc().: |
| 28 |
ifeq (,$(findstringscip-debian debian python-etcd3gw 2.5.0-2 python-etcd3gw/rules/findstring. nodocs, $(DEB_BUILD_OPTIONSscip-debian debian python-etcd3gw 2.5.0-2 python-etcd3gw/rules/DEB_BUILD_OPTIONS.))) |
| 29 |
python3 -m sphinx -b html doc/source debian/python-etcd3gw-doc/usr/share/doc/python-etcd3gw-doc/html |
| 30 |
dh_sphinxdoc |
| 31 |
endif |
| 32 |
|