[build] Rename requirements files to clean up dependency graph (#16740)

Authored by: bashonly
This commit is contained in:
bashonly
2026-05-16 15:30:45 -05:00
committed by GitHub
parent 410e0af537
commit 32f1671a90
25 changed files with 33 additions and 32 deletions

View File

@@ -325,7 +325,7 @@ jobs:
brew uninstall --ignore-dependencies python3
python3 -m venv ~/yt-dlp-build-venv
source ~/yt-dlp-build-venv/bin/activate
python3 -m pip install -U --require-hashes -r "bundle/requirements/requirements-pip.txt"
python3 -m pip install -U --require-hashes -r "bundle/requirements/pip.txt"
rm -rf build
# Only directly install wheels for "macosx_10_15_universal2" and "any" platforms
mkdir -p build/wheels
@@ -335,7 +335,7 @@ jobs:
--platform=any \
-d build/wheels \
--require-hashes \
-r "bundle/requirements/requirements-macos.txt"
-r "bundle/requirements/macos.txt"
python3 -m pip install --force-reinstall --no-deps -U build/wheels/*.whl
rm -rf build/wheels/*
# We need to fuse our own universal2 wheels for curl_cffi and cffi
@@ -347,7 +347,7 @@ jobs:
--platform "${platform}" \
-d build/wheels \
--require-hashes \
-r "bundle/requirements/requirements-macos-curl_cffi.txt"
-r "bundle/requirements/macos-curl_cffi.txt"
done
python3 -m delocate.cmd.delocate_merge build/wheels/curl_cffi-*.whl -w build/universal2
python3 -m delocate.cmd.delocate_merge build/wheels/cffi-*.whl -w build/universal2
@@ -456,12 +456,12 @@ jobs:
$PSNativeCommandUseErrorActionPreference = $true
python -m venv /yt-dlp-build-venv
/yt-dlp-build-venv/Scripts/Activate.ps1
python -m pip install -U --require-hashes -r "bundle/requirements/requirements-pip.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/requirements-win-${Env:ARCH}-pyinstaller.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/pip.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/win-${Env:ARCH}-pyinstaller.txt"
if (${Env:ARCH} -eq "x86") {
python -m pip install -U --require-hashes -r "bundle/requirements/requirements-default.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/default.txt"
} else {
python -m pip install -U --require-hashes -r "bundle/requirements/requirements-curl-cffi.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/curl-cffi.txt"
}
- name: Prepare

View File

@@ -79,9 +79,9 @@ jobs:
- name: Install test requirements
shell: bash
run: |
python -m pip install -U --require-hashes -r "bundle/requirements/requirements-pip.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/requirements-test.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/requirements-default.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/pip.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/test.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/default.txt"
- name: Run tests
timeout-minutes: 15
shell: bash

View File

@@ -75,16 +75,16 @@ jobs:
- name: Install test requirements (cpython)
if: ${{ !startsWith(matrix.python-version, 'pypy') }}
run: |
python -m pip install -U --require-hashes -r "bundle/requirements/requirements-pip.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/requirements-test.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/requirements-curl-cffi.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/pip.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/test.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/curl-cffi.txt"
- name: Install test requirements (PyPy)
if: ${{ startsWith(matrix.python-version, 'pypy') }}
run: |
python -m pip install -U --require-hashes -r "bundle/requirements/requirements-pip.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/requirements-test.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/requirements-default.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/pip.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/test.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/default.txt"
- name: Run tests
timeout-minutes: 15

View File

@@ -31,8 +31,8 @@ jobs:
- name: Install test requirements
shell: bash
run: |
python -m pip install -U --require-hashes -r "bundle/requirements/requirements-pip.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/requirements-test.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/pip.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/test.txt"
- name: Run tests
timeout-minutes: 15
shell: bash
@@ -56,8 +56,8 @@ jobs:
python-version: '3.14'
- name: Install dev dependencies
run: |
python -m pip install -U --require-hashes -r "bundle/requirements/requirements-pip.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/requirements-static-analysis.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/pip.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/static-analysis.txt"
- name: Make lazy extractors
run: python ./devscripts/make_lazy_extractors.py
- name: Run ruff

View File

@@ -185,8 +185,8 @@ jobs:
- name: Install Requirements
run: |
sudo apt -y install pandoc man
python -m pip install -U --require-hashes -r "bundle/requirements/requirements-pip.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/requirements-build.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/pip.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/build.txt"
- name: Prepare
env:

View File

@@ -36,9 +36,9 @@ jobs:
- name: Install Python dependencies
run: |
python -m pip install -U --require-hashes -r "bundle/requirements/requirements-pip.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/requirements-pyflakes.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/requirements-test.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/pip.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/pyflakes.txt"
python -m pip install -U --require-hashes -r "bundle/requirements/test.txt"
- name: Install requirements
env: