Skip to content

Commit fb75a2e

Browse files
Merge pull request #99 from aboutcode-org/update-python-support
Drop python3.9 support and add python 3.14
2 parents 4e5b7fd + e81ff6d commit fb75a2e

File tree

6 files changed

+17
-19
lines changed

6 files changed

+17
-19
lines changed

.github/workflows/pypi-release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ jobs:
7171
needs:
7272
- create-gh-release
7373
runs-on: ubuntu-24.04
74+
environment: pypi-publish
75+
permissions:
76+
id-token: write
7477

7578
steps:
7679
- name: Download built archives
@@ -81,6 +84,4 @@ jobs:
8184

8285
- name: Publish to PyPI
8386
if: startsWith(github.ref, 'refs/tags')
84-
uses: pypa/gh-action-pypi-publish@release/v1
85-
with:
86-
password: ${{ secrets.PYPI_API_TOKEN }}
87+
uses: pypa/gh-action-pypi-publish@release/v1

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ version: 2
99
build:
1010
os: ubuntu-22.04
1111
tools:
12-
python: "3.11"
12+
python: "3.13"
1313

1414
# Build PDF & ePub
1515
formats:

azure-pipelines.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,54 +19,54 @@ jobs:
1919
parameters:
2020
job_name: ubuntu22_cpython
2121
image_name: ubuntu-22.04
22-
python_versions: ['3.9', '3.10', '3.11', '3.12', '3.13']
22+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
2323
test_suites:
2424
all: venv/bin/pytest -n 2 -vvs
2525

2626
- template: etc/ci/azure-posix.yml
2727
parameters:
2828
job_name: ubuntu24_cpython
2929
image_name: ubuntu-24.04
30-
python_versions: ['3.9', '3.10', '3.11', '3.12', '3.13']
30+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
3131
test_suites:
3232
all: venv/bin/pytest -n 2 -vvs
3333

3434
- template: etc/ci/azure-posix.yml
3535
parameters:
3636
job_name: macos13_cpython
3737
image_name: macOS-13
38-
python_versions: ['3.9', '3.10', '3.11', '3.12', '3.13']
38+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
3939
test_suites:
4040
all: venv/bin/pytest -n 2 -vvs
4141

4242
- template: etc/ci/azure-posix.yml
4343
parameters:
4444
job_name: macos14_cpython
4545
image_name: macOS-14
46-
python_versions: ['3.9', '3.10', '3.11', '3.12', '3.13']
46+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
4747
test_suites:
4848
all: venv/bin/pytest -n 2 -vvs
4949

5050
- template: etc/ci/azure-posix.yml
5151
parameters:
5252
job_name: macos15_cpython
5353
image_name: macOS-15
54-
python_versions: ['3.9', '3.10', '3.11', '3.12', '3.13']
54+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
5555
test_suites:
5656
all: venv/bin/pytest -n 2 -vvs
5757

5858
- template: etc/ci/azure-win.yml
5959
parameters:
6060
job_name: win2022_cpython
6161
image_name: windows-2022
62-
python_versions: ['3.9', '3.10', '3.11', '3.12', '3.13']
62+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
6363
test_suites:
6464
all: venv\Scripts\pytest -n 2 -vvs
6565

6666
- template: etc/ci/azure-win.yml
6767
parameters:
6868
job_name: win2025_cpython
6969
image_name: windows-2025
70-
python_versions: ['3.9', '3.10', '3.11', '3.12', '3.13']
70+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
7171
test_suites:
7272
all: venv\Scripts\pytest -n 2 -vvs

etc/scripts/utils_thirdparty.py

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

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

120120
PYTHON_DOT_VERSIONS_BY_VER = {
121-
"39": "3.9",
122121
"310": "3.10",
123122
"311": "3.11",
124123
"312": "3.12",
125124
"313": "3.13",
125+
"314": "3.14",
126126
}
127127

128128

@@ -134,11 +134,11 @@ def get_python_dot_version(version):
134134

135135

136136
ABIS_BY_PYTHON_VERSION = {
137-
"39": ["cp39", "cp39m", "abi3"],
138137
"310": ["cp310", "cp310m", "abi3"],
139138
"311": ["cp311", "cp311m", "abi3"],
140139
"312": ["cp312", "cp312m", "abi3"],
141140
"313": ["cp313", "cp313m", "abi3"],
141+
"314": ["cp314", "cp314m", "abi3"],
142142
}
143143

144144
PLATFORMS_BY_OS = {

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools >= 50", "wheel", "setuptools_scm[toml] >= 6"]
2+
requires = ["setuptools >= 50", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55
[tool.setuptools_scm]

setup.cfg

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,14 @@ license_files =
3131
README.rst
3232

3333
[options]
34-
python_requires = >=3.9
34+
python_requires = >=3.10
3535

3636
package_dir =
3737
=src
3838
packages = find:
3939
include_package_data = true
4040
zip_safe = false
4141

42-
setup_requires = setuptools_scm[toml] >= 4
43-
44-
4542
install_requires =
4643

4744

0 commit comments

Comments
 (0)