Repast / repast4py

Git repository for Repast for Python development
Other
51 stars 4 forks source link

Test with latest numpy (2.0) #66

Closed ncollier closed 2 months ago

ncollier commented 5 months ago

Test with latest numpy.

ncollier commented 3 months ago

Tox is giving me dependency errors for py < 3.9. Looks like numpy2.0 compatible numba is only compatible with python >=3.9

Numba Release date Python NumPy llvmlite LLVM TBB
0.60.0 2024-06-13 3.9.x <= version < 3.13 1.22 <= version < 1.27 ; version == 2.0 † 0.43.x 14.x 2021.6 <= version
0.59.1 2024-03-18 3.9.x <= version < 3.13 1.22 <= version < 1.27 0.42.x 14.x 2021.6 <= version
0.59.0 2024-01-31 3.9.x <= version < 3.13 1.22 <= version < 1.27 0.42.x 14.x 2021.6 <= version
0.58.1 2023-10-17 3.8.x <= version < 3.12 1.22 <= version < 1.27 . 0.41.x 14.x 2021.6 <= version
0.58.0 2023-09-20 3.8.x <= version < 3.12 1.22 <= version < 1.26 0.41.x 14.x 2021.6 <= version
0.57.1 2023-06-21 3.8.x <= version < 3.12 1.21 <= version < 1.25 0.40.x 14.x 2021.6 <= version
0.57.0 2023-05-01 3.8.x <= version < 3.12 1.21 <= version < 1.25 0.40.x 14.x 2021.6 <= version
0.56.4 2022-11-03 3.7.x <= version < 3.11 1.18 <= version < 1.24 0.39.x
ncollier commented 3 months ago

According to numpy 2.0 migration guide, building binaries against 2.0 should be backwards compatible with 1x.

ncollier commented 2 months ago

Updated build, tox, and install configs to allow numpy 2.0. Tested with tox against 2. 0 and all tests pass.

https://github.com/Repast/repast4py/commit/d3446e0f55f8c0d9e1270843fb1569da1c67d124