From 330162f774df1e436474b230524c8653de473f15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 1 Jun 2024 15:40:11 +0200 Subject: [PATCH] limit requests to '<2.32' for Docker and executables (#5665) at least for the time being until requests fixed all HTTPAdapter / SSLContext bugs --- .github/workflows/executables.yml | 2 +- Dockerfile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/executables.yml b/.github/workflows/executables.yml index bbdf1291..2c27d643 100644 --- a/.github/workflows/executables.yml +++ b/.github/workflows/executables.yml @@ -70,7 +70,7 @@ jobs: - name: Build executable run: | - pip install requests requests[socks] yt-dlp pyyaml ${{ matrix.python-packages }} pyinstaller + pip install 'requests<2.32' requests[socks] yt-dlp pyyaml ${{ matrix.python-packages }} pyinstaller python ./scripts/pyinstaller.py --label '${{ env.LABEL }}' - uses: actions/upload-artifact@v4 diff --git a/Dockerfile b/Dockerfile index 30759122..a9eb2e07 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,7 @@ RUN : \ && python3 -B -m pip --no-cache-dir --no-input --disable-pip-version-check install -U \ https://github.com/mikf/gallery-dl/archive/refs/heads/master.tar.gz \ yt-dlp \ + 'requests<2.32' \ && rm -rf /root/.cache/pip \ && find /usr/local/lib/python3.*/site-packages/setuptools -name __pycache__ -exec rm -rf {} + \ && find /usr/local/lib/python3.*/site-packages/wheel -name __pycache__ -exec rm -rf {} + \