trezor / cython-hidapi

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

Wheel for Python 3.12 #160

Closed flozz closed 11 months ago

flozz commented 1 year ago

Hello !

Python 3.12 was released this month. Is it possible for you to build/publish a wheel for it on PyPI? :)

prusnak commented 11 months ago

There is this error - https://github.com/trezor/cython-hidapi/actions/runs/6552643885/job/17796388898

Help me to come up with a fix and I'll publish wheels for 3.12 😃

cmcqueen commented 11 months ago

A missing #include to get the definition of enum hid_bus_type perhaps. I don't have access to a MacOS platform though.

Youw commented 11 months ago

https://github.com/trezor/cython-hidapi/actions/runs/6552643885/job/17796388898

BTW: I've reproduced it on Ubuntu with x86_64-linux-gnu-gcc v9.4.0 and python 3.8.

prusnak commented 11 months ago

Fixed by https://github.com/trezor/cython-hidapi/commit/c9eec80d27b5e23055e0c675590f93c88ab49a88

Wheels for Python 3.12 pushed to PyPI - see https://pypi.org/project/hidapi/#files

Thanks @Youw!

flozz commented 11 months ago

Thank you very much @Youw and @prusnak! :D