Skip to content

Commit 46c439b

Browse files
authored
Merge pull request #2053 from EliahKagan/cygwin-wheel-packages
Fix Cygwin installation on CI for `pip`
2 parents d885bea + 8e24edf commit 46c439b

File tree

4 files changed

+7
-22
lines changed

4 files changed

+7
-22
lines changed

.github/workflows/alpine-test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,12 @@ jobs:
4747
# and cause subsequent tests to fail
4848
cat test/fixtures/.gitconfig >> ~/.gitconfig
4949
50-
- name: Set up virtualenv
50+
- name: Set up virtual environment
5151
run: |
5252
python -m venv .venv
5353
5454
- name: Update PyPA packages
5555
run: |
56-
# Get the latest pip, wheel, and prior to Python 3.12, setuptools.
5756
. .venv/bin/activate
5857
python -m pip install -U pip 'setuptools; python_version<"3.12"' wheel
5958

.github/workflows/cygwin-test.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ permissions:
77

88
jobs:
99
test:
10-
runs-on: windows-latest
11-
1210
strategy:
1311
matrix:
1412
selection: [fast, perf]
@@ -20,6 +18,8 @@ jobs:
2018

2119
fail-fast: false
2220

21+
runs-on: windows-latest
22+
2323
env:
2424
CHERE_INVOKING: "1"
2525
CYGWIN_NOWINPATH: "1"
@@ -32,7 +32,7 @@ jobs:
3232
- name: Force LF line endings
3333
run: |
3434
git config --global core.autocrlf false # Affects the non-Cygwin git.
35-
shell: bash # Use Git Bash instead of Cygwin Bash for this step.
35+
shell: pwsh # Do this outside Cygwin, to affect actions/checkout.
3636

3737
- uses: actions/checkout@v4
3838
with:
@@ -41,7 +41,7 @@ jobs:
4141
- name: Install Cygwin
4242
uses: cygwin/cygwin-install-action@v5
4343
with:
44-
packages: python39 python39-pip python39-virtualenv git wget
44+
packages: git python39 python-pip-wheel python-setuptools-wheel python-wheel-wheel
4545
add-to-path: false # No need to change $PATH outside the Cygwin environment.
4646

4747
- name: Arrange for verbose output
@@ -67,18 +67,13 @@ jobs:
6767
# and cause subsequent tests to fail
6868
cat test/fixtures/.gitconfig >> ~/.gitconfig
6969
70-
- name: Set up virtualenv
70+
- name: Set up virtual environment
7171
run: |
72-
python3.9 -m venv --without-pip .venv
72+
python3.9 -m venv .venv
7373
echo 'BASH_ENV=.venv/bin/activate' >>"$GITHUB_ENV"
7474
75-
- name: Bootstrap pip in virtualenv
76-
run: |
77-
wget -qO- https://bootstrap.pypa.io/get-pip.py | python
78-
7975
- name: Update PyPA packages
8076
run: |
81-
# Get the latest pip, wheel, and prior to Python 3.12, setuptools.
8277
python -m pip install -U pip 'setuptools; python_version<"3.12"' wheel
8378
8479
- name: Install project and test dependencies

.github/workflows/pythonpackage.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ jobs:
7171
7272
- name: Update PyPA packages
7373
run: |
74-
# Get the latest pip, wheel, and prior to Python 3.12, setuptools.
7574
python -m pip install -U pip 'setuptools; python_version<"3.12"' wheel
7675
7776
- name: Install project and test dependencies

test/test_installation.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,11 @@
44
import ast
55
import os
66
import subprocess
7-
import sys
8-
9-
import pytest
107

118
from test.lib import TestBase, VirtualEnvironment, with_rw_directory
129

1310

1411
class TestInstallation(TestBase):
15-
@pytest.mark.xfail(
16-
sys.platform == "cygwin" and "CI" in os.environ,
17-
reason="Trouble with pip on Cygwin CI, see issue #2004",
18-
raises=subprocess.CalledProcessError,
19-
)
2012
@with_rw_directory
2113
def test_installation(self, rw_dir):
2214
venv = self._set_up_venv(rw_dir)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy