| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export PYBUILD_NAME=cffi |
| 4 |
export PYBUILD_EXT_DESTDIR_python3=debian/python3-cffi-backend |
| 5 |
|
| 6 |
export VIRTUALENV_DOWNLOAD=no |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ --buildsystem pybuild |
| 10 |
|
| 11 |
execute_after_dh_auto_build-indep: |
| 12 |
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) |
| 13 |
python3 -m sphinx -b html -d doc/build/doctrees doc/source doc/build/html |
| 14 |
endif |
| 15 |
|
| 16 |
override_dh_auto_test: |
| 17 |
PYBUILD_SYSTEM=custom \ |
| 18 |
PYBUILD_BEFORE_TEST="{interpreter} setup.py egg_info" \ |
| 19 |
PYBUILD_TEST_ARGS="{interpreter} -m pytest src/c/ testing/" \ |
| 20 |
dh_auto_test |
| 21 |
|
| 22 |
execute_before_dh_install: |
| 23 |
debian/gen-backend-versions.py |
| 24 |
|
| 25 |
override_dh_installdocs-indep: |
| 26 |
dh_installdocs -p python-cffi-doc --doc-main-package python-cffi-doc |
| 27 |
dh_installdocs --indep -N python-cffi-doc |
| 28 |
|
| 29 |
override_dh_installchangelogs: |
| 30 |
dh_installchangelogs doc/source/whatsnew.rst |
| 31 |
|
| 32 |
override_dh_strip: |
| 33 |
dh_strip -p python3-cffi-backend \ |
| 34 |
--dbgsym-migration='python3-cffi-backend-dbg (<< 1.14.6-2)' |
| 35 |
dh_strip --remaining-packages |
| 36 |
|
| 37 |
execute_after_dh_clean: |
| 38 |
rm -rf $(wildcard testing/*/snippets/*/build testing/*/snippets/*/dist testing/*/snippets/*/*.egg-info testing/*/snippets/*/__pycache__) |