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

Maintenance: Update to Python 3.11 #549

Draft
wants to merge 1 commit into
base: collab/update-mypy
Choose a base branch
from

Conversation

amotl
Copy link
Member

@amotl amotl commented Sep 6, 2023

About

Just a humble attempt to modernize the Python version.

Status

Needs more love.

ValueError: mutable default <class 'kopf._cogs.structs.diffs.Diff'> for field diff is not allowed: use default_factory

-- https://github.com/crate/crate-operator/actions/runs/11702180738/job/32589830815?pr=549#step:5:29

What's Next?

Let's do Python 3.10 first.

Copy link
Contributor

@SStorm SStorm left a comment

Choose a reason for hiding this comment

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

Can we please go with 3.10 first - 3.11 is still a bit on the bleeding edge with some libraries being incompatible.

setup.py Outdated Show resolved Hide resolved
@amotl
Copy link
Member Author

amotl commented Sep 7, 2023

Hi Romanas. Thanks. I was just playing around a bit, and I do not plan to submit this patch as a proposal for integration.

Can you share some pointers to the libraries being incompatible with Python 3.11 in one way or another, if you may know about the right spots already? It will tremendously help to get a better understanding.

@SStorm
Copy link
Contributor

SStorm commented Sep 7, 2023

I only have anecdotal evidence, i.e. when we were trying to upgrade to 3.11 in the cloud-api, there were issues with celery. That made me come to a mental conclusion "3.11 is too early for us" and forget about it.

@amotl amotl force-pushed the collab/modernize branch 3 times, most recently from bcac5a6 to 7ede699 Compare June 3, 2024 19:26
@amotl
Copy link
Member Author

amotl commented Jun 4, 2024

References about mypy modernizations, re. Error: no mypy cache directory.

@amotl amotl changed the title Maintenance: Update to Python 3.11, and modernize dependencies Maintenance: Update to Python 3.11 Jun 20, 2024
@goat-ssh
Copy link
Contributor

@amotl do you plan working on this one ?

@amotl
Copy link
Member Author

amotl commented Sep 20, 2024

Hi @goat-ssh. I can give the patch another refresh if there is interest.

@amotl
Copy link
Member Author

amotl commented Sep 20, 2024

References about mypy modernizations [...]

mypy needs to be bumped first I guess.

@amotl amotl changed the base branch from master to collab/update-mypy November 5, 2024 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants