Skip to content

Commit e45649d

Browse files
authored
Merge pull request #184 from aboutcode-org/python-upgrade
Add support for Python 3.13 and 3.14
2 parents 43e8f5c + 2f16d80 commit e45649d

File tree

5 files changed

+24
-21
lines changed

5 files changed

+24
-21
lines changed

.github/workflows/docs-ci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,22 @@ name: CI Documentation
22

33
on: [push, pull_request]
44

5+
56
jobs:
67
build:
7-
runs-on: ubuntu-22.04
8+
runs-on: ubuntu-24.04
89

910
strategy:
1011
max-parallel: 4
1112
matrix:
12-
python-version: [3.9]
13+
python-version: [3.12]
1314

1415
steps:
1516
- name: Checkout code
16-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1718

1819
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v4
20+
uses: actions/setup-python@v5
2021
with:
2122
python-version: ${{ matrix.python-version }}
2223

@@ -30,5 +31,3 @@ jobs:
3031
- name: Check for documentation style errors
3132
working-directory: ./docs
3233
run: ./scripts/doc8_style_check.sh
33-
34-

.github/workflows/pypi-release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ on:
2121
jobs:
2222
build-pypi-distribs:
2323
name: Build and publish library to PyPI
24-
runs-on: ubuntu-22.04
24+
runs-on: ubuntu-24.04
2525

2626
steps:
2727
- uses: actions/checkout@v4
2828
- name: Set up Python
29-
uses: actions/setup-python@v4
29+
uses: actions/setup-python@v5
3030
with:
31-
python-version: 3.9
31+
python-version: 3.13
3232

3333
- name: Install pypa/build
3434
run: python -m pip install build --user
@@ -47,7 +47,7 @@ jobs:
4747
name: Create GH release
4848
needs:
4949
- build-pypi-distribs
50-
runs-on: ubuntu-22.04
50+
runs-on: ubuntu-24.04
5151

5252
steps:
5353
- name: Download built archives
@@ -67,7 +67,7 @@ jobs:
6767
name: Create PyPI release
6868
needs:
6969
- create-gh-release
70-
runs-on: ubuntu-22.04
70+
runs-on: ubuntu-24.04
7171

7272
steps:
7373
- name: Download built archives

azure-pipelines.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,39 +9,39 @@ jobs:
99
- template: etc/ci/azure-posix.yml
1010
parameters:
1111
job_name: ubuntu22_cpython
12-
image_name: ubuntu-22.04
13-
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
12+
image_name: ubuntu-24.04
13+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
1414
test_suites:
1515
all: venv/bin/pytest -n 2 -vvs
1616

1717
- template: etc/ci/azure-posix.yml
1818
parameters:
1919
job_name: macos13_cpython
2020
image_name: macOS-13
21-
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
21+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
2222
test_suites:
2323
all: venv/bin/pytest -n 2 -vvs
2424

2525
- template: etc/ci/azure-posix.yml
2626
parameters:
2727
job_name: macos14_cpython_arm64
2828
image_name: macOS-14
29-
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
29+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
3030
test_suites:
3131
all: venv/bin/pytest -n 2 -vvs
3232

3333
- template: etc/ci/azure-win.yml
3434
parameters:
3535
job_name: win2019_cpython
3636
image_name: windows-2019
37-
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
37+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
3838
test_suites:
3939
all: venv\Scripts\pytest -n 2 -vvs
4040

4141
- template: etc/ci/azure-win.yml
4242
parameters:
4343
job_name: win2022_cpython
4444
image_name: windows-2022
45-
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
45+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
4646
test_suites:
4747
all: venv\Scripts\pytest -n 2 -vvs

etc/scripts/utils_thirdparty.py

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

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

120120
PYTHON_DOT_VERSIONS_BY_VER = {
121121
"37": "3.7",
122122
"38": "3.8",
123123
"39": "3.9",
124124
"310": "3.10",
125+
"311": "3.11",
126+
"312": "3.12",
127+
"313": "3.13",
128+
"314": "3.14",
125129
}
126130

127131

setup.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ classifiers =
1616
Intended Audience :: Developers
1717
Programming Language :: Python :: 3
1818
Programming Language :: Python :: 3 :: Only
19-
Programming Language :: Python :: 3.8
20-
Programming Language :: Python :: 3.9
2119
Programming Language :: Python :: 3.10
2220
Programming Language :: Python :: 3.11
2321
Programming Language :: Python :: 3.12
22+
Programming Language :: Python :: 3.13
23+
Programming Language :: Python :: 3.14
2424
Topic :: Software Development
2525
Topic :: Utilities
2626

@@ -49,7 +49,7 @@ zip_safe = false
4949

5050
setup_requires = setuptools_scm[toml] >= 4
5151

52-
python_requires = >=3.8
52+
python_requires = >=3.10
5353

5454
install_requires =
5555
attrs

0 commit comments

Comments
 (0)