pytest-cython icon indicating copy to clipboard operation
pytest-cython copied to clipboard

Pytest-cython uses the pkg_resources package, which appears to be depricated

Open thomas-sturm opened this issue 5 months ago • 0 comments

Describe the bug I see the following warning:

initialized: 5/8 workers/Users/sturm/miniforge3/envs/logic1_dev/lib/python3.12/site-packages/pytest_cython/__init__.py:2: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.

From this I would expect that pytest-cython will not work anymore after 2025-11-30.

Installed Packages The following Python and installed packages versions being used:

  • Python: 3.12.12
  • Cython: 3.1.6
  • Pytest: 8.4.2
  • Pytest-cython: 0.3.1

Expected behavior No deprication warnings.

thomas-sturm avatar Nov 01 '25 07:11 thomas-sturm