Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin pandas version for Py3.12 tests #259

Merged
merged 1 commit into from
Aug 6, 2024
Merged

Conversation

sfmig
Copy link
Contributor

@sfmig sfmig commented Aug 5, 2024

Description

What is this PR

  • Bug fix
  • Addition of a new feature
  • Other

Why is this PR needed?

Tests are failing because with Python 3.12, a numpy install >=2.0.0 will conflict with the latest pandas.

See here for more details.

What does this PR do?
Pins pandas to < 2.2.2 if the Python version > 3.12 as a temporary fix.

This results in an environment with pandas=2.2.1 and numpy=1.26.4 .

Questions

  • Is it clearer to pin numpy?
  • Is there a better temporary fix?
  • Why did this start to cause issues today?

References

The issue in numpy - although it seems that the problem should have been fixed in pandas 2.2.2

How has this PR been tested?

Tests pass locally and in CI.

Is this a breaking change?

No.

Does this PR require an update to the documentation?

No.

Checklist:

  • The code has been tested locally
  • Tests have been added to cover all new functionality
  • The documentation has been updated to reflect any changes
  • The code has been formatted with pre-commit

Copy link

sonarcloud bot commented Aug 5, 2024

Copy link

codecov bot commented Aug 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.76%. Comparing base (8e3ab99) to head (65a77bd).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #259   +/-   ##
=======================================
  Coverage   99.76%   99.76%           
=======================================
  Files          14       14           
  Lines         854      854           
=======================================
  Hits          852      852           
  Misses          2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sfmig sfmig marked this pull request as ready for review August 5, 2024 18:11
@sfmig sfmig requested a review from lochhh August 5, 2024 18:11
@sfmig sfmig mentioned this pull request Aug 5, 2024
5 tasks
@sfmig sfmig changed the title Pin pandas version (& numpy) if python 3.12 Fix Py3.12 tests by pinning pandas version (& numpy) Aug 5, 2024
@lochhh
Copy link
Collaborator

lochhh commented Aug 6, 2024

This looks like a pytables issue that's been fixed and merged into main, but their latest release 3.9.2 is dated Nov 2023 🤔

@lochhh lochhh changed the title Fix Py3.12 tests by pinning pandas version (& numpy) Pin pandas version for Py3.12 tests Aug 6, 2024
Copy link
Collaborator

@lochhh lochhh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 opened #263 to track

@lochhh lochhh added this pull request to the merge queue Aug 6, 2024
Merged via the queue into main with commit 2122591 Aug 6, 2024
17 checks passed
@lochhh lochhh deleted the smg/fix-numpy-pandas-incompat branch August 6, 2024 16:09
sfmig added a commit that referenced this pull request Aug 13, 2024
github-merge-queue bot pushed a commit that referenced this pull request Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants