apache / pulsar-client-python

Apache Pulsar Python client library
https://pulsar.apache.org/
Apache License 2.0
51 stars 40 forks source link

Add support for Python 3.11 #83

Closed merlimat closed 1 year ago

merlimat commented 1 year ago

Fix #75

Building wheels for Py 3.11

BewareMyPower commented 1 year ago

It's weird that the MacOS test failed in https://github.com/apache/pulsar-client-python/actions/runs/4029658826/jobs/6927777767 after https://github.com/apache/pulsar-client-python/pull/83/commits/bc4144a944fa36f21f2e52add2bebb65c2030762 but it succeeded before.

++ ./build-support/dep-version.py pulsar-cpp
Traceback (most recent call last):
  File "/Users/runner/work/pulsar-client-python/pulsar-client-python/./build-support/dep-version.py", line [21](https://github.com/apache/pulsar-client-python/actions/runs/4029658826/jobs/6927777767#step:6:22), in <module>
    import yaml, sys
ModuleNotFoundError: No module named 'yaml'
+ PULSAR_CPP_VERSION=
BewareMyPower commented 1 year ago

It's caused by https://github.com/apache/pulsar-client-python/blob/fe966041f4c1868ef5549a5f95c484ecd64e8eee/.github/workflows/ci-pr-validation.yaml#L158

We need to add pip install pyyaml in the workflow.