[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1002523: setuptools-scm: autopkgtest needs update for new version of setuptools: deprecation warning is treated as error

Source: setuptools-scm
Version: 6.3.2-1
Severity: serious
X-Debbugs-CC: debian-ci@lists.debian.org, setuptools@packages.debian.org
Tags: sid bookworm
User: debian-ci@lists.debian.org
Usertags: needs-update
Control: affects -1 src:setuptools

Dear maintainer(s),

With a recent upload of setuptools the autopkgtest of setuptools-scm fails in testing when that autopkgtest is run with the binary packages of setuptools from unstable. It passes when run with only packages from testing. In tabular form:

                       pass            fail
setuptools             from testing    59.6.0-1
setuptools-scm         from testing    6.3.2-1
all others             from testing    from testing

I copied some of the output at the bottom of this report. It seems the test fails on a deprecation warning.

Currently this regression is blocking the migration of setuptools to testing [1]. Of course, setuptools shouldn't just break your autopkgtest (or even worse, your package), but it seems to me that the change in setuptools was intended and your package needs to update to the new situation.

If this is a real problem in your package (and not only in your autopkgtest), the right binary package(s) from setuptools should really add a versioned Breaks on the unfixed version of (one of your) package(s). Note: the Breaks is nice even if the issue is only in the autopkgtest as it helps the migration software to figure out the right versions to combine in the tests.

More information about this bug and the reason for filing it can be found on


[1] https://qa.debian.org/excuses.php?package=setuptools


============================= test session starts ==============================
platform linux -- Python 3.9.9, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
setuptools version 59.6.0 from '/usr/lib/python3/dist-packages/setuptools/__init__.py' setuptools_scm version 6.3.2 from '/usr/lib/python3/dist-packages/setuptools_scm/__init__.py' rootdir: /tmp/autopkgtest-lxc.99ltvr94/downtmp/build.4q7/src, configfile: tox.ini, testpaths: testing
collected 201 items / 1 error / 3 deselected / 197 selected

==================================== ERRORS ==================================== _____________ ERROR collecting testing/test_setuptools_support.py ______________
testing/test_setuptools_support.py:10: in <module>
    from virtualenv.run import cli_run
/usr/lib/python3/dist-packages/virtualenv/__init__.py:3: in <module>
    from .run import cli_run, session_via_cli
/usr/lib/python3/dist-packages/virtualenv/run/__init__.py:14: in <module>
    from .plugin.creators import CreatorSelector
/usr/lib/python3/dist-packages/virtualenv/run/plugin/creators.py:6: in <module> from virtualenv.create.via_global_ref.builtin.builtin_way import VirtualenvBuiltin /usr/lib/python3/dist-packages/virtualenv/create/via_global_ref/builtin/builtin_way.py:7: in <module>
    from virtualenv.create.creator import Creator
/usr/lib/python3/dist-packages/virtualenv/create/creator.py:15: in <module>
    from virtualenv.discovery.cached_py_info import LogCmd
/usr/lib/python3/dist-packages/virtualenv/discovery/cached_py_info.py:23: in <module>
    _CACHE[Path(sys.executable)] = PythonInfo()
/usr/lib/python3/dist-packages/virtualenv/discovery/py_info.py:86: in __init__ self.distutils_install = {u(k): u(v) for k, v in self._distutils_install().items()} /usr/lib/python3/dist-packages/virtualenv/discovery/py_info.py:155: in _distutils_install
    i = d.get_command_obj("install", create=True)
/usr/lib/python3.9/distutils/dist.py:858: in get_command_obj
    cmd_obj = self.command_obj[command] = klass(self)
/usr/lib/python3/dist-packages/setuptools/__init__.py:172: in __init__
    _Command.__init__(self, dist)
/usr/lib/python3.9/distutils/cmd.py:62: in __init__
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: in initialize_options
E setuptools._deprecation_warning.SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. ------------------------------- Captured stderr -------------------------------- finalize hook {'name': None, 'version': None, 'author': None, 'author_email': None, 'maintainer': None, 'maintainer_email': None, 'url': None, 'license': None, 'description': None, 'long_description': None, 'keywords': None, 'platforms': None, 'classifiers': None, 'download_url': None, 'provides': None, 'requires': None, 'obsoletes': None}
pyproject.toml does not contain a tool.setuptools_scm section
=========================== short test summary info ============================ ERROR testing/test_setuptools_support.py - setuptools._deprecation_warning.Se... !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!! ======================== 3 deselected, 1 error in 1.28s ========================
autopkgtest [10:12:18]: test testsuite

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply to: