Skip to content

Commit 42a9c58

Browse files
Bump version, update release scripts, drop py3.8
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent 20f3794 commit 42a9c58

File tree

8 files changed

+57
-77
lines changed

8 files changed

+57
-77
lines changed

.github/workflows/scancode-release.yml

Lines changed: 22 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Create ScanCode release archives, then test and publish to GH and PyPI
55
# Summary of the steps:
66
# - Build wheel and sdist for the "main" scancode, then build these for the "mini" flavor
77
# - test each wheel and sdist on every possible OS x Python version combinations
8-
# - Build release app archives, one for each of linux, windows, macos on Python 3.8
8+
# - Build release app archives, one for each of linux, windows, macos on Python 3.9 to 3.12
99
# - test each on its target OS and Python version
1010
# - Create gh-release and upload app archives to release
1111
# - Upload all wheels and sdist to PyPI
@@ -25,7 +25,7 @@ jobs:
2525
contents: read # to fetch code (actions/checkout)
2626

2727
name: Build PyPI wheels
28-
runs-on: ubuntu-22.04
28+
runs-on: ubuntu-24.04
2929

3030
defaults:
3131
run:
@@ -34,7 +34,7 @@ jobs:
3434
strategy:
3535
fail-fast: true
3636
matrix:
37-
pyver: ["3.8", "3.9", "3.10", "3.11", "3.12"]
37+
pyver: ["3.9", "3.10", "3.11", "3.12"]
3838

3939
steps:
4040
- uses: actions/checkout@v4
@@ -59,7 +59,7 @@ jobs:
5959
contents: read # to fetch code (actions/checkout)
6060

6161
name: Build PyPI sdist archives
62-
runs-on: ubuntu-22.04
62+
runs-on: ubuntu-24.04
6363

6464
defaults:
6565
run:
@@ -91,7 +91,7 @@ jobs:
9191
contents: read # to fetch code (actions/checkout)
9292

9393
name: Build app Release for linux
94-
runs-on: ubuntu-22.04
94+
runs-on: ubuntu-24.04
9595

9696
defaults:
9797
run:
@@ -100,7 +100,7 @@ jobs:
100100
strategy:
101101
fail-fast: true
102102
matrix:
103-
pyver: ["3.8", "3.9", "3.10", "3.11", "3.12"]
103+
pyver: ["3.9", "3.10", "3.11", "3.12"]
104104

105105
steps:
106106
- uses: actions/checkout@v4
@@ -125,7 +125,7 @@ jobs:
125125
contents: read # to fetch code (actions/checkout)
126126

127127
name: Build app Release for mac
128-
runs-on: ubuntu-22.04
128+
runs-on: ubuntu-24.04
129129

130130
defaults:
131131
run:
@@ -134,7 +134,7 @@ jobs:
134134
strategy:
135135
fail-fast: true
136136
matrix:
137-
pyver: ["3.8", "3.9", "3.10", "3.11", "3.12"]
137+
pyver: ["3.9", "3.10", "3.11", "3.12"]
138138

139139
steps:
140140
- uses: actions/checkout@v4
@@ -159,7 +159,7 @@ jobs:
159159
contents: read # to fetch code (actions/checkout)
160160

161161
name: Build app Release for windows
162-
runs-on: ubuntu-22.04
162+
runs-on: ubuntu-24.04
163163

164164
defaults:
165165
run:
@@ -168,7 +168,7 @@ jobs:
168168
strategy:
169169
fail-fast: true
170170
matrix:
171-
pyver: ["3.8", "3.9", "3.10", "3.11", "3.12"]
171+
pyver: ["3.9", "3.10", "3.11", "3.12"]
172172

173173
steps:
174174
- uses: actions/checkout@v4
@@ -193,7 +193,7 @@ jobs:
193193
contents: read # to fetch code (actions/checkout)
194194

195195
name: Build app source
196-
runs-on: ubuntu-22.04
196+
runs-on: ubuntu-24.04
197197

198198
defaults:
199199
run:
@@ -235,8 +235,8 @@ jobs:
235235
strategy:
236236
fail-fast: true
237237
matrix:
238-
os: [ubuntu-22.04, ubuntu-22.04, macos-12, macos-13]
239-
pyver: ["3.8", "3.9", "3.10", "3.11", "3.12"]
238+
os: [ubuntu-24.04, ubuntu-24.04, macos-12, macos-13]
239+
pyver: ["3.9", "3.10", "3.11", "3.12"]
240240

241241
steps:
242242
- uses: actions/checkout@v4
@@ -282,7 +282,7 @@ jobs:
282282
fail-fast: true
283283
matrix:
284284
os: [windows-2019, windows-2022]
285-
pyver: ["3.8", "3.9", "3.10", "3.11", "3.12"]
285+
pyver: ["3.9", "3.10", "3.11", "3.12"]
286286

287287
steps:
288288
- uses: actions/checkout@v4
@@ -326,8 +326,8 @@ jobs:
326326
strategy:
327327
fail-fast: true
328328
matrix:
329-
os: [ubuntu-22.04, ubuntu-22.04]
330-
pyver: ["3.8", "3.9", "3.10", "3.11", "3.12"]
329+
os: [ubuntu-24.04, ubuntu-24.04]
330+
pyver: ["3.9", "3.10", "3.11", "3.12"]
331331

332332
steps:
333333
- uses: actions/checkout@v4
@@ -368,7 +368,7 @@ jobs:
368368
fail-fast: true
369369
matrix:
370370
os: [macos-12, macos-13]
371-
pyver: ["3.8", "3.9", "3.10", "3.11", "3.12"]
371+
pyver: ["3.9", "3.10", "3.11", "3.12"]
372372

373373
steps:
374374
- uses: actions/checkout@v4
@@ -409,7 +409,7 @@ jobs:
409409
fail-fast: true
410410
matrix:
411411
os: [windows-2019, windows-2022]
412-
pyver: ["3.8", "3.9", "3.10", "3.11", "3.12"]
412+
pyver: ["3.9", "3.10", "3.11", "3.12"]
413413

414414
steps:
415415
- uses: actions/checkout@v4
@@ -443,7 +443,7 @@ jobs:
443443
- build_scancode_for_release_linux
444444
- build_scancode_for_release_macos
445445

446-
runs-on: ubuntu-22.04
446+
runs-on: ubuntu-24.04
447447
defaults:
448448
run:
449449
shell: bash
@@ -457,12 +457,6 @@ jobs:
457457
name: source_app
458458
path: dist
459459

460-
- name: Download a single artifact macos_app for python 3.8
461-
uses: actions/download-artifact@v3
462-
with:
463-
name: macos_app_py_3.8
464-
path: dist
465-
466460
- name: Download a single artifact macos_app for python 3.9
467461
uses: actions/download-artifact@v3
468462
with:
@@ -487,12 +481,6 @@ jobs:
487481
name: macos_app_py_3.12
488482
path: dist
489483

490-
- name: Download a single artifact linux_app for python 3.8
491-
uses: actions/download-artifact@v3
492-
with:
493-
name: linux_app_py_3.8
494-
path: dist
495-
496484
- name: Download a single artifact linux_app for python 3.9
497485
uses: actions/download-artifact@v3
498486
with:
@@ -517,12 +505,6 @@ jobs:
517505
name: linux_app_py_3.12
518506
path: dist
519507

520-
- name: Download a single artifact windows_app for python 3.8
521-
uses: actions/download-artifact@v3
522-
with:
523-
name: windows_app_py_3.8
524-
path: dist
525-
526508
- name: Download a single artifact windows_app for python 3.9
527509
uses: actions/download-artifact@v3
528510
with:
@@ -566,20 +548,20 @@ jobs:
566548
- smoke_test_install_and_run_pypi_wheels_on_windows
567549
- smoke_test_install_and_run_pypi_wheels_on_posix
568550
- publish_to_gh_release
569-
runs-on: ubuntu-22.04
551+
runs-on: ubuntu-24.04
570552
defaults:
571553
run:
572554
shell: bash
573555
strategy:
574556
fail-fast: true
575557
matrix:
576-
dist_names: ["wheels-3.8", "wheels-3.9", "wheels-3.10", "wheels-3.11", "wheels-3.12", sdists]
558+
dist_names: ["wheels-3.9", "wheels-3.10", "wheels-3.11", "wheels-3.12", sdists]
577559

578560
steps:
579561
- name: Set up Python
580562
uses: actions/setup-python@v4
581563
with:
582-
python-version: 3.8
564+
python-version: 3.9
583565

584566
- name: Download a single artifact
585567
uses: actions/download-artifact@v3

INSTALL.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ Prerequisites
1616
-------------
1717

1818
Before installing ScanCode make sure you have installed these prerequisites.
19-
The main one is to have Python installed version 3.8, 3.9, 3.10, 3.11 or 3.12
19+
The main one is to have Python installed version 3.9, 3.10, 3.11 or 3.12
2020

21-
- For Linux(Ubuntu): ``sudo apt install python3.8-dev bzip2 xz-utils zlib1g libxml2-dev libxslt1-dev``
21+
- For Linux(Ubuntu): ``sudo apt install python3.9-dev bzip2 xz-utils zlib1g libxml2-dev libxslt1-dev``
2222
- For MacOS: Install Python 3.x from https://www.python.org/
2323
- For Windows: Install Python 3.x from https://www.python.org/ using the 64 bits amd64 variant
2424
- For FreeBSD: (this needs to be documented)

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,15 @@ Installation
139139
============
140140

141141
Before installing ScanCode make sure that you have installed the prerequisites
142-
properly. This means installing Python 3.8 for x86/64 architectures.
143-
We support Python 3.8, 3.9, 3.10, 3.11 and 3.12.
142+
properly. This means installing Python 3.9 for x86/64 architectures.
143+
We support Python 3.9, 3.10, 3.11 and 3.12.
144144

145145
See `prerequisites <https://scancode-toolkit.readthedocs.io/en/latest/getting-started/install.html#prerequisites>`_
146146
for detailed information on the support platforms and Python versions.
147147

148148
There are a few common ways to `install ScanCode <https://scancode-toolkit.readthedocs.io/en/latest/getting-started/install.html>`_.
149149

150-
- `**Installation as an application: Install Python 3.8, download a release archive, extract and run**.
150+
- `**Installation as an application: Install Python 3.9, download a release archive, extract and run**.
151151
<https://scancode-toolkit.readthedocs.io/en/latest/getting-started/install.html#installation-as-an-application-downloading-releases>`_
152152
This is the recommended installation method.
153153

azure-pipelines.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123
job_name: ubuntu20_cpython
124124
image_name: ubuntu-20.04
125125
python_architecture: x64
126-
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
126+
python_versions: ['3.9', '3.10', '3.11', '3.12']
127127
test_suites:
128128
all: venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py --reruns 2
129129

@@ -132,15 +132,15 @@ jobs:
132132
job_name: ubuntu22_cpython
133133
image_name: ubuntu-22.04
134134
python_architecture: x64
135-
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
135+
python_versions: ['3.9', '3.10', '3.11', '3.12']
136136
test_suites:
137137
all: venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py --reruns 2
138138

139139
- template: etc/ci/azure-posix.yml
140140
parameters:
141141
job_name: macos12_cpython
142142
image_name: macOS-12
143-
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
143+
python_versions: ['3.9', '3.10', '3.11', '3.12']
144144
python_architecture: x64
145145
test_suites:
146146
all: venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py --reruns 2
@@ -149,15 +149,15 @@ jobs:
149149
parameters:
150150
job_name: macos13_cpython
151151
image_name: macOS-13
152-
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
152+
python_versions: ['3.9', '3.10', '3.11', '3.12']
153153
test_suites:
154154
all: venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py --reruns 2
155155

156156
- template: etc/ci/azure-win.yml
157157
parameters:
158158
job_name: win2019_cpython_1
159159
image_name: windows-2019
160-
python_versions: ['3.8']
160+
python_versions: ['3.9']
161161
python_architecture: x64
162162
test_suites:
163163
all: venv\Scripts\pytest -n 2 -vvs tests\scancode\test_cli.py --reruns 2
@@ -167,15 +167,15 @@ jobs:
167167
job_name: win2022_cpython
168168
image_name: windows-2022
169169
python_architecture: x64
170-
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
170+
python_versions: ['3.9', '3.10', '3.11', '3.12']
171171
test_suites:
172172
all: venv\Scripts\pytest -n 2 -vvs tests\scancode\test_cli.py --reruns 2
173173

174174
- template: etc/ci/azure-win.yml
175175
parameters:
176176
job_name: win2022_cpython_1
177177
image_name: windows-2022
178-
python_versions: ['3.8']
178+
python_versions: ['3.9']
179179
python_architecture: x64
180180
test_suites:
181181
all: venv\Scripts\pytest -n 2 -vvs tests\scancode\test_cli.py --reruns 2
@@ -184,7 +184,7 @@ jobs:
184184
parameters:
185185
job_name: win2022_cpython_2
186186
image_name: windows-2022
187-
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
187+
python_versions: ['3.9', '3.10', '3.11', '3.12']
188188
python_architecture: x64
189189
test_suites:
190190
all: venv\Scripts\pytest -n 2 -vvs tests\scancode\test_cli.py --reruns 2
@@ -199,7 +199,7 @@ jobs:
199199
parameters:
200200
job_name: ubuntu20_test_all_supported_click_versions
201201
image_name: ubuntu-20.04
202-
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
202+
python_versions: ['3.9', '3.10', '3.11', '3.12']
203203
python_architecture: x64
204204
test_suites:
205205
click_versions: |
@@ -219,47 +219,47 @@ jobs:
219219
parameters:
220220
job_name: ubuntu22_cpython_latest_from_pip
221221
image_name: ubuntu-22.04
222-
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
222+
python_versions: ['3.9', '3.10', '3.11', '3.12']
223223
test_suites:
224224
all: venv/bin/pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[testing] && venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py
225225

226226
- template: etc/ci/azure-posix.yml
227227
parameters:
228228
job_name: ubuntu20_cpython_latest_from_pip
229229
image_name: ubuntu-20.04
230-
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
230+
python_versions: ['3.9', '3.10', '3.11', '3.12']
231231
test_suites:
232232
all: venv/bin/pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[testing] && venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py
233233

234234
- template: etc/ci/azure-posix.yml
235235
parameters:
236236
job_name: macos12_cpython_latest_from_pip
237237
image_name: macos-12
238-
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
238+
python_versions: ['3.9', '3.10', '3.11', '3.12']
239239
test_suites:
240240
all: venv/bin/pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[testing] && venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py
241241

242242
- template: etc/ci/azure-posix.yml
243243
parameters:
244244
job_name: macos13_cpython_latest_from_pip
245245
image_name: macos-13
246-
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
246+
python_versions: ['3.9', '3.10', '3.11', '3.12']
247247
test_suites:
248248
all: venv/bin/pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[testing] && venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py
249249

250250
- template: etc/ci/azure-win.yml
251251
parameters:
252252
job_name: win2019_cpython_latest_from_pip
253253
image_name: windows-2019
254-
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
254+
python_versions: ['3.9', '3.10', '3.11', '3.12']
255255
test_suites:
256256
all: venv\Scripts\pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[testing] && venv\Scripts\pytest -n 2 -vvs tests\scancode\test_cli.py
257257

258258
- template: etc/ci/azure-win.yml
259259
parameters:
260260
job_name: win2022_cpython_latest_from_pip
261261
image_name: windows-2022
262-
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
262+
python_versions: ['3.9', '3.10', '3.11', '3.12']
263263
test_suites:
264264
all: venv\Scripts\pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[testing] && venv\Scripts\pytest -n 2 -vvs tests\scancode\test_cli.py
265265

docs/source/contribute/contrib_dev.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ recursive dependencies.
186186

187187
There are utility scripts in ``etc/release`` that can help with the dependencies
188188
management process in particular to build or update wheels with native code for
189-
multiple OSes (Linux, macOS and Windows) and multiple Python versions (3.8+),
189+
multiple OSes (Linux, macOS and Windows) and multiple Python versions (3.9+),
190190
which is not a completely simple operation (and requires eventually 12 wheels
191191
and one source distribution to be published as we support 3 OSes and 5 Python
192192
versions).

0 commit comments

Comments
 (0)