schemainspect icon indicating copy to clipboard operation
schemainspect copied to clipboard

Missing dependency for py3.12 (pkg_resources / setuptools)

Open ewjoachim opened this issue 1 year ago • 1 comments

Hello,

Python3.12 does not include setuptools in default venvs anymore, if a package needs setuptools, it needs to explicitly import it.

This package uses pkg_resources which is distributed by setuptools. It should not use pkg_resources, because it's deprecated, but in the meantime, it should declare an explicit dependency to setuptools.

ewjoachim avatar Mar 23 '24 11:03 ewjoachim

(note: I'm seeing this issue through migra, but because of this, it affects migra too)

ewjoachim avatar Mar 23 '24 11:03 ewjoachim

Just so you know:

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.

The lib (and consequently migra) will need this pin, unless there's a very tiny bit of dev to remove pkg_resources.

I'd be happy to make a PR, but I would need at least a tiny bit of confirmation that there's a slight chance that the PR is merged and the lib is released afterwards.

ewjoachim avatar Jun 13 '25 11:06 ewjoachim