Skip to content

Commit 9db75af

Browse files
committed
COMP: Install newer Python for cookiecutter testing
CI failing with: Collecting cookiecutter Downloading https://files.pythonhosted.org/packages/95/83/83ebf950ec99b02c61719ccb116462844ba2e873df7c4d40afc962494312/cookiecutter-1.7.2-py2.py3-none-any.whl Collecting click>=7.0 (from cookiecutter) Downloading https://files.pythonhosted.org/packages/d2/3d/fa76db83bf75c4f8d338c2fd15c8d33fdd7ad23a9b5e57eb6c5de26b430e/click-7.1.2-py2.py3-none-any.whl (82kB) Collecting jinja2-time>=0.2.0 (from cookiecutter) Downloading https://files.pythonhosted.org/packages/6a/a1/d44fa38306ffa34a7e1af09632b158e13ec89670ce491f8a15af3ebcb4e4/jinja2_time-0.2.0-py2.py3-none-any.whl Collecting python-slugify>=4.0.0 (from cookiecutter) Downloading https://files.pythonhosted.org/packages/9f/42/e336f96a8b6007428df772d0d159b8eee9b2f1811593a4931150660402c0/python-slugify-4.0.1.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named setuptools
1 parent d23eaee commit 9db75af

File tree

2 files changed

+23
-8
lines changed

2 files changed

+23
-8
lines changed

.github/workflows/build-test-package.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929
steps:
3030
- uses: actions/checkout@v1
3131

32-
- name: Set up Python 3.7
33-
uses: actions/setup-python@v1
32+
- name: Set up Python 3.8
33+
uses: actions/setup-python@v2
3434
with:
35-
python-version: 3.7
35+
python-version: 3.8
3636

3737
- name: Install build dependencies
3838
run: |
@@ -137,7 +137,7 @@ jobs:
137137
shell: cmd
138138

139139
build-linux-python-packages:
140-
runs-on: ubuntu-18.04
140+
runs-on: ubuntu-20.04
141141
strategy:
142142
max-parallel: 2
143143
matrix:
@@ -157,6 +157,11 @@ jobs:
157157
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
158158
df -h
159159
160+
- name: Set up Python 3.8
161+
uses: actions/setup-python@v2
162+
with:
163+
python-version: 3.8
164+
160165
- name: Evaluate template
161166
shell: bash
162167
run: |
@@ -204,6 +209,11 @@ jobs:
204209
curl -L https://raw.githubusercontent.com/InsightSoftwareConsortium/ITKPythonPackage/master/scripts/macpython-download-cache-and-build-module-wheels.sh -O
205210
chmod u+x macpython-download-cache-and-build-module-wheels.sh
206211
212+
- name: Set up Python 3.8
213+
uses: actions/setup-python@v2
214+
with:
215+
python-version: 3.8
216+
207217
- name: Evaluate template
208218
shell: bash
209219
run: |
@@ -249,6 +259,11 @@ jobs:
249259
- name: Get specific version of CMake, Ninja
250260
uses: lukka/[email protected]
251261

262+
- name: Set up Python 3.8
263+
uses: actions/setup-python@v2
264+
with:
265+
python-version: 3.8
266+
252267
- name: Evaluate template
253268
shell: bash
254269
run: |

{{cookiecutter.project_name}}/.github/workflows/build-test-package.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929
steps:
3030
- uses: actions/checkout@v1
3131

32-
- name: Set up Python 3.7
33-
uses: actions/setup-python@v1
32+
- name: Set up Python 3.8
33+
uses: actions/setup-python@v2
3434
with:
35-
python-version: 3.7
35+
python-version: 3.8
3636

3737
- name: Install build dependencies
3838
run: |
@@ -130,7 +130,7 @@ jobs:
130130
shell: cmd
131131

132132
build-linux-python-packages:
133-
runs-on: ubuntu-18.04
133+
runs-on: ubuntu-20.04
134134
strategy:
135135
max-parallel: 2
136136
matrix:

0 commit comments

Comments
 (0)