Temporary Fix for NumPy 2.0 Incompatibility #559
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Temporary Fix for NumPy 2.0 Incompatibility
Description
This pull request introduces a temporary fix for the recent incompatibility issues with NumPy 2.0 by setting an upper limit on the NumPy version in
setup.py
.Changes
setup.py
to restrict NumPy version to<2.0
.Rationale
NumPy 2.0 includes breaking changes that are currently incompatible with Shapash and other libraries like SHAP. By limiting the NumPy version, we prevent potential issues for users until a permanent compatibility update is available.
Additional Notes
We will continue working on making Shapash compatible with NumPy 2.0 and will remove this restriction once the necessary updates are implemented and tested.
Related Issues
Checklist
This pull request ensures that users will not unintentionally upgrade to NumPy 2.0 and encounter breaking changes. Thank you for your understanding and patience as we work on a more permanent solution.