storpipfugl / pykdtree

Fast kd-tree implementation in Python
GNU Lesser General Public License v3.0
206 stars 48 forks source link

MNT: build against numpy 2.0.0rc1 + runtime compatibility with numpy 2 in tests #114

Closed neutrinoceros closed 3 months ago

neutrinoceros commented 3 months ago

NumPy 2 just reached ABI stability with the release of version 2.0.0rc1 a couple days ago, and forward compatibility with it requires building against this newest version instead of oldest ones.

It is recommended by NumPy developers to plan releases of packages with Python extensions a some point between 2.0.0rc1 and 2.0.0 (final).

djhoese commented 3 months ago

Duplicate of #113, but I see you also modified the np.Inf which I hadn't noticed. Let me see if I can merge these two PRs together. I was just waiting on a review of #113 from @mraspaud before merging.

neutrinoceros commented 3 months ago

Sorry I didn't search enough. Feel free to incorporate the inf change in you PR and close this one if it makes things easier for you guys !