From 27d63d46d00e45f066fe35134e0ba99815ff5b07 Mon Sep 17 00:00:00 2001 From: WyattBlue Date: Mon, 1 Sep 2025 09:01:40 -0400 Subject: [PATCH] Add ffmpeg-latest.json So no one forgets to update tests.yml in the future --- .github/workflows/smoke.yml | 2 +- .github/workflows/tests.yml | 8 ++++---- scripts/ffmpeg-latest.json | 3 +++ 3 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 scripts/ffmpeg-latest.json diff --git a/.github/workflows/smoke.yml b/.github/workflows/smoke.yml index 3c355a949..b6189e26b 100644 --- a/.github/workflows/smoke.yml +++ b/.github/workflows/smoke.yml @@ -109,7 +109,7 @@ jobs: fail-fast: false matrix: config: - - {os: windows-latest, python: "3.9", ffmpeg: "8.0"} + - {os: windows-latest, python: "3.9", ffmpeg: "latest"} steps: - name: Checkout diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 788340c60..94e5d58e1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,7 +14,7 @@ jobs: - name: Build source package run: | pip install -U --pre cython setuptools - python scripts/fetch-vendor.py --config-file scripts/ffmpeg-7.1.json /tmp/vendor + python scripts/fetch-vendor.py --config-file scripts/ffmpeg-latest.json /tmp/vendor PKG_CONFIG_PATH=/tmp/vendor/lib/pkgconfig python setup.py sdist - name: Upload source package uses: actions/upload-artifact@v4 @@ -55,9 +55,9 @@ jobs: - name: Build wheels env: CIBW_ARCHS: ${{ matrix.arch }} - CIBW_BEFORE_BUILD: python scripts/fetch-vendor.py --config-file scripts/ffmpeg-7.1.json /tmp/vendor - CIBW_BEFORE_BUILD_MACOS: python scripts/fetch-vendor.py --config-file scripts/ffmpeg-7.1.json /tmp/vendor - CIBW_BEFORE_BUILD_WINDOWS: python scripts\fetch-vendor.py --config-file scripts\ffmpeg-7.1.json C:\cibw\vendor + CIBW_BEFORE_BUILD: python scripts/fetch-vendor.py --config-file scripts/ffmpeg-latest.json /tmp/vendor + CIBW_BEFORE_BUILD_MACOS: python scripts/fetch-vendor.py --config-file scripts/ffmpeg-latest.json /tmp/vendor + CIBW_BEFORE_BUILD_WINDOWS: python scripts\fetch-vendor.py --config-file scripts\ffmpeg-latest.json C:\cibw\vendor CIBW_ENVIRONMENT_LINUX: LD_LIBRARY_PATH=/tmp/vendor/lib:$LD_LIBRARY_PATH PKG_CONFIG_PATH=/tmp/vendor/lib/pkgconfig CIBW_ENVIRONMENT_MACOS: PKG_CONFIG_PATH=/tmp/vendor/lib/pkgconfig LDFLAGS=-headerpad_max_install_names CIBW_ENVIRONMENT_WINDOWS: INCLUDE=C:\\cibw\\vendor\\include LIB=C:\\cibw\\vendor\\lib PYAV_SKIP_TESTS=unicode_filename diff --git a/scripts/ffmpeg-latest.json b/scripts/ffmpeg-latest.json new file mode 100644 index 000000000..915f5bfc2 --- /dev/null +++ b/scripts/ffmpeg-latest.json @@ -0,0 +1,3 @@ +{ + "url": "https://github.com/PyAV-Org/pyav-ffmpeg/releases/download/8.0-1/ffmpeg-{platform}.tar.gz" +}