GeezerVison is showing github.com — Bootstrap `pip` in Cygwin Python 3.12 venv in a separate step · gitpython-developers/GitPython@3dc5366
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/cygwin-test.yml +9-4Lines changed: 9 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -12,10 +12,10 @@ jobs: |
12 | 12 | include: |
13 | 13 | - python-version: "3.9" |
14 | 14 | python-cygwin: python39 |
15 | | - python-command: python3.9 |
| 15 | + venv-args: '' |
16 | 16 | - python-version: "3.12" |
17 | 17 | python-cygwin: python312 |
18 | | - python-command: python3.12 |
| 18 | + venv-args: --without-pip |
19 | 19 |
|
20 | 20 | fail-fast: false |
21 | 21 |
|
|
40 | 40 | - name: Set up Cygwin |
41 | 41 | uses: egor-tensin/setup-cygwin@v4 |
42 | 42 | with: |
43 | | - packages: ${{ matrix.python-cygwin }} ${{ matrix.python-cygwin }}-pip ${{ matrix.python-cygwin }}-virtualenv git |
| 43 | + packages: ${{ matrix.python-cygwin }} ${{ matrix.python-cygwin }}-pip ${{ matrix.python-cygwin }}-virtualenv git wget |
44 | 44 |
|
45 | 45 | - name: Arrange for verbose output |
46 | 46 | run: | |
|
67 | 67 |
|
68 | 68 | - name: Set up virtualenv |
69 | 69 | run: | |
70 | | - ${{ matrix.python-command }} -m venv .venv |
| 70 | + python${{ matrix.python-version }} -m venv ${{ matrix.venv-args }} .venv |
71 | 71 | echo 'BASH_ENV=.venv/bin/activate' >>"$GITHUB_ENV" |
72 | 72 |
|
| 73 | + - name: Bootstrap pip in virtualenv |
| 74 | + if: contains(matrix.venv-args, '--without-pip') |
| 75 | + run: | |
| 76 | + wget -qO- https://bootstrap.pypa.io/get-pip.py | python |
| 77 | +
|
73 | 78 | - name: Update PyPA packages |
74 | 79 | run: | |
75 | 80 | # Get the latest pip, wheel, and prior to Python 3.12, setuptools. |
|