From aed70e494495c86087151f632eee96871f32c792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jeremy=20Lain=C3=A9?= Date: Tue, 28 May 2024 07:52:13 +0200 Subject: [PATCH] Restore support for Python 3.8 This reverts 5707fb605cbd132e03c60e1a9e9463fd747ea93c. --- .github/workflows/smoke.yml | 10 +++++----- .github/workflows/tests.yml | 4 ++-- setup.py | 3 ++- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/smoke.yml b/.github/workflows/smoke.yml index 2c360ce55..39cf096cd 100644 --- a/.github/workflows/smoke.yml +++ b/.github/workflows/smoke.yml @@ -37,10 +37,10 @@ jobs: fail-fast: false matrix: config: - - {os: ubuntu-latest, python: "3.9", ffmpeg: "6.1", extras: true} - - {os: ubuntu-latest, python: "3.9", ffmpeg: "6.0"} + - {os: ubuntu-latest, python: "3.8", ffmpeg: "6.1", extras: true} + - {os: ubuntu-latest, python: "3.8", ffmpeg: "6.0"} - {os: ubuntu-latest, python: pypy3.9, ffmpeg: "6.1"} - - {os: macos-12, python: "3.9", ffmpeg: "6.1"} + - {os: macos-12, python: "3.8", ffmpeg: "6.1"} env: PYAV_PYTHON: python${{ matrix.config.python }} @@ -116,8 +116,8 @@ jobs: fail-fast: false matrix: config: - - {os: windows-latest, python: 3.9, ffmpeg: "6.1"} - - {os: windows-latest, python: 3.9, ffmpeg: "6.0"} + - {os: windows-latest, python: "3.8", ffmpeg: "6.1"} + - {os: windows-latest, python: "3.8", ffmpeg: "6.0"} steps: - name: Checkout diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 564a1c922..fcafb8d82 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.9" + python-version: "3.8" - name: Build source package run: | pip install cython @@ -44,7 +44,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.9" + python-version: "3.8" - name: Set up QEMU if: matrix.os == 'ubuntu-latest' uses: docker/setup-qemu-action@v3 diff --git a/setup.py b/setup.py index 8cfcbaa58..cdedbcfb6 100644 --- a/setup.py +++ b/setup.py @@ -205,7 +205,7 @@ def parse_cflags(raw_flags): url="https://github.com/PyAV-Org/PyAV", packages=find_packages(exclude=["build*", "examples*", "scratchpad*", "tests*"]), package_data=package_data, - python_requires=">=3.9", + python_requires=">=3.8", zip_safe=False, ext_modules=ext_modules, test_suite="tests", @@ -222,6 +222,7 @@ def parse_cflags(raw_flags): "Operating System :: Unix", "Operating System :: Microsoft :: Windows", "Programming Language :: Cython", + "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11",