4
4
PKGDIR : " packages/basemap"
5
5
PYTHONWARNINGS : " ignore:DEPRECATION"
6
6
PIP_DISABLE_PIP_VERSION_CHECK : 1
7
+ PIP_PREFER_BINARY : 1
7
8
PIP_TIMEOUT : 10
8
9
PIP_RETRIES : 0
9
10
51
52
path : .
52
53
-
53
54
name : Set Python
54
- uses : actions/setup-python@v4
55
+ uses : pylegacy/ actions/setup-pyenv-win@v2
55
56
with :
56
57
architecture : ${{ matrix.arch }}
57
58
python-version : ${{ matrix.python-version }}
68
69
name : Install library requirements
69
70
run : |
70
71
cd ${{ env.PKGDIR }}
71
- pip install --prefer-binary -r requirements.txt
72
+ python -m pip install -r requirements.txt
72
73
-
73
74
name : Run Flake8
74
75
run : |
@@ -117,7 +118,7 @@ jobs:
117
118
cmake-version : " 3.14.7"
118
119
-
119
120
name : Set Python
120
- uses : actions/setup-python@v4
121
+ uses : pylegacy/ actions/setup-pyenv-win@v2
121
122
with :
122
123
architecture : ${{ matrix.arch }}
123
124
python-version : " 3.6"
@@ -167,7 +168,7 @@ jobs:
167
168
version : ${{ env.msvc-toolset }}
168
169
-
169
170
name : Set Python
170
- uses : actions/setup-python@v4
171
+ uses : pylegacy/ actions/setup-pyenv-win@v2
171
172
with :
172
173
architecture : ${{ matrix.arch }}
173
174
python-version : ${{ matrix.python-version }}
@@ -197,9 +198,9 @@ jobs:
197
198
run : |
198
199
cd ${{ env.PKGDIR }}
199
200
$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
201
202
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)
203
204
-
204
205
name : Upload build artifacts
205
206
uses : actions/upload-artifact@v1
@@ -221,10 +222,14 @@ jobs:
221
222
steps :
222
223
-
223
224
name : Set Python
224
- uses : actions/setup-python@v4
225
+ uses : pylegacy/ actions/setup-pyenv-win@v2
225
226
with :
226
227
architecture : ${{ matrix.arch }}
227
228
python-version : ${{ matrix.python-version }}
229
+ -
230
+ name : Set Python base packages
231
+ run : |
232
+ python -m pip install --upgrade pip setuptools wheel
228
233
-
229
234
name : Download build artifacts
230
235
uses : actions/download-artifact@v1
@@ -234,16 +239,12 @@ jobs:
234
239
-
235
240
name : Install package
236
241
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)
240
243
-
241
244
name : Test package
242
245
run : |
243
246
python -c "from mpl_toolkits.basemap import Basemap"
244
247
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'
247
248
248
249
upload :
249
250
strategy :
@@ -260,7 +261,7 @@ jobs:
260
261
steps :
261
262
-
262
263
name : Set Python
263
- uses : actions/setup-python@v4
264
+ uses : pylegacy/ actions/setup-pyenv-win@v2
264
265
with :
265
266
architecture : ${{ matrix.arch }}
266
267
python-version : ${{ matrix.python-version }}
@@ -271,9 +272,9 @@ jobs:
271
272
name : artifacts-build-${{ matrix.arch }}-${{ matrix.python-version }}
272
273
path : ${{ env.PKGDIR }}/dist
273
274
-
274
- name : Install requirements
275
+ name : Install upload requirements
275
276
run : |
276
- pip install --prefer-binary twine
277
+ python -m pip install twine
277
278
-
278
279
name : Upload distributables
279
280
env :
0 commit comments