Skip to content

Commit 30d5604

Browse files
diegolovisonzed546213
authored andcommitted
chore: Set Python 3.9 as the Minimum Supported Version (kubeflow#11159)
Signed-off-by: Diego Lovison <diegolovison@gmail.com> Signed-off-by: zed546213 <zed546213@gmail.com>
1 parent e7aaf72 commit 30d5604

File tree

200 files changed

+537
-1670
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

200 files changed

+537
-1670
lines changed

.github/workflows/backend-visualization.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Set up Python
2121
uses: actions/setup-python@v4
2222
with:
23-
python-version: '3.8'
23+
python-version: '3.9'
2424

2525
- name: Run tests
2626
run: ./test/presubmit-backend-visualization.sh

.github/workflows/kfp-kubernetes-library-test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
strategy:
1818
matrix:
1919
python: [
20-
{ 'version': '3.8' },
2120
{ 'version': '3.9' },
2221
{ 'version': '3.10' },
2322
{ 'version': '3.11' },

.github/workflows/kfp-sdk-runtime-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-24.04
1616
strategy:
1717
matrix:
18-
python: ['3.8', '3.9', '3.10', '3.11', '3.12']
18+
python: ['3.9', '3.10', '3.11', '3.12']
1919
steps:
2020
- name: Checkout code
2121
uses: actions/checkout@v4

.github/workflows/kfp-sdk-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
python-version: [3.8, 3.9, 3.10, 3.11, 3.12]
17+
python-version: [3.9, 3.10, 3.11, 3.12]
1818

1919
steps:
2020
- name: Checkout code

.github/workflows/kubeflow-pipelines-integration-v2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
strategy:
1919
matrix:
20-
python-version: [3.8]
20+
python-version: [3.9]
2121

2222
steps:
2323
- name: Checkout code

.github/workflows/sdk-component-yaml.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set up Python
2323
uses: actions/setup-python@v4
2424
with:
25-
python-version: 3.8
25+
python-version: 3.9
2626

2727
- name: apt-get update
2828
run: sudo apt-get update

.github/workflows/sdk-docformatter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Set up Python
2121
uses: actions/setup-python@v4
2222
with:
23-
python-version: 3.8
23+
python-version: 3.9
2424

2525
- name: Run docformatter tests
2626
run: ./test/presubmit-docformatter-sdk.sh

.github/workflows/sdk-isort.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Set up Python
2121
uses: actions/setup-python@v4
2222
with:
23-
python-version: 3.8
23+
python-version: 3.9
2424

2525
- name: Run isort tests
2626
run: ./test/presubmit-isort-sdk.sh

.github/workflows/sdk-upgrade.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Set up Python
2121
uses: actions/setup-python@v4
2222
with:
23-
python-version: 3.8
23+
python-version: 3.9
2424

2525
- name: Run SDK upgrade tests
2626
run: ./test/presubmit-test-sdk-upgrade.sh

.github/workflows/sdk-yapf.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Set up Python
2828
uses: actions/setup-python@v4
2929
with:
30-
python-version: '3.8'
30+
python-version: '3.9'
3131

3232
- name: Install dependencies
3333
run: pip install yapf

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ python:
88
build:
99
os: ubuntu-22.04
1010
tools:
11-
python: "3.8"
11+
python: "3.9"

RELEASE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ fill in the description. Detailed steps:
291291
<pre>
292292
To deploy Kubeflow Pipelines in an existing cluster, follow the instruction in [here](https://www.kubeflow.org/docs/pipelines/standalone-deployment-gcp/) or via UI [here](https://console.cloud.google.com/ai-platform/pipelines)
293293
294-
Install python SDK (python 3.7 above) by running:
294+
Install python SDK (python 3.9 above) by running:
295295
296296
```bash
297297
python3 -m pip install kfp kfp-server-api --upgrade
@@ -306,7 +306,7 @@ fill in the description. Detailed steps:
306306
<pre>
307307
To deploy Kubeflow Pipelines in an existing cluster, follow the instruction in [here](https://www.kubeflow.org/docs/pipelines/standalone-deployment-gcp/).
308308
309-
Install kfp-server-api package (python 3.7 above) by running:
309+
Install kfp-server-api package (python 3.9 above) by running:
310310
311311
```bash
312312
python3 -m pip install kfp-server-api==$VERSION --upgrade

api/v2alpha1/python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
author_email='kubeflow-pipelines@google.com',
2626
url='https://github.com/kubeflow/pipelines',
2727
packages=setuptools.find_namespace_packages(include=['kfp.*']),
28-
python_requires='>=3.7.0,<3.13.0',
28+
python_requires='>=3.9.0,<3.13.0',
2929
install_requires=['protobuf>=4.21.1,<5'],
3030
include_package_data=True,
3131
license='Apache 2.0',

backend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ RUN go-licenses csv ./backend/src/apiserver > /tmp/licenses.csv && \
2727
go-licenses save ./backend/src/apiserver --save_path /tmp/NOTICES
2828

2929
# 2. Compile preloaded pipeline samples
30-
FROM python:3.8 as compiler
30+
FROM python:3.9 as compiler
3131
RUN apt-get update -y && apt-get install --no-install-recommends -y -q default-jdk python3-setuptools python3-dev jq
3232
RUN wget https://bootstrap.pypa.io/get-pip.py && python3 get-pip.py
3333
COPY backend/requirements.txt .

backend/Dockerfile.conformance

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ RUN chmod +x /test/integration/run.sh
3434
RUN tar -czvf /test.tar.gz /test
3535

3636

37-
FROM alpine:3.8
37+
FROM alpine:3.9
3838

3939
COPY --from=builder /test.tar.gz /
4040
RUN tar -xzvf /test.tar.gz

backend/api/v1beta1/python_http_client/.gitlab-ci.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

backend/api/v1beta1/python_http_client/.travis.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

backend/api/v2beta1/python_http_client/.gitlab-ci.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

backend/api/v2beta1/python_http_client/.travis.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

backend/metadata_writer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ml-metadata package depends on tensorflow package
2-
FROM python:3.8
2+
FROM python:3.9
33
COPY backend/metadata_writer/requirements.txt /kfp/metadata_writer/
44
RUN python3 -m pip install -r /kfp/metadata_writer/requirements.txt
55

backend/metadata_writer/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.8
2+
# This file is autogenerated by pip-compile with Python 3.9
33
# by the following command:
44
#
55
# pip-compile --output-file=- -
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22

33
# This image should be in sync with Dockerfile.
4-
IMAGE="python:3.8"
4+
IMAGE="python:3.9"
55
../../hack/update-requirements.sh $IMAGE <requirements.in >requirements.txt

backend/src/apiserver/resource/resource_manager_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3512,15 +3512,15 @@ spec:
35123512
- name: ENABLE_CACHING
35133513
valueFrom:
35143514
fieldRef: {fieldPath: 'metadata.labels[''pipelines.kubeflow.org/enable_caching'']'}
3515-
- {name: KFP_V2_IMAGE, value: 'python:3.7'}
3515+
- {name: KFP_V2_IMAGE, value: 'python:3.9'}
35163516
- {name: KFP_V2_RUNTIME_INFO, value: '{"inputParameters": {"num_steps": {"type":
35173517
"INT"}}, "inputArtifacts": {"dataset": {"metadataPath": "/tmp/inputs/dataset/data",
35183518
"schemaTitle": "system.Dataset", "instanceSchema": ""}}, "outputParameters":
35193519
{}, "outputArtifacts": {"model": {"schemaTitle": "system.Model", "instanceSchema":
35203520
"", "metadataPath": "/tmp/outputs/model/data"}}}'}
35213521
envFrom:
35223522
- configMapRef: {name: metadata-grpc-configmap, optional: true}
3523-
image: python:3.7
3523+
image: python:3.9
35243524
volumeMounts:
35253525
- {mountPath: /kfp-launcher, name: kfp-launcher}
35263526
inputs:
@@ -4044,7 +4044,7 @@ deploymentSpec:
40444044
_parsed_args = vars(_parser.parse_args())
40454045
40464046
_outputs = hello_world(**_parsed_args)
4047-
image: python:3.7
4047+
image: python:3.9
40484048
pipelineInfo:
40494049
name: hello-world
40504050
root:
@@ -4077,7 +4077,7 @@ deploymentSpec:
40774077
executors:
40784078
exec-hello-world:
40794079
container:
4080-
image: python:3.7
4080+
image: python:3.9
40814081
pipelineInfo:
40824082
name: pipelines/p1/versions/v1
40834083
root:

backend/src/apiserver/resource/resource_manager_util_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ spec:
6868
command:
6969
- python
7070
- -c
71-
image: python:alpine3.6
71+
image: python:alpine3.9
7272
name: ""
7373
resources: {}
7474
inputs: {}
@@ -181,7 +181,7 @@ spec:
181181
command:
182182
- python
183183
- -c
184-
image: python:alpine3.6
184+
image: python:alpine3.9
185185
name: ""
186186
resources: {}
187187
inputs: {}

backend/src/apiserver/server/pipeline_upload_server_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ deploymentSpec:
667667
_parsed_args = vars(_parser.parse_args())
668668
669669
_outputs = hello_world(**_parsed_args)
670-
image: python:3.7
670+
image: python:3.9
671671
pipelineInfo:
672672
name: hello-world
673673
root:
@@ -724,7 +724,7 @@ deploymentSpec:
724724
_parsed_args = vars(_parser.parse_args())
725725
726726
_outputs = hello_world(**_parsed_args)
727-
image: python:3.7
727+
image: python:3.9
728728
pipelineInfo:
729729
name: hello-world
730730
root:
@@ -765,7 +765,7 @@ deploymentSpec:
765765
executors:
766766
exec-hello-world:
767767
container:
768-
image: python:3.7
768+
image: python:3.9
769769
pipelineInfo:
770770
name: hello-world-
771771
root:
@@ -790,7 +790,7 @@ deploymentSpec:
790790
executors:
791791
exec-hello-world:
792792
container:
793-
image: python:3.7
793+
image: python:3.9
794794
pipelineInfo:
795795
name: hEllo-world
796796
root:
@@ -815,7 +815,7 @@ deploymentSpec:
815815
executors:
816816
exec-hello-world:
817817
container:
818-
image: python:3.7
818+
image: python:3.9
819819
pipelineInfo:
820820
name: more than 128 characters more than 128 characters more than 128 characters more than 128 characters more than 128 characters
821821
root:
@@ -840,7 +840,7 @@ deploymentSpec:
840840
executors:
841841
exec-hello-world:
842842
container:
843-
image: python:3.7
843+
image: python:3.9
844844
pipelineInfo:
845845
name: hello-worl.d
846846
root:

backend/src/apiserver/server/test/pipeline_with_volume.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ deploymentSpec:
6666
'
6767
- "\nimport kfp\nfrom kfp import dsl\nfrom kfp.dsl import *\nfrom typing import\
6868
\ *\n\ndef comp():\n pass\n\n"
69-
image: python:3.7
69+
image: python:3.9
7070
exec-comp-2:
7171
container:
7272
args:
@@ -92,7 +92,7 @@ deploymentSpec:
9292
'
9393
- "\nimport kfp\nfrom kfp import dsl\nfrom kfp.dsl import *\nfrom typing import\
9494
\ *\n\ndef comp():\n pass\n\n"
95-
image: python:3.7
95+
image: python:3.9
9696
exec-comp-3:
9797
container:
9898
args:
@@ -118,7 +118,7 @@ deploymentSpec:
118118
'
119119
- "\nimport kfp\nfrom kfp import dsl\nfrom kfp.dsl import *\nfrom typing import\
120120
\ *\n\ndef comp():\n pass\n\n"
121-
image: python:3.7
121+
image: python:3.9
122122
exec-createpvc:
123123
container:
124124
image: argostub/createpvc

0 commit comments

Comments
 (0)