Package: src:python-argh
Version: 0.26.2-1
Severity: normal

Dear Maintainer,

I was attempting a local backport of the testing version of python-argh to
jessie and it failed to build with the following error:

Traceback (most recent call last):
  File "setup.py", line 114, in <module>
    'Topic :: Software Development :: Libraries :: Python Modules',
  File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/test.py", line 142, 
in run
    self.with_project_on_sys_path(self.run_tests)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/test.py", line 122, 
in with_project_on_sys_path
    func()
  File "setup.py", line 68, in run_tests
    errno = pytest.main(self.test_args)
  File "/usr/lib/python2.7/dist-packages/_pytest/config.py", line 32, in main
    config = _prepareconfig(args, plugins)
  File "/usr/lib/python2.7/dist-packages/_pytest/config.py", line 85, in 
_prepareconfig
    pluginmanager=pluginmanager, args=args)
  File "/usr/lib/python2.7/dist-packages/_pytest/core.py", line 413, in __call__
    return self._docall(methods, kwargs)
  File "/usr/lib/python2.7/dist-packages/_pytest/core.py", line 424, in _docall
    res = mc.execute()
  File "/usr/lib/python2.7/dist-packages/_pytest/core.py", line 315, in execute
    res = method(**kwargs)
  File "/usr/lib/python2.7/dist-packages/_pytest/helpconfig.py", line 27, in 
pytest_cmdline_parse
    config = __multicall__.execute()
  File "/usr/lib/python2.7/dist-packages/_pytest/core.py", line 315, in execute
    res = method(**kwargs)
  File "/usr/lib/python2.7/dist-packages/_pytest/config.py", line 636, in 
pytest_cmdline_parse
    self.parse(args)
  File "/usr/lib/python2.7/dist-packages/_pytest/config.py", line 747, in parse
    self._preparse(args)
  File "/usr/lib/python2.7/dist-packages/_pytest/config.py", line 714, in 
_preparse
    self.pluginmanager.consider_setuptools_entrypoints()
  File "/usr/lib/python2.7/dist-packages/_pytest/core.py", line 179, in 
consider_setuptools_entrypoints
    plugin = ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2190, in load
    ['__name__'])
  File "/usr/lib/python2.7/dist-packages/pytest_timeout.py", line 36, in 
<module>
    @pytest.hookimpl
AttributeError: 'module' object has no attribute 'hookimpl'
E: pybuild pybuild:256: test: plugin distutils failed with: exit code=1: 
python2.7 setup.py test
dh_auto_test: pybuild --test -i python{version} -p 2.7 --dir . returned exit 
code 13
debian/rules:13: recipe for target 'build' failed
make: *** [build] Error 13
dpkg-buildpackage: error: debian/rules build gave error exit status 2

I did some investigation and hookimpl is available in pytest versions newer
than 2.8.0.  See [1] for another module that had the same issue.

Fortunately for me there is already a pytest 3.0.3 backport available.  Once I
installed that manually, the package builds fine on jessie.  Please document
the miniumum version requirement for python-pytest and python3-pytest in the
package build-depends.

Scott K

[1] 
https://bitbucket.org/nikratio/python-llfuse/issues/94/document-minimum-required-pytest-version

Reply via email to