1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
#!/usr/bin/make -f
export PYBUILD_TEST_CUSTOM := 1
# Exclude testrunner-eggsupport.rst because zope.testrunner isn't
# sufficiently installed while running its tests here for ftest to show up
# as an entry point.
export PYBUILD_TEST_ARGS := \
{interpreter} -m zope.testrunner \
--test-path $(if $(PYBUILD_AUTOPKGTEST),/usr/lib/python3/dist-packages,.) \
--package zope.testrunner \
-vv -t '!testrunner-eggsupport\.rst'
%:
dh $@ --buildsystem=pybuild
execute_after_dh_auto_install:
ln -sf zope-testrunner \
debian/python3-zope.testrunner/usr/bin/zope-testrunner3
execute_after_dh_gencontrol:
# Workaround for dh_python3 not removing python-setuptools from requires.txt
find debian/python3-zope.testrunner -name requires.txt -exec sed -i '/^setuptools$$/d' {} \;
override_dh_installchangelogs:
dh_installchangelogs CHANGES.rst
|