trezor / cython-hidapi

:snake: Python wrapper for the HIDAPI
Other
288 stars 110 forks source link

Dependency on deprecated pkg_resources setuptools module #187

Open sorenstoutner opened 2 weeks ago

sorenstoutner commented 2 weeks ago

I have recently become the Debian maintainer of the cython-hidapi package.

https://tracker.debian.org/pkg/python-hidapi

One of the existing bug reports indicates that cython-hidapi has a dependency on the deprecated pkg_resources setuptools module.

https://setuptools.pypa.io/en/latest/pkg_resources.html

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1083645

Is there already a plan in place to move off the deprecated code?

prusnak commented 2 weeks ago

Please send a pull request if you want to see this happen.

sorenstoutner commented 2 weeks ago

I can take a look at it, although I should note that even though I have volunteered to become the Debian package maintainer, programming in Python is not my primary (or even secondary) language. I do like to contribute to the upstream projects whose packages I maintain, but I might not be the best person to submit a patch targeting this issue.

At some point, support for pkg_resources will likely be dropped from setuptools (it was already removed from its original location in Python 12 and moved to setuptools as part of the deprecation process). This will, of course, cause issues for anyone building cython-hidapi, not just Debian. Just wanted to make sure this is on your radar.