maweigert / gputools

GPU accelerated image/volume processing in Python
BSD 3-Clause "New" or "Revised" License
108 stars 20 forks source link

support python 3.10 #30

Closed tlambert03 closed 2 years ago

tlambert03 commented 2 years ago

some very minor changes for python 3.10. In trying to create a conda-forge package, it currently fails trying to build py3.10 since there is a collections.Callable import. It's easy enough to support py3.10, so might as well.

This just changes that line to callable(x) instead of isinstance(x, collections.abc.Callable), but if you want me to use the isinstance check instead, let me know.

tlambert03 commented 2 years ago

there we go @maweigert

maweigert commented 2 years ago

Looks good, thanks!

tlambert03 commented 2 years ago

thanks! Could I trouble you for one more pypi release when you get a chance? After this initial one, conda-forge updates will be trivial, and you'll get notified when you push a new pypi release

maweigert commented 2 years ago

Sure! https://pypi.org/project/gputools/