Skip to content

Commit c88d57e

Browse files
authored
Add support for Python 3.11 (#83)
* Add support for Python 3.11 * Removed Python 3.7 windows PR build * PyYaml * Use pip3 instead of pip * Test * Fixed dependencies wildcard
1 parent c2d4a33 commit c88d57e

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.github/workflows/ci-build-release-wheels.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
- {version: '3.8', spec: 'cp38-cp38'}
4646
- {version: '3.9', spec: 'cp39-cp39'}
4747
- {version: '3.10', spec: 'cp310-cp310'}
48+
- {version: '3.11', spec: 'cp311-cp311'}
4849
cpu:
4950
- {arch: 'x86_64', platform: 'x86_64'}
5051
- {arch: 'aarch64', platform: 'arm64'}
@@ -105,6 +106,7 @@ jobs:
105106
- {version: '3.8', version_long: '3.8.13'}
106107
- {version: '3.9', version_long: '3.9.14'}
107108
- {version: '3.10', version_long: '3.10.7'}
109+
- {version: '3.11', version_long: '3.11.1'}
108110

109111
steps:
110112
- name: checkout
@@ -156,6 +158,7 @@ jobs:
156158
- {version: '3.8'}
157159
- {version: '3.9'}
158160
- {version: '3.10'}
161+
- {version: '3.11'}
159162

160163
steps:
161164
- uses: actions/checkout@v3

.github/workflows/ci-pr-validation.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
- {name: 'manylinux2014', py_suffix: ''}
9494
- {name: 'manylinux_musl', py_suffix: '-alpine'}
9595
python:
96-
- {version: '3.10', spec: 'cp310-cp310'}
96+
- {version: '3.11', spec: 'cp311-cp311'}
9797
cpu:
9898
- {arch: 'x86_64', platform: 'x86_64'}
9999

@@ -141,7 +141,7 @@ jobs:
141141
strategy:
142142
matrix:
143143
py:
144-
- {version: '3.10', version_long: '3.10.7'}
144+
- {version: '3.11', version_long: '3.11.1'}
145145

146146
steps:
147147
- name: checkout
@@ -154,6 +154,9 @@ jobs:
154154
path: .pulsar-mac-build/deps/install
155155
key: ${{matrix.py.version_long}}-${{ hashFiles('dependencies.yaml') }}-${{ hashFiles('pkg/mac/*') }}
156156

157+
- name: Install Python deps
158+
run: pip3 install -U pyyaml
159+
157160
- name: Build dependencies
158161
if: steps.cache-deps.outputs.cache-hit != 'true'
159162
run: pkg/mac/build-dependencies.sh ${{matrix.py.version}} ${{matrix.py.version_long}}
@@ -184,10 +187,7 @@ jobs:
184187
fail-fast: false
185188
matrix:
186189
python:
187-
- version: '3.7'
188-
- version: '3.8'
189-
- version: '3.9'
190-
- version: '3.10'
190+
- version: '3.11'
191191

192192
steps:
193193
- uses: actions/checkout@v3

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def build_extension(self, ext):
7979
# functions dependencies
8080
extras_require["functions"] = sorted(
8181
{
82-
"protobuf>=3.6.1,<=3.20.*",
82+
"protobuf>=3.6.1,<=3.20.3",
8383
"grpcio<1.28,>=1.8.2",
8484
"apache-bookkeeper-client>=4.9.2",
8585
"prometheus_client",

0 commit comments

Comments
 (0)