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

Python 3.12 and Pandas 2.x compatibility #689

Open
3 tasks
miohtama opened this issue Nov 27, 2023 · 0 comments
Open
3 tasks

Python 3.12 and Pandas 2.x compatibility #689

miohtama opened this issue Nov 27, 2023 · 0 comments
Assignees
Labels

Comments

@miohtama
Copy link
Collaborator

First upgrade to Pandas 2.x latest, needed for Python 3.12

  • Fix any tests failing because of broken pandas_ta
    • fork to in-house pandas_ta and patch
    • .... or just move broken functions to new modules under tradeeexecutor.utils if easier
    • Check pandas_ta github for existing patches

Then prepare the codebase to fix the backwards incompatible break in Python 3.12 datetime

  • All datetime.datetime.utcnow to naive_utcnow
  • All datetime.datetime.utcfromtimestamp to naive_utcfromtimestamp
  • All pd.Timestamp.utcfromtimestamp(timestamp) to pd.Timestamp.utcfromtimestamp(timestamp).tz_localize(None)

Needs to be manually search and replaced, imports added.

Then try Python 3.12

  • Upgrade to Python 3.12
  • Run tests and find further breakage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants