Skip to content

Commit 53453db

Browse files
Add python3.14 to test support
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent 930e30e commit 53453db

File tree

9 files changed

+58
-35
lines changed

9 files changed

+58
-35
lines changed

.github/workflows/docs-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
max-parallel: 4
1414
matrix:
15-
python-version: [3.13]
15+
python-version: [3.14]
1616

1717
steps:
1818
- name: Checkout code

.github/workflows/scancode-release.yml

Lines changed: 34 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
strategy:
3535
fail-fast: true
3636
matrix:
37-
pyver: ["3.10", "3.11", "3.12", "3.13"]
37+
pyver: ["3.10", "3.11", "3.12", "3.13", "3.14"]
3838

3939
steps:
4040
- uses: actions/checkout@v4
@@ -74,7 +74,7 @@ jobs:
7474
- name: Set up Python
7575
uses: actions/setup-python@v5
7676
with:
77-
python-version: "3.13"
77+
python-version: "3.14"
7878

7979
- name: Install requirements then build main and mini sdist
8080
run: etc/release/scancode-create-pypi-sdist.sh
@@ -100,7 +100,7 @@ jobs:
100100
strategy:
101101
fail-fast: true
102102
matrix:
103-
pyver: ["3.10", "3.11", "3.12", "3.13"]
103+
pyver: ["3.10", "3.11", "3.12", "3.13", "3.14"]
104104

105105
steps:
106106
- uses: actions/checkout@v4
@@ -135,7 +135,7 @@ jobs:
135135
strategy:
136136
fail-fast: true
137137
matrix:
138-
pyver: ["3.10", "3.11", "3.12", "3.13"]
138+
pyver: ["3.10", "3.11", "3.12", "3.13", "3.14"]
139139

140140
steps:
141141
- uses: actions/checkout@v4
@@ -170,7 +170,7 @@ jobs:
170170
strategy:
171171
fail-fast: true
172172
matrix:
173-
pyver: ["3.10", "3.11", "3.12", "3.13"]
173+
pyver: ["3.10", "3.11", "3.12", "3.13", "3.14"]
174174

175175
steps:
176176
- uses: actions/checkout@v4
@@ -211,7 +211,7 @@ jobs:
211211
- name: Set up Python
212212
uses: actions/setup-python@v5
213213
with:
214-
python-version: "3.13"
214+
python-version: "3.14"
215215

216216
- name: Build source archive with deps
217217
run: etc/release/scancode-create-release-app-sources.sh
@@ -240,7 +240,7 @@ jobs:
240240
fail-fast: true
241241
matrix:
242242
os: [ubuntu-24.04, ubuntu-24.04, macos-13, macos-14]
243-
pyver: ["3.10", "3.11", "3.12", "3.13"]
243+
pyver: ["3.10", "3.11", "3.12", "3.13", "3.14"]
244244

245245
steps:
246246
- uses: actions/checkout@v4
@@ -286,7 +286,7 @@ jobs:
286286
fail-fast: true
287287
matrix:
288288
os: [windows-2025, windows-2022]
289-
pyver: ["3.10", "3.11", "3.12", "3.13"]
289+
pyver: ["3.10", "3.11", "3.12", "3.13", "3.14"]
290290

291291
steps:
292292
- uses: actions/checkout@v4
@@ -331,7 +331,7 @@ jobs:
331331
fail-fast: true
332332
matrix:
333333
os: [ubuntu-24.04, ubuntu-24.04]
334-
pyver: ["3.10", "3.11", "3.12", "3.13"]
334+
pyver: ["3.10", "3.11", "3.12", "3.13", "3.14"]
335335

336336
steps:
337337
- uses: actions/checkout@v4
@@ -376,7 +376,7 @@ jobs:
376376
fail-fast: true
377377
matrix:
378378
os: [macos-13, macos-14]
379-
pyver: ["3.10", "3.11", "3.12", "3.13"]
379+
pyver: ["3.10", "3.11", "3.12", "3.13", "3.14"]
380380

381381
steps:
382382
- uses: actions/checkout@v4
@@ -421,7 +421,7 @@ jobs:
421421
fail-fast: true
422422
matrix:
423423
os: [windows-2025, windows-2022]
424-
pyver: ["3.10", "3.11", "3.12", "3.13"]
424+
pyver: ["3.10", "3.11", "3.12", "3.13", "3.14"]
425425

426426
steps:
427427
- uses: actions/checkout@v4
@@ -493,6 +493,12 @@ jobs:
493493
name: macos_app_py_3.13
494494
path: dist
495495

496+
- name: Download a single artifact macos_app for python 3.14
497+
uses: actions/download-artifact@v4
498+
with:
499+
name: macos_app_py_3.14
500+
path: dist
501+
496502
- name: Download a single artifact linux_app for python 3.10
497503
uses: actions/download-artifact@v4
498504
with:
@@ -517,6 +523,12 @@ jobs:
517523
name: linux_app_py_3.13
518524
path: dist
519525

526+
- name: Download a single artifact linux_app for python 3.14
527+
uses: actions/download-artifact@v4
528+
with:
529+
name: linux_app_py_3.14
530+
path: dist
531+
520532
- name: Download a single artifact windows_app for python 3.10
521533
uses: actions/download-artifact@v4
522534
with:
@@ -541,6 +553,12 @@ jobs:
541553
name: windows_app_py_3.13
542554
path: dist
543555

556+
- name: Download a single artifact windows_app for python 3.14
557+
uses: actions/download-artifact@v4
558+
with:
559+
name: windows_app_py_3.14
560+
path: dist
561+
544562
- name: Mock GH release
545563
run: |
546564
ls -al dist
@@ -561,19 +579,22 @@ jobs:
561579
- smoke_test_install_and_run_pypi_wheels_on_posix
562580
- publish_to_gh_release
563581
runs-on: ubuntu-24.04
582+
environment: pypi-publish
583+
permissions:
584+
id-token: write
564585
defaults:
565586
run:
566587
shell: bash
567588
strategy:
568589
fail-fast: false
569590
matrix:
570-
dist_names: ["wheels-3.10", "wheels-3.11", "wheels-3.12", "wheels-3.13", sdists]
591+
dist_names: ["wheels-3.10", "wheels-3.11", "wheels-3.12", "wheels-3.13", "wheels-3.13", "sdists"]
571592

572593
steps:
573594
- name: Set up Python
574595
uses: actions/setup-python@v5
575596
with:
576-
python-version: 3.13
597+
python-version: 3.14
577598

578599
- name: Download a single artifact
579600
uses: actions/download-artifact@v4
@@ -587,5 +608,3 @@ jobs:
587608
588609
- name: Publish distributions to PyPI
589610
uses: pypa/gh-action-pypi-publish@release/v1
590-
with:
591-
password: ${{ secrets.PYPI_API_TOKEN }}

INSTALL.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ 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.10, 3.11, 3.12 or 3.13.
19+
The main one is to have Python installed version 3.10, 3.11, 3.12, 3.13 or 3.14.
2020

2121
- For Linux(Ubuntu):
2222
``sudo apt install python3.10-dev bzip2 xz-utils zlib1g libxml2-dev libxslt1-dev``

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.13 for x86/64 architectures.
143-
We support Python 3.10, 3.11, 3.12 and 3.13.
142+
properly. This means installing Python 3.14 for x86/64 architectures.
143+
We support Python 3.10, 3.11, 3.12, 3.13 and 3.14.
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.13, download a release archive, extract and run**.
150+
- `**Installation as an application: Install Python 3.14, 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: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
parameters:
1616
job_name: core_tests
1717
image_name: ubuntu-24.04
18-
python_versions: ['3.13']
18+
python_versions: ['3.14']
1919
test_suites:
2020
misc_and_scancode: |
2121
# cli tests are launched below on all OSes
@@ -123,7 +123,7 @@ jobs:
123123
job_name: ubuntu24_cpython
124124
image_name: ubuntu-24.04
125125
python_architecture: x64
126-
python_versions: ['3.10', '3.11', '3.12', '3.13']
126+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
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.10', '3.11', '3.12', '3.13']
135+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
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: macos14_cpython
142142
image_name: macOS-14
143-
python_versions: ['3.10', '3.11', '3.12', '3.13']
143+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
144144
python_architecture: x64
145145
test_suites:
146146
all: venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py --reruns 2
@@ -149,7 +149,7 @@ jobs:
149149
parameters:
150150
job_name: macos13_cpython
151151
image_name: macOS-13
152-
python_versions: ['3.10', '3.11', '3.12', '3.13']
152+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
153153
test_suites:
154154
all: venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py --reruns 2
155155

@@ -167,7 +167,7 @@ jobs:
167167
job_name: win2022_cpython
168168
image_name: windows-2022
169169
python_architecture: x64
170-
python_versions: ['3.10', '3.11', '3.12', '3.13']
170+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
171171
test_suites:
172172
all: venv\Scripts\pytest -n 2 -vvs tests\scancode\test_cli.py --reruns 2
173173

@@ -180,7 +180,7 @@ jobs:
180180
parameters:
181181
job_name: ubuntu22_test_all_supported_click_versions
182182
image_name: ubuntu-22.04
183-
python_versions: ['3.10', '3.11', '3.12', '3.13']
183+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
184184
python_architecture: x64
185185
test_suites:
186186
click_versions: |
@@ -200,47 +200,47 @@ jobs:
200200
parameters:
201201
job_name: ubuntu22_cpython_latest_from_pip
202202
image_name: ubuntu-22.04
203-
python_versions: ['3.10', '3.11', '3.12', '3.13']
203+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
204204
test_suites:
205205
all: venv/bin/pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[testing] && venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py
206206

207207
- template: etc/ci/azure-posix.yml
208208
parameters:
209209
job_name: ubuntu24_cpython_latest_from_pip
210210
image_name: ubuntu-24.04
211-
python_versions: ['3.10', '3.11', '3.12', '3.13']
211+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
212212
test_suites:
213213
all: venv/bin/pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[testing] && venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py
214214

215215
- template: etc/ci/azure-posix.yml
216216
parameters:
217217
job_name: macos14_cpython_latest_from_pip
218218
image_name: macos-14
219-
python_versions: ['3.10', '3.11', '3.12', '3.13']
219+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
220220
test_suites:
221221
all: venv/bin/pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[testing] && venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py
222222

223223
- template: etc/ci/azure-posix.yml
224224
parameters:
225225
job_name: macos13_cpython_latest_from_pip
226226
image_name: macos-13
227-
python_versions: ['3.10', '3.11', '3.12', '3.13']
227+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
228228
test_suites:
229229
all: venv/bin/pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[testing] && venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py
230230

231231
- template: etc/ci/azure-win.yml
232232
parameters:
233233
job_name: win2019_cpython_latest_from_pip
234234
image_name: windows-2025
235-
python_versions: ['3.10', '3.11', '3.12', '3.13']
235+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
236236
test_suites:
237237
all: venv\Scripts\pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[testing] && venv\Scripts\pytest -n 2 -vvs tests\scancode\test_cli.py
238238

239239
- template: etc/ci/azure-win.yml
240240
parameters:
241241
job_name: win2022_cpython_latest_from_pip
242242
image_name: windows-2022
243-
python_versions: ['3.10', '3.11', '3.12', '3.13']
243+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
244244
test_suites:
245245
all: venv\Scripts\pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[testing] && venv\Scripts\pytest -n 2 -vvs tests\scancode\test_cli.py
246246

docs/source/getting-started/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ For advanced usage and experienced users, you can also use any of these mode:
4444
Before Installing
4545
-----------------
4646

47-
- ScanCode requires a Python version between 3.10 to 3.13 and is
47+
- ScanCode requires a Python version between 3.10 to 3.14 and is
4848
tested on Linux, macOS, and Windows. It should work fine on FreeBSD.
4949

5050
.. _system_requirements:

etc/scripts/utils_thirdparty.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,14 @@
115115
TRACE_ULTRA_DEEP = False
116116

117117
# Supported environments
118-
PYTHON_VERSIONS = "310", "311", "312", "313"
118+
PYTHON_VERSIONS = "310", "311", "312", "313", "314"
119119

120120
PYTHON_DOT_VERSIONS_BY_VER = {
121121
"310": "3.10",
122122
"311": "3.11",
123123
"312": "3.12",
124124
"313": "3.13",
125+
"314": "3.14",
125126
}
126127

127128

@@ -138,6 +139,7 @@ def get_python_dot_version(version):
138139
"311": ["cp311", "cp311m", "abi3"],
139140
"312": ["cp312", "cp312m", "abi3"],
140141
"313": ["cp313", "cp313m", "abi3"],
142+
"314": ["cp314", "cp314m", "abi3"],
141143
}
142144

143145
PLATFORMS_BY_OS = {

setup-mini.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ classifiers =
2121
Programming Language :: Python :: 3.11
2222
Programming Language :: Python :: 3.12
2323
Programming Language :: Python :: 3.13
24+
Programming Language :: Python :: 3.14
2425
Topic :: Software Development
2526
Topic :: Utilities
2627

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ classifiers =
2121
Programming Language :: Python :: 3.11
2222
Programming Language :: Python :: 3.12
2323
Programming Language :: Python :: 3.13
24+
Programming Language :: Python :: 3.14
2425
Topic :: Software Development
2526
Topic :: Utilities
2627

0 commit comments

Comments
 (0)