Skip to content

Commit b254dd2

Browse files
Add Python 3.12 to CI (#867)
* Add Python 3.12 to CI * Add 3.12 to badge * Switch to importlib.metadata.entrypoints * Switch to pkg_resources.iter_entry_points
1 parent 258d556 commit b254dd2

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

.github/workflows/helmcluster.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
strategy:
2929
fail-fast: false
3030
matrix:
31-
python-version: ["3.9", "3.10", "3.11"]
31+
python-version: ["3.9", "3.10", "3.11", "3.12"]
3232
kubernetes-version: ["1.29.2"]
3333
include:
3434
- python-version: '3.10'

.github/workflows/kubecluster.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
strategy:
2929
fail-fast: false
3030
matrix:
31-
python-version: ["3.9", "3.10", "3.11"]
31+
python-version: ["3.9", "3.10", "3.11", "3.12"]
3232
kubernetes-version: ["1.29.2"]
3333
include:
3434
- python-version: '3.10'

.github/workflows/operator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
strategy:
4040
fail-fast: false
4141
matrix:
42-
python-version: ["3.9", "3.10", "3.11"]
42+
python-version: ["3.9", "3.10", "3.11", "3.12"]
4343
kubernetes-version: ["1.29.2"]
4444
include:
4545
- python-version: '3.10'

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Dask Kubernetes
3030
:target: https://anaconda.org/conda-forge/dask-kubernetes
3131
:alt: Conda Forge
3232

33-
.. image:: https://img.shields.io/badge/python%20support-3.9%7C3.10%7C3.11-blue
33+
.. image:: https://img.shields.io/badge/python%20support-3.9%7C3.10%7C3.11%7C3.12-blue
3434
:target: https://kubernetes.dask.org/en/latest/installing.html#supported-versions
3535
:alt: Python Support
3636

dask_kubernetes/operator/controller/controller.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
import dask.config
1111
import kopf
1212
import kr8s
13+
import pkg_resources
1314
from distributed.core import clean_exception, rpc
1415
from distributed.protocol.pickle import dumps
15-
from importlib_metadata import entry_points
1616
from kr8s.asyncio.objects import Deployment, Pod, Service
1717

1818
from dask_kubernetes.common.objects import validate_cluster_name
@@ -38,7 +38,7 @@
3838

3939
# Load operator plugins from other packages
4040
PLUGINS = []
41-
for ep in entry_points(group="dask_operator_plugin"):
41+
for ep in pkg_resources.iter_entry_points(group="dask_operator_plugin"):
4242
with suppress(AttributeError, ImportError):
4343
PLUGINS.append(ep.load())
4444

doc/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Dask Kubernetes
99
:target: https://anaconda.org/conda-forge/dask-kubernetes
1010
:alt: Conda Forge
1111

12-
.. image:: https://img.shields.io/badge/python%20support-3.9%7C3.10%7C3.11-blue
12+
.. image:: https://img.shields.io/badge/python%20support-3.9%7C3.10%7C3.11%7C3.12-blue
1313
:target: https://kubernetes.dask.org/en/latest/installing.html#supported-versions
1414
:alt: Python Support
1515

0 commit comments

Comments
 (0)