| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
UPSTREAM_GIT := https://github.com/pecan/pecan.git |
| 4 |
include /usr/share/openstack-pkg-tools/pkgos.make |
| 5 |
|
| 6 |
#export http_proxy=127.0.0.1:9 |
| 7 |
#export https_proxy=127.0.0.1:9 |
| 8 |
|
| 9 |
%: |
| 10 |
dh $@ --with python3,sphinxdoc |
| 11 |
|
| 12 |
override_dh_auto_clean: |
| 13 |
rm -rf build *.egg-info |
| 14 |
find . -type d -name __pycache__ -exec rm -r {} \+ |
| 15 |
rm -rf .pytest_cache |
| 16 |
|
| 17 |
override_dh_auto_build: |
| 18 |
echo "Do nothing..." |
| 19 |
|
| 20 |
override_dh_auto_install: |
| 21 |
pkgos-dh_auto_install --no-py2 --in-tmp |
| 22 |
|
| 23 |
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) |
| 24 |
set -e && for pyvers in $(PYTHON3S) ; do \ |
| 25 |
PYTHONPATH=$(CURDIR)/tmp/usr/lib/python3/dist-packages python$$pyvers -m pytest pecan/tests -v -k 'not test_config_with_non_package_relative_import and not test_genshi and not test_mako'; \ |
| 26 |
done |
| 27 |
endif |
| 28 |
|
| 29 |
override_dh_python3: |
| 30 |
dh_python3 --shebang=/usr/bin/python3 |
| 31 |
|
| 32 |
override_dh_auto_test: |
| 33 |
echo "Do not run tests here..." |
| 34 |
|
| 35 |
override_dh_sphinxdoc: |
| 36 |
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS))) |
| 37 |
PYTHONPATH=$(CURDIR) python3 -m sphinx docs/source $(CURDIR)/debian/python-pecan-doc/usr/share/doc/python-pecan-doc/html |
| 38 |
dh_sphinxdoc |
| 39 |
endif |