Skip to content

Try applying a patch #6397

Try applying a patch

Try applying a patch #6397

Workflow file for this run

name: CI
on:
push:
jobs:
Windows:
name: 'Windows (${{ matrix.python }})'
timeout-minutes: 20
runs-on: 'windows-latest'
strategy:
fail-fast: false
matrix:
python: ['pypy-3.10']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
# This allows the matrix to specify just the major.minor version while still
# expanding it to get the latest patch version including alpha releases.
# This avoids the need to update for each new alpha, beta, release candidate,
# and then finally an actual release version. actions/setup-python doesn't
# support this for PyPy presently so we get no help there.
#
# 'CPython' -> '3.9.0-alpha - 3.9.X'
# 'PyPy' -> 'pypy-3.9'
python-version: ${{ fromJSON(format('["{0}", "{1}"]', format('{0}.0-alpha - {0}.X', matrix.python), matrix.python))[startsWith(matrix.python, 'pypy')] }}
cache: pip
cache-dependency-path: test-requirements.txt
- run: |
sed -i 's/pass/raise/' C:/hostedtoolcache/windows/PyPy/3.10.14/x86/Lib/site-packages/pip/_internal/network/cache.py
- run: |
patch C:/hostedtoolcache/windows/PyPy/3.10.14/x86/Lib/site-packages/pip/_vendor/cachecontrol/controller.py ./patchfile
#- run: |
# sed -i 's/request.headers.update(self.controller.conditional_headers(request))/import gc; request.headers.update(self.controller.conditional_headers(request)); gc.collect()/' C:/hostedtoolcache/windows/PyPy/3.10.14/x86/Lib/site-packages/pip/_vendor/cachecontrol/adapter.py
#- run: cat C:/hostedtoolcache/windows/PyPy/3.10.14/x86/Lib/site-packages/pip/_vendor/cachecontrol/controller.py
- run: sed -i 's/kYwoFX7YWfM04Y8vMizwCw/PCaLiMeCwLhKktEGy\/zhWg/' c:/users/runneradmin/appdata/local/pip/cache/http-v2/a/d/e/e/f/adeef5b9611702687bbddade5f7c0af65110caf98ba1a0070c9d116e
- run: pip install -vvv uv -c test-requirements.txt
- run: ls -la c:/users/runneradmin/appdata/local/pip/cache/http-v2/a/d/e/e/f/adeef5b9611702687bbddade5f7c0af65110caf98ba1a0070c9d116e*
shell: bash
- name: prevent setup-python caching
run: exit 1