Skip to content

Commit c08ba70

Browse files
noamcohen973dbrows
andauthored
SNOW-698916 support Python 3.11 (#1349)
Co-authored-by: Duncan MacQuarrie <[email protected]> Fixes #1345
1 parent 143a11c commit c08ba70

File tree

16 files changed

+45
-24
lines changed

16 files changed

+45
-24
lines changed

.github/workflows/build_test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
runs-on: ubuntu-latest
5252
strategy:
5353
matrix:
54-
python-version: [ "3.7", "3.8", "3.9", "3.10" ]
54+
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
5555
steps:
5656
- uses: actions/checkout@v3
5757
- name: Set up Python
@@ -80,7 +80,7 @@ jobs:
8080
id: macosx_x86_64
8181
- image: macos-latest
8282
id: macosx_arm64
83-
python-version: ["3.7", "3.8", "3.9", "3.10"]
83+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
8484
exclude:
8585
- os:
8686
id: macosx_arm64
@@ -128,7 +128,7 @@ jobs:
128128
download_name: macosx_x86_64
129129
- image_name: windows-2019
130130
download_name: win_amd64
131-
python-version: ["3.7", "3.8", "3.9", "3.10"]
131+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
132132
cloud-provider: [aws, azure, gcp]
133133
steps:
134134
- uses: actions/checkout@v3

.github/workflows/create_req_files.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
python-version: ["3.7", "3.8", "3.9", "3.10"]
12+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
1313
steps:
1414
- uses: actions/checkout@v3
1515
- name: Set up Python

Jenkinsfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ timestamps {
5151
'Test Python 38': { build job: 'RT-PyConnector38-PC',parameters: params},
5252
'Test Python 39': { build job: 'RT-PyConnector39-PC',parameters: params},
5353
'Test Python 310': { build job: 'RT-PyConnector310-PC',parameters: params},
54+
'Test Python 311': { build job: 'RT-PyConnector311-PC',parameters: params},
5455
'Test Python Lambda 37': { build job: 'RT-PyConnector37-PC-Lambda',parameters: params}
5556
)
5657
}

ci/build_darwin.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Build Snowflake Python Connector on Mac
44
# NOTES:
55
# - To compile only a specific version(s) pass in versions like: `./build_darwin.sh "3.7 3.8"`
6-
PYTHON_VERSIONS="${1:-3.7 3.8 3.9 3.10}"
6+
PYTHON_VERSIONS="${1:-3.7 3.8 3.9 3.10 3.11}"
77
THIS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
88
CONNECTOR_DIR="$(dirname "${THIS_DIR}")"
99
DIST_DIR="$CONNECTOR_DIR/dist"

ci/build_docker.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ arch=$(uname -p)
1818
echo "[Info] Building docker image"
1919
if [[ "$arch" == "aarch64" ]]; then
2020
BASE_IMAGE=$BASE_IMAGE_MANYLINUX2014AARCH64
21-
GOSU_URL=https://github.com/tianon/gosu/releases/download/1.11/gosu-arm64
21+
GOSU_URL=https://github.com/tianon/gosu/releases/download/1.14/gosu-arm64
2222
else
2323
BASE_IMAGE=$BASE_IMAGE_MANYLINUX2014
24-
GOSU_URL=https://github.com/tianon/gosu/releases/download/1.11/gosu-amd64
24+
GOSU_URL=https://github.com/tianon/gosu/releases/download/1.14/gosu-amd64
2525
fi
2626

2727
docker build --pull -t ${CONTAINER_NAME}:1.0 --build-arg BASE_IMAGE=$BASE_IMAGE --build-arg GOSU_URL="$GOSU_URL" . -f Dockerfile

ci/build_linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
set -o pipefail
88

99
U_WIDTH=16
10-
PYTHON_VERSIONS="${1:-3.7 3.8 3.9 3.10}"
10+
PYTHON_VERSIONS="${1:-3.7 3.8 3.9 3.10 3.11}"
1111
THIS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
1212
CONNECTOR_DIR="$(dirname "${THIS_DIR}")"
1313
DIST_DIR="${CONNECTOR_DIR}/dist"

ci/build_windows.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
SET SCRIPT_DIR=%~dp0
77
SET CONNECTOR_DIR=%~dp0\..\
88

9-
set python_versions= 3.7 3.8 3.9 3.10
9+
set python_versions= 3.7 3.8 3.9 3.10 3.11
1010

1111
cd %CONNECTOR_DIR%
1212

ci/docker/connector_build/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ARG BASE_IMAGE=quay.io/pypa/manylinux2014_x86_64
22
FROM $BASE_IMAGE
33

44
# This is to solve permission issue, read https://denibertovic.com/posts/handling-permissions-with-docker-volumes/
5-
ARG GOSU_URL=https://github.com/tianon/gosu/releases/download/1.11/gosu-amd64
5+
ARG GOSU_URL=https://github.com/tianon/gosu/releases/download/1.14/gosu-amd64
66
ENV GOSU_PATH $GOSU_URL
77
RUN curl -o /usr/local/bin/gosu -SL $GOSU_PATH
88
RUN chmod +x /usr/local/bin/gosu
@@ -14,6 +14,6 @@ WORKDIR /home/user
1414
RUN chmod 777 /home/user
1515
RUN git clone https://github.com/matthew-brett/multibuild.git && cd /home/user/multibuild && git checkout bfc6d8b82d8c37b8ca1e386081fd800e81c6ab4a
1616

17-
ENV PATH="${PATH}:/opt/python/cp37-cp37m/bin:/opt/python/cp38-cp38/bin:/opt/python/cp39-cp39/bin:/opt/python/cp310-cp310/bin"
17+
ENV PATH="${PATH}:/opt/python/cp37-cp37m/bin:/opt/python/cp38-cp38/bin:/opt/python/cp39-cp39/bin:/opt/python/cp310-cp310/bin:/opt/python/cp311-cp311/bin"
1818

1919
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]

ci/docker/connector_test/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ARG BASE_IMAGE=quay.io/pypa/manylinux2014_x86_64
22
FROM $BASE_IMAGE
33

44
# This is to solve permission issue, read https://denibertovic.com/posts/handling-permissions-with-docker-volumes/
5-
ARG GOSU_URL=https://github.com/tianon/gosu/releases/download/1.11/gosu-amd64
5+
ARG GOSU_URL=https://github.com/tianon/gosu/releases/download/1.14/gosu-amd64
66
ENV GOSU_PATH $GOSU_URL
77
RUN curl -o /usr/local/bin/gosu -SL $GOSU_PATH
88
RUN chmod +x /usr/local/bin/gosu
@@ -12,6 +12,6 @@ RUN chmod +x /usr/local/bin/entrypoint.sh
1212

1313
WORKDIR /home/user
1414
RUN chmod 777 /home/user
15-
ENV PATH="${PATH}:/opt/python/cp37-cp37m/bin:/opt/python/cp38-cp38/bin/:/opt/python/cp39-cp39/bin/:/opt/python/cp310-cp310/bin/"
15+
ENV PATH="${PATH}:/opt/python/cp37-cp37m/bin:/opt/python/cp38-cp38/bin/:/opt/python/cp39-cp39/bin/:/opt/python/cp310-cp310/bin/:/opt/python/cp311-cp311/bin/"
1616

1717
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]

ci/docker/connector_test_fips/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM centos:7
22

33
# This is to solve permission issue, read https://denibertovic.com/posts/handling-permissions-with-docker-volumes/
4-
RUN curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.11/gosu-amd64"
4+
RUN curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.14/gosu-amd64"
55
RUN chmod +x /usr/local/bin/gosu
66

77
COPY scripts/entrypoint.sh /usr/local/bin/entrypoint.sh

0 commit comments

Comments
 (0)