Skip to content

Commit c17b406

Browse files
authored
SDK - Bump to work with python3.12 (#1407)
1 parent 5e80c26 commit c17b406

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/python-sdk.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
python3.9 python3.9-dev \
4242
python3.10 python3.10-dev \
4343
python3.11 python3.11-dev \
44+
python3.12 python3.12-dev \
4445
python3-pip \
4546
git
4647
pip install maturin
@@ -50,13 +51,13 @@ jobs:
5051
env:
5152
MATURIN_PYPI_TOKEN: ${{ secrets.TEST_PYPI_API_TOKEN }}
5253
PYTHON_STUB_FILE: "python/pgml/pgml.pyi"
53-
run: maturin publish -r testpypi -i python3.7 -i python3.8 -i python3.9 -i python3.10 -i python3.11 --skip-existing -F python
54+
run: maturin publish -r testpypi -i python3.7 -i python3.8 -i python3.9 -i python3.10 -i python3.11 -i python3.12 --skip-existing -F python
5455
- name: Build and deploy wheels to PyPI
5556
if: github.event.inputs.deploy_to_pypi == 'true'
5657
env:
5758
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
5859
PYTHON_STUB_FILE: "python/pgml/pgml.pyi"
59-
run: maturin publish -i python3.7 -i python3.8 -i python3.9 -i python3.10 -i python3.11 --skip-existing -F python
60+
run: maturin publish -i python3.7 -i python3.8 -i python3.9 -i python3.10 -i python3.11 -i python3.12 --skip-existing -F python
6061

6162
deploy-python-sdk-mac:
6263
runs-on: macos-latest
@@ -80,25 +81,26 @@ jobs:
8081
brew install python@3.9
8182
brew install python@3.10
8283
brew install python@3.11
84+
brew install python@3.12
8385
pip3 install maturin
8486
- name: Build and deploy wheels to TestPyPI
8587
if: github.event.inputs.deploy_to_pypi == 'false'
8688
env:
8789
MATURIN_PYPI_TOKEN: ${{ secrets.TEST_PYPI_API_TOKEN }}
8890
PYTHON_STUB_FILE: "python/pgml/pgml.pyi"
89-
run: maturin publish -r testpypi -i python3.8 -i python3.9 -i python3.10 -i python3.11 --skip-existing -F python
91+
run: maturin publish -r testpypi -i python3.8 -i python3.9 -i python3.10 -i python3.11 -i python3.12 --skip-existing -F python
9092
- name: Build and deploy wheels to PyPI
9193
if: github.event.inputs.deploy_to_pypi == 'true'
9294
env:
9395
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
9496
PYTHON_STUB_FILE: "python/pgml/pgml.pyi"
95-
run: maturin publish -i python3.8 -i python3.9 -i python3.10 -i python3.11 --skip-existing -F python
97+
run: maturin publish -i python3.8 -i python3.9 -i python3.10 -i python3.11 -i python3.12 --skip-existing -F python
9698

9799
deploy-python-sdk-windows:
98100
runs-on: windows-latest
99101
strategy:
100102
matrix:
101-
python-version: ["3.8", "3.9", "3.10", "3.11"]
103+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
102104
defaults:
103105
run:
104106
working-directory: pgml-sdks\pgml
@@ -124,10 +126,10 @@ jobs:
124126
env:
125127
MATURIN_PYPI_TOKEN: ${{ secrets.TEST_PYPI_API_TOKEN }}
126128
PYTHON_STUB_FILE: "python/pgml/pgml.pyi"
127-
run: maturin publish -r testpypi -i python3.8 -i python3.9 -i python3.10 -i python3.11 --skip-existing -F python
129+
run: maturin publish -r testpypi -i python3.8 -i python3.9 -i python3.10 -i python3.11 -i python3.12 --skip-existing -F python
128130
- name: Build and deploy wheels to PyPI
129131
if: github.event.inputs.deploy_to_pypi == 'true'
130132
env:
131133
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
132134
PYTHON_STUB_FILE: "python/pgml/pgml.pyi"
133-
run: maturin publish -i python3.8 -i python3.9 -i python3.10 -i python3.11 --skip-existing -F python
135+
run: maturin publish -i python3.8 -i python3.9 -i python3.10 -i python3.11 -i python3.12 --skip-existing -F python

pgml-sdks/pgml/python/manual-build-deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
echo "Make sure and set the environment variable MATURIN_PYPI_TOKEN to your PyPI token."
44

55
cd ..
6-
PYTHON_STUB_FILE="python/pgml/pgml.pyi" maturin publish -r $1 -i python3.8 -i python3.9 -i python3.10 -i python3.11 --skip-existing -F python
6+
PYTHON_STUB_FILE="python/pgml/pgml.pyi" maturin publish -r $1 -i python3.8 -i python3.9 -i python3.10 -i python3.11 -i python3.12 --skip-existing -F python

0 commit comments

Comments
 (0)