diff --git a/.github/workflows/ci-build-release-wheels.yaml b/.github/workflows/ci-build-release-wheels.yaml index 2f2fff6..f5a7ccd 100644 --- a/.github/workflows/ci-build-release-wheels.yaml +++ b/.github/workflows/ci-build-release-wheels.yaml @@ -41,7 +41,6 @@ jobs: - {name: 'manylinux2014', py_suffix: ''} - {name: 'manylinux_musl', py_suffix: '-alpine'} python: - - {version: '3.7', spec: 'cp37-cp37m'} - {version: '3.8', spec: 'cp38-cp38'} - {version: '3.9', spec: 'cp39-cp39'} - {version: '3.10', spec: 'cp310-cp310'} @@ -103,7 +102,6 @@ jobs: fail-fast: false matrix: py: - - {version: '3.7', version_long: '3.7.15'} - {version: '3.8', version_long: '3.8.13'} - {version: '3.9', version_long: '3.9.14'} - {version: '3.10', version_long: '3.10.7'} @@ -156,7 +154,6 @@ jobs: fail-fast: false matrix: python: - - {version: '3.7'} - {version: '3.8'} - {version: '3.9'} - {version: '3.10'} diff --git a/.github/workflows/ci-pr-validation.yaml b/.github/workflows/ci-pr-validation.yaml index 9e67402..9aaa904 100644 --- a/.github/workflows/ci-pr-validation.yaml +++ b/.github/workflows/ci-pr-validation.yaml @@ -47,13 +47,22 @@ jobs: pulsar unit-tests: - name: Run unit tests + name: Run unit tests for Python ${{matrix.version}} runs-on: ubuntu-22.04 timeout-minutes: 120 + strategy: + fail-fast: false + matrix: + version: ['3.8', '3.12'] + steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "${{matrix.version}}" - name: Install Pulsar C++ client run: build-support/install-dependencies.sh @@ -66,7 +75,8 @@ jobs: - name: Python install run: | - ./setup.py bdist_wheel + python3 -m pip install -U pip setuptools wheel requests + python3 setup.py bdist_wheel WHEEL=$(find dist -name '*.whl') pip3 install ${WHEEL}[avro] @@ -90,7 +100,7 @@ jobs: - name: Test functions install run: | WHEEL=$(find dist -name '*.whl') - pip3 install ${WHEEL}[functions] --force-reinstall + pip3 install ${WHEEL}[all] --force-reinstall linux-wheel: name: Wheel ${{matrix.image.name}} - Py ${{matrix.python.version}} - ${{matrix.cpu.platform}} diff --git a/README.md b/README.md index 8b3a908..58f01f4 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Pulsar Python clients support a variety of Pulsar features to enable building ap ## Requirements -- Python >= 3.7 +- Python 3.8, 3.9, 3.10, 3.11, 3.12 - A C++ compiler that supports C++11 - CMake >= 3.18 - [Pulsar C++ client library](https://github.com/apache/pulsar-client-cpp) diff --git a/RELEASE.md b/RELEASE.md index 9a8e73c..8ec148c 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -132,7 +132,7 @@ stay open for at least 72 hours *** Python wheels: https://dist.apache.org/repos/dist/dev/pulsar/pulsar-client-python-X.Y.Z-candidate-N/ -The supported python versions are 3.7, 3.8, 3.9, 3.10, 3.11 and 3.12. The +The supported python versions are 3.8, 3.9, 3.10, 3.11 and 3.12. The supported platforms and architectures are: - Windows x86_64 (windows/) - glibc-based Linux x86_64 (linux-glibc-x86_64/) diff --git a/build-support/install-dependencies.sh b/build-support/install-dependencies.sh index 42bf9e6..624cfcb 100755 --- a/build-support/install-dependencies.sh +++ b/build-support/install-dependencies.sh @@ -22,6 +22,7 @@ set -e -x cd `dirname $0` +python3 -m pip install pyyaml CPP_CLIENT_VERSION=$(./dep-version.py pulsar-cpp ../dependencies.yaml) PYBIND11_VERSION=$(./dep-version.py pybind11 ../dependencies.yaml) source ./dep-url.sh diff --git a/setup.py b/setup.py index 6ba6a92..8055af0 100755 --- a/setup.py +++ b/setup.py @@ -90,7 +90,7 @@ def build_extension(self, ext): # avro dependencies extras_require["avro"] = sorted( { - "fastavro==1.7.3" + "fastavro>=1.9.2" } )