Source: python-spinners
Version: 0.0~git20200220.a73d561-1
Severity: serious
Tags: patch ftbfs
Justification: fails to build from source
dh-python 5.20211105 fixed tox detection based on Build-Depends, which
causes it to try to run tox tests on python-deprecated.
This fails because the tox.ini specifies dependencies that aren't met
(they're far too tightly pinned for Debian):
dh_auto_test -O--buildsystem=pybuild
I: pybuild base:237: cd
'/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_py-spinners/build'; tox -c
'/<<PKGBUILDDIR>>'/tox.ini --sitepackages -e py39
GLOB sdist-make: /<<PKGBUILDDIR>>/setup.py
py39 create: /<<PKGBUILDDIR>>/.tox/py39
py39 installdeps: -r/<<PKGBUILDDIR>>/requirements-dev.txt
WARNING: Discarding $PYTHONPATH from environment, to override specify
PYTHONPATH in 'passenv' in your configuration.
ERROR: invocation failed (exit code 1), logfile:
/<<PKGBUILDDIR>>/.tox/py39/log/py39-1.log
================================== log start ===================================
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None,
status=None)) after connection broken by 'ProxyError('Cannot connect to
proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at
0x7fbe021dd1c0>: Failed to establish a new connection: [Errno 111] Connection
refused'))': /simple/coverage/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None,
status=None)) after connection broken by 'ProxyError('Cannot connect to
proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at
0x7fbe021dd910>: Failed to establish a new connection: [Errno 111] Connection
refused'))': /simple/coverage/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None,
status=None)) after connection broken by 'ProxyError('Cannot connect to
proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at
0x7fbe021ddd60>: Failed to establish a new connection: [Errno 111] Connection
refused'))': /simple/coverage/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None,
status=None)) after connection broken by 'ProxyError('Cannot connect to
proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at
0x7fbe021dd280>: Failed to establish a new connection: [Errno 111] Connection
refused'))': /simple/coverage/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None,
status=None)) after connection broken by 'ProxyError('Cannot connect to
proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at
0x7fbe021dde50>: Failed to establish a new connection: [Errno 111] Connection
refused'))': /simple/coverage/
ERROR: Could not find a version that satisfies the requirement coverage==4.4.1
ERROR: No matching distribution found for coverage==4.4.1
=================================== log end ====================================
ERROR: could not install deps [-r/<<PKGBUILDDIR>>/requirements-dev.txt]; v =
InvocationError("'/<<PKGBUILDDIR>>/.tox/py39/bin/python' -m pip install
'-r/<<PKGBUILDDIR>>/requirements-dev.txt'", 1)
___________________________________ summary ____________________________________
ERROR: py39: could not install deps
[-r/<<PKGBUILDDIR>>/requirements-dev.txt]; v =
InvocationError("'/<<PKGBUILDDIR>>/.tox/py39/bin/python' -m pip install
'-r/<<PKGBUILDDIR>>/requirements-dev.txt'", 1)
E: pybuild pybuild:354: test: plugin distutils failed with: exit code=1: cd
'/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_py-spinners/build'; tox -c
'/<<PKGBUILDDIR>>'/tox.ini --sitepackages -e py39
dh_auto_test: error: pybuild --test --test-tox -i python{version} -p 3.9
returned exit code 13
make: *** [debian/rules:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
The easy solution here is to drop the Build-Dep on tox (which exposes a
missing build-dep on setuptools):
diff -Nru python-spinners-0.0~git20200220.a73d561/debian/control
python-spinners-0.0~git20200220.a73d561/debian/control
--- python-spinners-0.0~git20200220.a73d561/debian/control 2021-08-23
21:18:47.000000000 -0700
+++ python-spinners-0.0~git20200220.a73d561/debian/control 2021-11-05
01:10:31.000000000 -0700
@@ -7,7 +7,7 @@
python3-all,
python3-coverage,
python3-nose,
- tox
+ python3-setuptools,
Standards-Version: 4.5.1
Rules-Requires-Root: no
Homepage: https://github.com/manrajgrover/py-spinners
SR