python icon indicating copy to clipboard operation
python copied to clipboard

Support for Python 3.12 and 3.13

Open etiennnr opened this issue 5 months ago • 7 comments

What is the feature and why do you need it: I see in the main README that the last supported version is 3.11 (pypi supported versions).

Would it be possible / complicated to also support python 3.12 and 3.13? Or is it just that the pypi metadata has simply never been updated ?

Describe the solution you'd like to see:

etiennnr avatar Jul 09 '25 19:07 etiennnr

Hi, Is this package compatible with python 3.12 ?

AshwinNS avatar Jul 14 '25 05:07 AshwinNS

We can add the support in the next release (1.34). cc @yliaog Ref required changes: https://github.com/kubernetes-client/python/pull/2029, https://github.com/kubernetes-client/python/pull/2003

roycaihw avatar Jul 16 '25 20:07 roycaihw

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Oct 14 '25 20:10 k8s-triage-robot

@roycaihw I see that release 1.34.1 is already out, however, still no official support for python 3.12 or 3.13 or 3.14 (out since last week now)...

Is this still in scope ?

etiennnr avatar Oct 14 '25 21:10 etiennnr

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle rotten
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

k8s-triage-robot avatar Nov 13 '25 22:11 k8s-triage-robot

Python 3.12 has been in the test config since the start of the year: https://github.com/kubernetes-client/python/commit/f7701ac020645c847f537553e28721c234789090

Other than updating https://github.com/kubernetes-client/python/blob/master/setup.py#L80-L86 (which list 3.6 to 3.11 as the supported versions, perhaps time to remove 3.6 to 3.9 as they are all now out of support) is there anything else that needs doing (e.g. anything that someone such as myself could volunteer to help with) to help get the client officially supporting 3.12?

durera avatar Dec 01 '25 00:12 durera

Hello @durera,

Thanks for the reply! Yeah, we started using it since I saw that there were already unit testing in place for 3.12 (in GHA). It's working pretty well, we didn't have any issues. Hence, I think we "just" need to add it to the officially supported list. I also agree to stop supporting 3.6-3.9, I guess maintainers can agree or not in the PR's review.

I think efforts should instead be put in supporting 3.13 and 3.14 IMHO.

etiennnr avatar Dec 01 '25 14:12 etiennnr