Skip to content

Commit cec15b5

Browse files
Build and deploy for Python 3.12 (#674)
## Usage and product changes We enable support for python 3.12 driver build.
1 parent fd8d04e commit cec15b5

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

.circleci/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ commands:
119119
bazel run --jobs=8 --define version=$(git rev-parse HEAD) //python:deploy-pip39 -- snapshot
120120
bazel run --jobs=8 --define version=$(git rev-parse HEAD) //python:deploy-pip310 -- snapshot
121121
bazel run --jobs=8 --define version=$(git rev-parse HEAD) //python:deploy-pip311 -- snapshot
122+
bazel run --jobs=8 --define version=$(git rev-parse HEAD) //python:deploy-pip312 -- snapshot
122123
123124
test-pip-snapshot-unix:
124125
steps:
@@ -161,6 +162,7 @@ commands:
161162
bazel run --jobs=8 --define version=$(cat VERSION) //python:deploy-pip39 --compilation_mode=opt -- release
162163
bazel run --jobs=8 --define version=$(cat VERSION) //python:deploy-pip310 --compilation_mode=opt -- release
163164
bazel run --jobs=8 --define version=$(cat VERSION) //python:deploy-pip311 --compilation_mode=opt -- release
165+
bazel run --jobs=8 --define version=$(cat VERSION) //python:deploy-pip312 --compilation_mode=opt -- release
164166
165167
166168
#########################

.circleci/windows/python/deploy_release.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,6 @@ IF %errorlevel% NEQ 0 EXIT /b %errorlevel%
3737

3838
bazel --output_user_root=C:/tmp run --verbose_failures --define version=%VER% //python:deploy-pip311 --compilation_mode=opt -- release
3939
IF %errorlevel% NEQ 0 EXIT /b %errorlevel%
40+
41+
bazel --output_user_root=C:/tmp run --verbose_failures --define version=%VER% //python:deploy-pip312 --compilation_mode=opt -- release
42+
IF %errorlevel% NEQ 0 EXIT /b %errorlevel%

.circleci/windows/python/deploy_snapshot.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,6 @@ IF %errorlevel% NEQ 0 EXIT /b %errorlevel%
3838

3939
bazel --output_user_root=C:/tmp run --verbose_failures --define version=%VER% //python:deploy-pip311 -- snapshot
4040
IF %errorlevel% NEQ 0 EXIT /b %errorlevel%
41+
42+
bazel --output_user_root=C:/tmp run --verbose_failures --define version=%VER% //python:deploy-pip312 -- snapshot
43+
IF %errorlevel% NEQ 0 EXIT /b %errorlevel%

python/python_versions.bzl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ python_versions = [
4848
"libpython": "@python311//:libpython",
4949
"suffix": "311",
5050
},
51+
{
52+
"name": "python312",
53+
"python_version": "3.12",
54+
"python_headers": "@python312//:python_headers",
55+
"libpython": "@python312//:libpython",
56+
"suffix": "312",
57+
},
5158
]
5259

5360
def register_all_toolchains():

0 commit comments

Comments
 (0)