Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit 9f568f2

Browse files
authored
feat(ci): Update github actions to also test python 3.12 (#1456)
* Update github actions to also test python 3.12 * Update setup.py * Update setup.py * Update kfp-tekton-unittests.yml * Update kfp-tekton-unittests.yml * Update kfp-tekton-unittests.yml * Update kfp-tekton-unittests.yml * Update README.md
1 parent a9d7df9 commit 9f568f2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/kfp-tekton-unittests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@ on:
99

1010
env:
1111
GITHUB_ACTION: "true"
12-
SETUPTOOLS_USE_DISTUTILS: "stdlib"
1312

1413
jobs:
1514
python-unittest:
1615
runs-on: ubuntu-latest
1716
strategy:
1817
matrix:
19-
python-version: ['3.8', '3.9', '3.10', '3.11']
18+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
2019
steps:
2120
- uses: actions/checkout@v4
2221
- name: Set up Python ${{ matrix.python-version }}

sdk/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ adding the `TektonCompiler` and the `TektonClient`:
6161

6262
## Project Prerequisites
6363

64-
- Python: `3.8` or later
64+
- Python: `3.8` or later. For Python 3.12, make sure to not have the `SETUPTOOLS_USE_DISTUTILS` flag because it's already [deprecated](https://github.com/pypa/setuptools/issues/4002).
6565
- Tekton: [`v0.53.2`](https://github.com/tektoncd/pipeline/releases/tag/v0.53.2) or [later](https://github.com/tektoncd/pipeline/releases/latest)
6666
- Tekton CLI: [`0.30.1`](https://github.com/tektoncd/cli/releases/tag/v0.30.1)
6767
- Kubeflow Pipelines: [KFP with Tekton backend](/guides/kfp_tekton_install.md)

sdk/python/setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@
6161
REQUIRES = [
6262
"kfp>=1.8.10,<1.8.23",
6363
"kfp-tekton-server-api==1.8.0rc8",
64-
"PyYAML>=6,<7"
64+
"PyYAML>=6,<7",
65+
"setuptools>=69.1"
6566
]
6667

6768
TESTS_REQUIRE = [

0 commit comments

Comments
 (0)