This is an automated email from the ASF dual-hosted git repository.

mmerli pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-client-python.git


The following commit(s) were added to refs/heads/main by this push:
     new c88d57e  Add support for Python 3.11 (#83)
c88d57e is described below

commit c88d57e1765d8bf42aac3b56621e6750cad91d3a
Author: Matteo Merli <[email protected]>
AuthorDate: Tue Jan 31 17:16:28 2023 -0800

    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
---
 .github/workflows/ci-build-release-wheels.yaml |  3 +++
 .github/workflows/ci-pr-validation.yaml        | 12 ++++++------
 setup.py                                       |  2 +-
 3 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/ci-build-release-wheels.yaml 
b/.github/workflows/ci-build-release-wheels.yaml
index fd46109..eb3701e 100644
--- a/.github/workflows/ci-build-release-wheels.yaml
+++ b/.github/workflows/ci-build-release-wheels.yaml
@@ -45,6 +45,7 @@ jobs:
           - {version: '3.8', spec: 'cp38-cp38'}
           - {version: '3.9', spec: 'cp39-cp39'}
           - {version: '3.10', spec: 'cp310-cp310'}
+          - {version: '3.11', spec: 'cp311-cp311'}
         cpu:
           - {arch: 'x86_64', platform: 'x86_64'}
           - {arch: 'aarch64', platform: 'arm64'}
@@ -105,6 +106,7 @@ jobs:
           - {version: '3.8', version_long:  '3.8.13'}
           - {version: '3.9', version_long:  '3.9.14'}
           - {version: '3.10', version_long:  '3.10.7'}
+          - {version: '3.11', version_long:  '3.11.1'}
 
     steps:
       - name: checkout
@@ -156,6 +158,7 @@ jobs:
           - {version: '3.8'}
           - {version: '3.9'}
           - {version: '3.10'}
+          - {version: '3.11'}
 
     steps:
       - uses: actions/checkout@v3
diff --git a/.github/workflows/ci-pr-validation.yaml 
b/.github/workflows/ci-pr-validation.yaml
index 306bcfc..aae8551 100644
--- a/.github/workflows/ci-pr-validation.yaml
+++ b/.github/workflows/ci-pr-validation.yaml
@@ -93,7 +93,7 @@ jobs:
           - {name: 'manylinux2014', py_suffix: ''}
           - {name: 'manylinux_musl', py_suffix: '-alpine'}
         python:
-          - {version: '3.10', spec: 'cp310-cp310'}
+          - {version: '3.11', spec: 'cp311-cp311'}
         cpu:
           - {arch: 'x86_64', platform: 'x86_64'}
 
@@ -141,7 +141,7 @@ jobs:
     strategy:
       matrix:
         py:
-          - {version: '3.10', version_long:  '3.10.7'}
+          - {version: '3.11', version_long:  '3.11.1'}
 
     steps:
       - name: checkout
@@ -154,6 +154,9 @@ jobs:
           path: .pulsar-mac-build/deps/install
           key: ${{matrix.py.version_long}}-${{ hashFiles('dependencies.yaml') 
}}-${{ hashFiles('pkg/mac/*') }}
 
+      - name: Install Python deps
+        run: pip3 install -U pyyaml
+
       - name: Build dependencies
         if: steps.cache-deps.outputs.cache-hit != 'true'
         run: pkg/mac/build-dependencies.sh ${{matrix.py.version}} 
${{matrix.py.version_long}}
@@ -184,10 +187,7 @@ jobs:
       fail-fast: false
       matrix:
         python:
-          - version: '3.7'
-          - version: '3.8'
-          - version: '3.9'
-          - version: '3.10'
+          - version: '3.11'
 
     steps:
       - uses: actions/checkout@v3
diff --git a/setup.py b/setup.py
index f2ef81b..200bd25 100755
--- a/setup.py
+++ b/setup.py
@@ -79,7 +79,7 @@ extras_require = {}
 # functions dependencies
 extras_require["functions"] = sorted(
     {
-      "protobuf>=3.6.1,<=3.20.*",
+      "protobuf>=3.6.1,<=3.20.3",
       "grpcio<1.28,>=1.8.2",
       "apache-bookkeeper-client>=4.9.2",
       "prometheus_client",

Reply via email to