Skip to content

Deprecate testtools.distutilscmd? #316

@cjwatson

Description

@cjwatson

The entire setup.py test workflow is deprecated in favour of test runners such as tox. As a result, any project that imports testtools incurs warnings such as this with Python >= 3.10:

.tox/py310/lib/python3.10/site-packages/testtools/distutilscmd.py:7
  .../.tox/py310/lib/python3.10/site-packages/testtools/distutilscmd.py:7: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
    from distutils.core import Command

Should we deprecate testtools.distutilscmd and aim to remove it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions