Skip to content

Deprecation issues in tests with too-new setuptools versions #24350

Closed
@charris

Description

@charris

There are two deprecation issues when running python -mspin test with Python 3.11:

  • sre_constants and sre_parse are deprecated. This breaks test collection but can by fixed
    by using recent setuptools.
  • pkg_resources is deprecated in recent setuptools, this causes numpy/distutils/tests/test_system_info.py
    to fail

Note that we have several other uses of pkg_resources

  • In tools/npy_tempita/__init__.py
  • In numpy/_utils/_pep440.py (copied from SciPy)
  • In versioneer.py (going away)

We should fix the usage in the first file.

The easiest quick solution is to upgrade the setuptools version requirement and ignore the test_system_info error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions