From 5707fb605cbd132e03c60e1a9e9463fd747ea93c Mon Sep 17 00:00:00 2001 From: WyattBlue Date: Fri, 22 Mar 2024 03:27:15 -0400 Subject: [PATCH] Drop support for Python 3.8 --- .github/workflows/tests.yml | 25 ++++++++++++------------- setup.py | 3 +-- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 58be2cd20..fea7d9d29 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,7 +17,6 @@ on: jobs: style: runs-on: ubuntu-latest - steps: - name: Checkout uses: actions/checkout@v4 @@ -25,7 +24,7 @@ jobs: - name: Python uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: 3.9 - name: Packages run: pip install -r tests/requirements.txt @@ -40,12 +39,12 @@ jobs: fail-fast: false matrix: config: - - {os: ubuntu-latest, python: 3.8, ffmpeg: "6.1", extras: true} - - {os: ubuntu-latest, python: 3.8, ffmpeg: "6.0"} - - {os: ubuntu-latest, python: 3.8, ffmpeg: "5.1"} - - {os: ubuntu-latest, python: 3.8, ffmpeg: "5.0"} + - {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.9, ffmpeg: "5.1"} + - {os: ubuntu-latest, python: 3.9, ffmpeg: "5.0"} - {os: ubuntu-latest, python: pypy3.9, ffmpeg: "6.1"} - - {os: macos-latest, python: 3.8, ffmpeg: "6.1"} + - {os: macos-latest, python: 3.9, ffmpeg: "6.1"} env: PYAV_PYTHON: python${{ matrix.config.python }} @@ -121,10 +120,10 @@ jobs: fail-fast: false matrix: config: - - {os: windows-latest, python: 3.8, ffmpeg: "6.1"} - - {os: windows-latest, python: 3.8, ffmpeg: "6.0"} - - {os: windows-latest, python: 3.8, ffmpeg: "5.1"} - - {os: windows-latest, python: 3.8, ffmpeg: "5.0"} + - {os: windows-latest, python: 3.9, ffmpeg: "6.1"} + - {os: windows-latest, python: 3.9, ffmpeg: "6.0"} + - {os: windows-latest, python: 3.9, ffmpeg: "5.1"} + - {os: windows-latest, python: 3.9, ffmpeg: "5.0"} steps: - name: Checkout @@ -164,7 +163,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: 3.9 - name: Build source package run: | pip install cython @@ -198,7 +197,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: 3.9 - name: Set up QEMU if: matrix.os == 'ubuntu-latest' uses: docker/setup-qemu-action@v3 diff --git a/setup.py b/setup.py index 59239c10a..cefe7ca6a 100644 --- a/setup.py +++ b/setup.py @@ -203,7 +203,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.8", + python_requires=">=3.9", zip_safe=False, ext_modules=ext_modules, test_suite="tests", @@ -220,7 +220,6 @@ 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",