diff --git a/debian/changelog b/debian/changelog index de6a62cec66a6c0313c7dd9362bf6ba3a447f657..1b5f1056e8a8f4c6a4bafa3075d89128fd71d046 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,7 +1,8 @@ -python-django-compressor (4.5.1-3) UNRELEASED; urgency=medium +python-django-compressor (4.5.1-3) unstable; urgency=medium * Define explicit debian/tests/control rather than autopkgtest-pkg-pybuild in d/control. + * Add rm -rf {build_dir}/.tmp; in test command (Closes: #1089028). -- Thomas Goirand <zigo@debian.org> Mon, 09 Dec 2024 13:46:34 +0100 diff --git a/debian/rules b/debian/rules index 2b1a1b9a616e46a7561e274f957070bedf927309..f0d6df2f7f29a09e187d302b2f9b2143cdd91b02 100755 --- a/debian/rules +++ b/debian/rules @@ -4,7 +4,7 @@ UPSTREAM_GIT := https://github.com/django-compressor/django-compressor.git include /usr/share/openstack-pkg-tools/pkgos.make export PYBUILD_TEST_CUSTOM = 1 -export PYBUILD_TEST_ARGS = mkdir {build_dir}/.tmp; cp -a {dir}/compressor/tests/static {build_dir}/.tmp/static; env TMP_TEST_DIR={build_dir}/.tmp {interpreter} -m coverage run --branch --source=compressor /usr/bin/django-admin test --settings=compressor.test_settings compressor +export PYBUILD_TEST_ARGS = rm -rf {build_dir}/.tmp; mkdir {build_dir}/.tmp; cp -a {dir}/compressor/tests/static {build_dir}/.tmp/static; env TMP_TEST_DIR={build_dir}/.tmp {interpreter} -m coverage run --branch --source=compressor /usr/bin/django-admin test --settings=compressor.test_settings compressor %: dh $@ --buildsystem=pybuild --with python3