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

Fix datetime errors in latest Python #479

Merged
merged 9 commits into from
Jan 6, 2025
Merged

Fix datetime errors in latest Python #479

merged 9 commits into from
Jan 6, 2025

Conversation

fsoubelet
Copy link
Member

Cron jobs have picked up that the .local property of our AccDateTime raises issues as it tries to do some non-tzinfo inherited comparisons.

As far as I could tell this is mostly an annoyance due to subclassing the datetime class. A very simple fix is to simply cast to datetime first (using our own .datetime property) and then ask for .astimezone as previously).

PR is a bit more than that since I took the opportunity of dropping Python 3.9 support for this release (as we did with tfs-pandas) and solve the mess of pytables and numpy 2.x dependencies.

@fsoubelet fsoubelet added Type: Bug Something isn't working as it should. Estimate: Easy Good first issue for newcomers. Straightforward fixes. Priority: Low Work on this if you have some spare time. Type: Release Issue preparing for a release. Type: Maintenance Improvements in the code, that are not necessarily visible in functionality. Status: Review Needed Work currently stopped, untils someone else reviews it. labels Jan 6, 2025
@fsoubelet fsoubelet self-assigned this Jan 6, 2025
@fsoubelet fsoubelet requested a review from a team as a code owner January 6, 2025 10:42
Copy link

codeclimate bot commented Jan 6, 2025

Code Climate has analyzed commit fb68702 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 75.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 86.0% (0.0% change).

View more on Code Climate.

@fsoubelet fsoubelet merged commit 32616df into master Jan 6, 2025
29 checks passed
@fsoubelet fsoubelet deleted the fixes branch January 6, 2025 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Estimate: Easy Good first issue for newcomers. Straightforward fixes. Priority: Low Work on this if you have some spare time. Status: Review Needed Work currently stopped, untils someone else reviews it. Type: Bug Something isn't working as it should. Type: Maintenance Improvements in the code, that are not necessarily visible in functionality. Type: Release Issue preparing for a release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants