[Python-apps-commits] r12293 - in packages/pyflakes/trunk/debian (changelog rules)
barry at users.alioth.debian.org
barry at users.alioth.debian.org
Wed Aug 26 00:13:19 UTC 2015
Date: Wednesday, August 26, 2015 @ 00:13:16
Author: barry
Revision: 12293
d/rules: Add PYBUILD_{BEFORE,AFTER}_TEST variables to set up the
conditions required for the test suite.
Modified:
packages/pyflakes/trunk/debian/changelog
packages/pyflakes/trunk/debian/rules
Modified: packages/pyflakes/trunk/debian/changelog
===================================================================
--- packages/pyflakes/trunk/debian/changelog 2015-08-25 23:33:30 UTC (rev 12292)
+++ packages/pyflakes/trunk/debian/changelog 2015-08-26 00:13:16 UTC (rev 12293)
@@ -11,6 +11,8 @@
* d/patches/python35-compat.patch: Cherry picked upstream patch to fix a
test failure under Python 3.5.
* d/control: Bump Standards-Version to 3.9.6 with no other changes needed.
+ * d/rules: Add PYBUILD_{BEFORE,AFTER}_TEST variables to set up the
+ conditions required for the test suite.
* d/watch: Use the pypi.debian.net redirector.
-- Barry Warsaw <barry at debian.org> Tue, 25 Aug 2015 16:42:02 -0400
Modified: packages/pyflakes/trunk/debian/rules
===================================================================
--- packages/pyflakes/trunk/debian/rules 2015-08-25 23:33:30 UTC (rev 12292)
+++ packages/pyflakes/trunk/debian/rules 2015-08-26 00:13:16 UTC (rev 12293)
@@ -6,6 +6,15 @@
export PYBUILD_DESTDIR_python2=debian/pyflakes
export PYBUILD_DESTDIR_python3=debian/pyflakes
+# Some tests require that the bin/pyflakes script be available one directory
+# up relative to the package directory. When the tests are run during the
+# build, this won't be the case, because pybuild cd's to a directory that
+# doesn't have this installed. Create the necessary paths, run the tests,
+# then delete the paths.
+export PYBUILD_BEFORE_TEST=mkdir -p {build_dir}/bin && ln -s $(CURDIR)/bin/pyflakes {build_dir}/bin/pyflakes
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/bin
+
+
%:
dh $@ --with python2,python3 --buildsystem=pybuild
More information about the Python-apps-commits
mailing list