willthames / kubernetes-validate

Other
45 stars 5 forks source link

Compatibility with Python v3.12 #24

Closed brent-cybrid closed 9 months ago

brent-cybrid commented 10 months ago

The import:

    from distutils.version import LooseVersion

is incompatible with Python v3.12 (see here for the note that distutils is no longer supported in Python v3.12).

This limitation prevents this package from being used in v3.12 environments.

willthames commented 10 months ago

Thanks for this - it seems like it's not just distutils but also pkg_resources.

26 tracks the work for this.

willthames commented 10 months ago

26 is pretty much ready but will drop support for python 3.8 - as such I'll combine it with the update for kubernetes 1.29 (which won't happen until after the upstream release expected in the next three days)

willthames commented 10 months ago

I'll release this as 1.28.3 soon (I've used importlib_resources backport to retain 3.8 compatibility so don't need a breaking change) - I think it's going to be a few days before I'm ready for 1.29

willthames commented 9 months ago

1.28.3 has now been released with 3.12 support