Source: python-altgraph Version: 0.12~dfsg-2 Severity: important Tags: patch User: debian-pyt...@lists.debian.org Usertags: python3.5
Dear Maintainer, python-altgraph FTBFS when Python 3.5 is the default Python 3 version (i.e. with python3-defaults from experimental): I: pybuild base:170: cd '/«PKGBUILDDIR»/.pybuild/pythonX.Y_3.5/build'; python3.5 -m unittest discover -v altgraph (unittest.loader._FailedTest) ... ERROR ====================================================================== ERROR: altgraph (unittest.loader._FailedTest) ---------------------------------------------------------------------- ImportError: Failed to import test module: altgraph Traceback (most recent call last): File "/usr/lib/python3.5/unittest/loader.py", line 462, in _find_test_path package = self._get_module_from_name(name) File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name __import__(name) File "/«PKGBUILDDIR»/.pybuild/pythonX.Y_3.5/build/altgraph/__init__.py", line 132, in <module> __version__ = pkg_resources.require('altgraph')[0].version File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 952, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 839, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'altgraph' distribution was not found and is required by the application You can find the full build log here: https://launchpadlibrarian.net/222742551/buildlog_ubuntu-xenial-amd64.python-altgraph_0.12~dfsg-2_BUILDING.txt.gz The attached patch fixes this (and, as a bonus, enables tests running for all Python versions). -- Dmitry Shachnev
From a5480f3b6c34fdf2f5c50f94185efda0b8b56def Mon Sep 17 00:00:00 2001 From: Dmitry Shachnev <mity...@gmail.com> Date: Sun, 25 Oct 2015 23:24:46 +0300 Subject: [PATCH] Fix the command to run the tests. --- debian/changelog | 6 ++++++ debian/rules | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/debian/changelog b/debian/changelog index b4f07ea..64ada6f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +python-altgraph (0.12~dfsg-3) UNRELEASED; urgency=medium + + * Fix the command to run the tests. + + -- Dmitry Shachnev <mity...@debian.org> Sun, 25 Oct 2015 23:23:49 +0300 + python-altgraph (0.12~dfsg-2) unstable; urgency=medium * Added note in README.Debian about which parts have been stripped. diff --git a/debian/rules b/debian/rules index 4b1070f..e8aaafa 100755 --- a/debian/rules +++ b/debian/rules @@ -20,6 +20,10 @@ override_dh_sphinxdoc: dh_sphinxdoc find debian/python-altgraph-doc -name license.txt -delete +override_dh_auto_test: + python3 setup.py egg_info + dh_auto_test -- --system=custom --test-args='{interpreter} -m unittest discover -v' + #build/python-altgraph-doc:: # sphinx-build -bhtml doc build/html # dh_sphinxdoc -ppython-altgraph-doc build/html -- 2.6.1
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Python-modules-team mailing list Python-modules-team@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team