44 PKGDIR : " packages/basemap"
55 PYTHONWARNINGS : " ignore:DEPRECATION"
66 PIP_DISABLE_PIP_VERSION_CHECK : 1
7+ PIP_PREFER_BINARY : 1
78 PIP_TIMEOUT : 10
89 PIP_RETRIES : 0
910
5152 path : .
5253 -
5354 name : Set Python
54- uses : actions/setup-python@v4
55+ uses : pylegacy/ actions/setup-pyenv-win@v2
5556 with :
5657 architecture : ${{ matrix.arch }}
5758 python-version : ${{ matrix.python-version }}
6869 name : Install library requirements
6970 run : |
7071 cd ${{ env.PKGDIR }}
71- pip install --prefer-binary -r requirements.txt
72+ python -m pip install -r requirements.txt
7273 -
7374 name : Run Flake8
7475 run : |
@@ -117,7 +118,7 @@ jobs:
117118 cmake-version : " 3.14.7"
118119 -
119120 name : Set Python
120- uses : actions/setup-python@v4
121+ uses : pylegacy/ actions/setup-pyenv-win@v2
121122 with :
122123 architecture : ${{ matrix.arch }}
123124 python-version : " 3.6"
@@ -167,7 +168,7 @@ jobs:
167168 version : ${{ env.msvc-toolset }}
168169 -
169170 name : Set Python
170- uses : actions/setup-python@v4
171+ uses : pylegacy/ actions/setup-pyenv-win@v2
171172 with :
172173 architecture : ${{ matrix.arch }}
173174 python-version : ${{ matrix.python-version }}
@@ -197,9 +198,9 @@ jobs:
197198 run : |
198199 cd ${{ env.PKGDIR }}
199200 $env:GEOS_DIR = "$env:GITHUB_WORKSPACE/${{ env.PKGDIR }}/extern"
200- pip install -r requirements-setup.txt
201+ python -m pip install -r requirements-setup.txt
201202 python setup.py sdist
202- pip wheel -w dist --no-deps (Get-Item dist/*.zip)
203+ python -m pip wheel -w dist --no-deps (Get-Item dist/*.zip)
203204 -
204205 name : Upload build artifacts
205206 uses : actions/upload-artifact@v1
@@ -221,10 +222,14 @@ jobs:
221222 steps :
222223 -
223224 name : Set Python
224- uses : actions/setup-python@v4
225+ uses : pylegacy/ actions/setup-pyenv-win@v2
225226 with :
226227 architecture : ${{ matrix.arch }}
227228 python-version : ${{ matrix.python-version }}
229+ -
230+ name : Set Python base packages
231+ run : |
232+ python -m pip install --upgrade pip setuptools wheel
228233 -
229234 name : Download build artifacts
230235 uses : actions/download-artifact@v1
@@ -234,16 +239,12 @@ jobs:
234239 -
235240 name : Install package
236241 run : |
237- pip install --prefer-binary (Get-Item ${{ env.PKGDIR }}/dist/*-win*.whl)
238- # We need to skip Py311 x86 because of missing pyproj wheels.
239- if : matrix.arch != 'x86' || matrix.python-version != '3.11'
242+ python -m pip install (Get-Item ${{ env.PKGDIR }}/dist/*-win*.whl)
240243 -
241244 name : Test package
242245 run : |
243246 python -c "from mpl_toolkits.basemap import Basemap"
244247 python -c "from mpl_toolkits.basemap import cm"
245- # We need to skip Py311 x86 because of missing pyproj wheels.
246- if : matrix.arch != 'x86' || matrix.python-version != '3.11'
247248
248249 upload :
249250 strategy :
@@ -260,7 +261,7 @@ jobs:
260261 steps :
261262 -
262263 name : Set Python
263- uses : actions/setup-python@v4
264+ uses : pylegacy/ actions/setup-pyenv-win@v2
264265 with :
265266 architecture : ${{ matrix.arch }}
266267 python-version : ${{ matrix.python-version }}
@@ -271,9 +272,9 @@ jobs:
271272 name : artifacts-build-${{ matrix.arch }}-${{ matrix.python-version }}
272273 path : ${{ env.PKGDIR }}/dist
273274 -
274- name : Install requirements
275+ name : Install upload requirements
275276 run : |
276- pip install --prefer-binary twine
277+ python -m pip install twine
277278 -
278279 name : Upload distributables
279280 env :
0 commit comments