Skip to content

Commit d11667e

Browse files
committed
Add support for Python3.13
Signed-off-by: tdruez <tdruez@nexb.com>
1 parent ed25634 commit d11667e

9 files changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Set up Python
4040
uses: actions/setup-python@v5
4141
with:
42-
python-version: "3.12"
42+
python-version: "3.13"
4343

4444
- name: Install python-ldap OS dependencies
4545
run: |

.github/workflows/gh-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212

1313
steps:
1414
- name: Create a GitHub release
15-
uses: softprops/action-gh-release@v1
15+
uses: softprops/action-gh-release@v2
1616
with:
17+
generate_release_notes: true
1718
draft: false
19+
files: dist/*

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version: 2
88
build:
99
os: ubuntu-22.04
1010
tools:
11-
python: "3.12"
11+
python: "3.13"
1212

1313
# Optionally declare the Python requirements required to build your docs
1414
python:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# See https://aboutcode.org for more information about AboutCode FOSS projects.
77
#
88

9-
FROM python:3.12-slim
9+
FROM python:3.13-slim
1010

1111
LABEL org.opencontainers.image.source="https://github.com/aboutcode-org/dejacode"
1212
LABEL org.opencontainers.image.description="DejaCode"

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# See https://aboutcode.org for more information about AboutCode FOSS projects.
77
#
88

9-
PYTHON_EXE=python3.12
9+
PYTHON_EXE=python3.13
1010
VENV_LOCATION=.venv
1111
ACTIVATE?=. ${VENV_LOCATION}/bin/activate;
1212
MANAGE=${VENV_LOCATION}/bin/python manage.py

dejacode_toolkit/download.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# See https://aboutcode.org for more information about AboutCode FOSS projects.
77
#
88

9-
import cgi
9+
from django.utils.http import parse_header_parameters
1010
import socket
1111
from pathlib import Path
1212
from urllib.parse import unquote
@@ -55,7 +55,7 @@ def collect_package_data(url):
5555
)
5656

5757
content_disposition = response.headers.get("content-disposition", "")
58-
_, params = cgi.parse_header(content_disposition)
58+
_, params = parse_header_parameters(content_disposition)
5959

6060
filename = params.get("filename")
6161
if not filename:

docs/doc_maintenance.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ That will create a /dejacode directory in your working directory.
2828
Now you can install the dependencies in a virtualenv::
2929

3030
cd dejacode
31-
python3.12 -m venv .
31+
python3.13 -m venv .
3232
source bin/activate
3333

3434
Now you can build the HTML documents locally::

docs/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ Pre-installation Checklist
179179

180180
Before you install DejaCode, make sure you have the following prerequisites:
181181

182-
#. **Python: versions 3.12** found at https://www.python.org/downloads/
182+
#. **Python: versions 3.13** found at https://www.python.org/downloads/
183183
#. **Git**: most recent release available at https://git-scm.com/
184184
#. **PostgreSQL**: release 16 or later found at https://www.postgresql.org/ or
185185
https://postgresapp.com/ on macOS

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ classifiers =
1414
Intended Audience :: Legal Industry
1515
Programming Language :: Python
1616
Programming Language :: Python :: 3 :: Only
17-
Programming Language :: Python :: 3.12
17+
Programming Language :: Python :: 3.13
1818
Topic :: Utilities
1919
keywords =
2020
open source
@@ -41,7 +41,7 @@ license_files =
4141
NOTICE
4242

4343
[options]
44-
python_requires = >=3.12, <3.13
44+
python_requires = >=3.13, <3.14
4545
packages=find:
4646
include_package_data = true
4747
zip_safe = false

0 commit comments

Comments
 (0)