Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 UPSTREAM_GIT := https://github.com/openstack/taskflow.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 .eggs *.egg-info build
11 find . -iname '*.pyc' -delete
12 for i in $$(find . -type d -iname __pycache__) ; do rm -rf $$i ; done
13
14 override_dh_auto_build:
15 echo "Do nothing..."
16
17 override_dh_auto_install:
18 for i in $(PYTHON3S) ; do \
19 python3 setup.py install -f --install-layout=deb --root=$(CURDIR)/debian/tmp ; \
20 done
21 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
22 PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages pkgos-dh_auto_test --no-py2 'taskflow\.tests\.(?!(.*test_examples\.ExamplesTestCase.*|.*worker_based\.test_protocol\.TestProtocol\.test_to_dict_with_invalid_json_failures.*|.*unit\.test_utils\.UriParseTest\.test_ipv6_host.*|.*persistence\.test_dir_persistence\.DirPersistenceTest\.test_dir_backend_cache_overfill.*))'
23 endif
24
25 override_dh_auto_test:
26 echo "Do nothing..."
27
28 override_dh_sphinxdoc:
29 ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
30 PYTHONPATH=. PYTHON=python3 python3 -m sphinx -b html doc/source $(CURDIR)/debian/python-taskflow-doc/usr/share/doc/python-taskflow-doc/html
31 dh_sphinxdoc
32 endif