Skip to content

Commit 4b1634f

Browse files
feat: Upgrading python version to 3.11, adding support for 3.11 as well. (#4159)
* Upgrading python version to 3.11, adding support for 3.11 as well. Signed-off-by: Lokesh Rangineni <[email protected]> * Upgrading python version to 3.11, adding support for 3.11 as well. Signed-off-by: Lokesh Rangineni <[email protected]> * chore: Bump macOS runners to macos-13 (#4152) bump macos runner to 13 Signed-off-by: tokoko <[email protected]> Signed-off-by: Lokesh Rangineni <[email protected]> * chore: Use pixi to lock python dependencies in a single command (#4114) use pixi to lock python dependencies in a single command Signed-off-by: tokoko <[email protected]> Signed-off-by: Lokesh Rangineni <[email protected]> * Trying to fix the lint error after python upgrade. - error: Call to abstract method "__init__" of "Provider" with trivial body via super() is unsafe [safe-super] Signed-off-by: Lokesh Rangineni <[email protected]> * Adding only the integration tests to run on 3.11 Signed-off-by: Lokesh Rangineni <[email protected]> --------- Signed-off-by: Lokesh Rangineni <[email protected]> Co-authored-by: Tornike Gurgenidze <[email protected]>
1 parent abfac01 commit 4b1634f

File tree

27 files changed

+1298
-175
lines changed

27 files changed

+1298
-175
lines changed

.github/fork_workflows/fork_pr_integration_tests_aws.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,21 @@ jobs:
3333
id: image-tag
3434
run: echo "::set-output name=DOCKER_IMAGE_TAG::`git rev-parse HEAD`"
3535
- name: Cache Public ECR Image
36-
id: lambda_python_3_9
36+
id: lambda_python_3_11
3737
uses: actions/cache@v2
3838
with:
3939
path: ~/cache
40-
key: lambda_python_3_9
40+
key: lambda_python_3_11
4141
- name: Handle Cache Miss (pull public ECR image & save it to tar file)
4242
if: steps.cache-primes.outputs.cache-hit != 'true'
4343
run: |
4444
mkdir -p ~/cache
45-
docker pull public.ecr.aws/lambda/python:3.9
46-
docker save public.ecr.aws/lambda/python:3.9 -o ~/cache/lambda_python_3_9.tar
45+
docker pull public.ecr.aws/lambda/python:3.11
46+
docker save public.ecr.aws/lambda/python:3.11 -o ~/cache/lambda_python_3_11.tar
4747
- name: Handle Cache Hit (load docker image from tar file)
4848
if: steps.cache-primes.outputs.cache-hit == 'true'
4949
run: |
50-
docker load -i ~/cache/lambda_python_3_9.tar
50+
docker load -i ~/cache/lambda_python_3_11.tar
5151
- name: Build and push
5252
env:
5353
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
@@ -67,7 +67,7 @@ jobs:
6767
strategy:
6868
fail-fast: false
6969
matrix:
70-
python-version: [ "3.9" ]
70+
python-version: [ "3.11" ]
7171
os: [ ubuntu-latest ]
7272
env:
7373
OS: ${{ matrix.os }}

.github/fork_workflows/fork_pr_integration_tests_gcp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
python-version: [ "3.9" ]
12+
python-version: [ "3.11" ]
1313
os: [ ubuntu-latest ]
1414
env:
1515
OS: ${{ matrix.os }}

.github/fork_workflows/fork_pr_integration_tests_snowflake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
python-version: [ "3.9" ]
12+
python-version: [ "3.11" ]
1313
os: [ ubuntu-latest ]
1414
env:
1515
OS: ${{ matrix.os }}

.github/workflows/build_wheels.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
- name: Setup Python
6060
uses: actions/setup-python@v3
6161
with:
62-
python-version: "3.9"
62+
python-version: "3.11"
6363
architecture: x64
6464
- name: Setup Node
6565
uses: actions/setup-node@v3
@@ -86,7 +86,7 @@ jobs:
8686
id: setup-python
8787
uses: actions/setup-python@v3
8888
with:
89-
python-version: "3.10"
89+
python-version: "3.11"
9090
architecture: x64
9191
- name: Setup Node
9292
uses: actions/setup-node@v3
@@ -137,7 +137,7 @@ jobs:
137137
strategy:
138138
matrix:
139139
os: [ubuntu-latest, macos-13 ]
140-
python-version: ["3.9", "3.10"]
140+
python-version: ["3.9", "3.10", "3.11"]
141141
from-source: [ True, False ]
142142
env:
143143
# this script is for testing servers

.github/workflows/java_master_only.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: actions/setup-python@v3
2626
id: setup-python
2727
with:
28-
python-version: "3.9"
28+
python-version: "3.11"
2929
architecture: x64
3030
- name: Authenticate to Google Cloud
3131
uses: 'google-github-actions/auth@v1'
@@ -95,7 +95,7 @@ jobs:
9595
if: github.repository == 'feast-dev/feast'
9696
runs-on: ubuntu-latest
9797
env:
98-
PYTHON: 3.9
98+
PYTHON: 3.11
9999
steps:
100100
- uses: actions/checkout@v4
101101
with:
@@ -110,7 +110,7 @@ jobs:
110110
uses: actions/setup-python@v3
111111
id: setup-python
112112
with:
113-
python-version: 3.9
113+
python-version: 3.11
114114
architecture: x64
115115
- name: Get pip cache dir
116116
id: pip-cache

.github/workflows/java_pr.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
uses: actions/setup-python@v3
8989
id: setup-python
9090
with:
91-
python-version: "3.9"
91+
python-version: "3.11"
9292
architecture: x64
9393
- name: Authenticate to Google Cloud
9494
uses: 'google-github-actions/auth@v1'
@@ -111,7 +111,7 @@ jobs:
111111
runs-on: ubuntu-latest
112112
needs: unit-test-java
113113
env:
114-
PYTHON: 3.9
114+
PYTHON: 3.11
115115
steps:
116116
- uses: actions/checkout@v4
117117
with:
@@ -128,7 +128,7 @@ jobs:
128128
architecture: x64
129129
- uses: actions/setup-python@v3
130130
with:
131-
python-version: '3.9'
131+
python-version: '3.11'
132132
architecture: 'x64'
133133
- uses: actions/cache@v2
134134
with:
@@ -158,7 +158,7 @@ jobs:
158158
uses: actions/setup-python@v3
159159
id: setup-python
160160
with:
161-
python-version: 3.9
161+
python-version: 3.11
162162
architecture: x64
163163
- name: Get pip cache dir
164164
id: pip-cache

.github/workflows/linter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ jobs:
66
lint-python:
77
runs-on: [ubuntu-latest]
88
env:
9-
PYTHON: 3.9
9+
PYTHON: 3.11
1010
steps:
1111
- uses: actions/checkout@v4
1212
- name: Setup Python
1313
id: setup-python
1414
uses: actions/setup-python@v5
1515
with:
16-
python-version: "3.9"
16+
python-version: "3.11"
1717
architecture: x64
1818
- name: Upgrade pip version
1919
run: |

.github/workflows/master_only.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,21 @@ jobs:
3030
id: image-tag
3131
run: echo "::set-output name=DOCKER_IMAGE_TAG::`git rev-parse HEAD`"
3232
- name: Cache Public ECR Image
33-
id: lambda_python_3_9
33+
id: lambda_python_3_11
3434
uses: actions/cache@v2
3535
with:
3636
path: ~/cache
37-
key: lambda_python_3_9
37+
key: lambda_python_3_11
3838
- name: Handle Cache Miss (pull public ECR image & save it to tar file)
3939
if: steps.cache-primes.outputs.cache-hit != 'true'
4040
run: |
4141
mkdir -p ~/cache
42-
docker pull public.ecr.aws/lambda/python:3.9
43-
docker save public.ecr.aws/lambda/python:3.9 -o ~/cache/lambda_python_3_9.tar
42+
docker pull public.ecr.aws/lambda/python:3.11
43+
docker save public.ecr.aws/lambda/python:3.11 -o ~/cache/lambda_python_3_11.tar
4444
- name: Handle Cache Hit (load docker image from tar file)
4545
if: steps.cache-primes.outputs.cache-hit == 'true'
4646
run: |
47-
docker load -i ~/cache/lambda_python_3_9.tar
47+
docker load -i ~/cache/lambda_python_3_11.tar
4848
- name: Build and push
4949
env:
5050
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
@@ -65,7 +65,7 @@ jobs:
6565
strategy:
6666
fail-fast: false
6767
matrix:
68-
python-version: ["3.9", "3.10" ]
68+
python-version: ["3.9", "3.10", "3.11"]
6969
os: [ ubuntu-latest ]
7070
env:
7171
OS: ${{ matrix.os }}

.github/workflows/nightly-ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
uses: actions/setup-python@v5
3737
id: setup-python
3838
with:
39-
python-version: "3.9"
39+
python-version: "3.11"
4040
architecture: x64
4141
- name: Set up AWS SDK
4242
uses: aws-actions/configure-aws-credentials@v1
@@ -89,21 +89,21 @@ jobs:
8989
id: image-tag
9090
run: echo "::set-output name=DOCKER_IMAGE_TAG::`git rev-parse HEAD`"
9191
- name: Cache Public ECR Image
92-
id: lambda_python_3_9
92+
id: lambda_python_3_11
9393
uses: actions/cache@v4
9494
with:
9595
path: ~/cache
96-
key: lambda_python_3_9
96+
key: lambda_python_3_11
9797
- name: Handle Cache Miss (pull public ECR image & save it to tar file)
98-
if: steps.lambda_python_3_9.outputs.cache-hit != 'true'
98+
if: steps.lambda_python_3_11.outputs.cache-hit != 'true'
9999
run: |
100100
mkdir -p ~/cache
101-
docker pull public.ecr.aws/lambda/python:3.9
102-
docker save public.ecr.aws/lambda/python:3.9 -o ~/cache/lambda_python_3_9.tar
101+
docker pull public.ecr.aws/lambda/python:3.11
102+
docker save public.ecr.aws/lambda/python:3.11 -o ~/cache/lambda_python_3_11.tar
103103
- name: Handle Cache Hit (load docker image from tar file)
104-
if: steps.lambda_python_3_9.outputs.cache-hit == 'true'
104+
if: steps.lambda_python_3_11.outputs.cache-hit == 'true'
105105
run: |
106-
docker load -i ~/cache/lambda_python_3_9.tar
106+
docker load -i ~/cache/lambda_python_3_11.tar
107107
- name: Build and push
108108
env:
109109
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
@@ -124,7 +124,7 @@ jobs:
124124
strategy:
125125
fail-fast: false
126126
matrix:
127-
python-version: [ "3.9" ]
127+
python-version: [ "3.11" ]
128128
os: [ ubuntu-latest ]
129129
env:
130130
OS: ${{ matrix.os }}

.github/workflows/pr_integration_tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,21 @@ jobs:
4747
id: image-tag
4848
run: echo "::set-output name=DOCKER_IMAGE_TAG::`git rev-parse HEAD`"
4949
- name: Cache Public ECR Image
50-
id: lambda_python_3_9
50+
id: lambda_python_3_11
5151
uses: actions/cache@v2
5252
with:
5353
path: ~/cache
54-
key: lambda_python_3_9
54+
key: lambda_python_3_11
5555
- name: Handle Cache Miss (pull public ECR image & save it to tar file)
5656
if: steps.cache-primes.outputs.cache-hit != 'true'
5757
run: |
5858
mkdir -p ~/cache
59-
docker pull public.ecr.aws/lambda/python:3.9
60-
docker save public.ecr.aws/lambda/python:3.9 -o ~/cache/lambda_python_3_9.tar
59+
docker pull public.ecr.aws/lambda/python:3.11
60+
docker save public.ecr.aws/lambda/python:3.11 -o ~/cache/lambda_python_3_11.tar
6161
- name: Handle Cache Hit (load docker image from tar file)
6262
if: steps.cache-primes.outputs.cache-hit == 'true'
6363
run: |
64-
docker load -i ~/cache/lambda_python_3_9.tar
64+
docker load -i ~/cache/lambda_python_3_11.tar
6565
- name: Build and push
6666
env:
6767
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
@@ -86,7 +86,7 @@ jobs:
8686
strategy:
8787
fail-fast: false
8888
matrix:
89-
python-version: [ "3.10" ]
89+
python-version: [ "3.9", "3.10", "3.11" ]
9090
os: [ ubuntu-latest ]
9191
env:
9292
OS: ${{ matrix.os }}

0 commit comments

Comments
 (0)