@@ -30,14 +30,22 @@ jobs:
3030 - name : Install Cygwin
3131 uses : cygwin/cygwin-install-action@v4
3232 with :
33- packages : python39 git
33+ packages : python39 python39-pip python39-virtualenv git
3434 add-to-path : false # No need to change $PATH outside the Cygwin environment.
3535
3636 - name : Arrange for verbose output
3737 run : |
3838 # Arrange for verbose output but without shell environment setup details.
3939 echo 'set -x' >~/.bash_profile
4040
41+ - name : Add PyPI hosts file entry # NOTE: Actually edits the Windows hosts file.
42+ run : |
43+ echo '199.232.96.223 files.pythonhosted.org' >>/etc/hosts
44+
45+ - name : Show hosts file
46+ run : |
47+ cat /etc/hosts
48+
4149 - name : Special configuration for Cygwin git
4250 run : |
4351 git config --global --add safe.directory "$(pwd)"
@@ -55,14 +63,19 @@ jobs:
5563 # and cause subsequent tests to fail
5664 cat test/fixtures/.gitconfig >> ~/.gitconfig
5765
66+ - name : Ensure the "pip" command is available
67+ run : |
68+ # This is used unless, and before, an updated pip is installed.
69+ ln -s pip3 /usr/bin/pip
70+
5871 - name : Update PyPA packages
5972 run : |
6073 # Get the latest pip, wheel, and prior to Python 3.12, setuptools.
61- python -m pip install -U pip $(python -m pip freeze --all | grep -ow ^setuptools) wheel
74+ python -m pip install -U pip $(pip freeze --all | grep -ow ^setuptools) wheel
6275
6376 - name : Install project and test dependencies
6477 run : |
65- python -m pip install ".[test]"
78+ pip install ".[test]"
6679
6780 - name : Show version and platform information
6881 run : |
0 commit comments