Skip to content

[deps] Add Django 5.x & Python 3.11-3.13 support, drop Django 3.2/Python 3.8 #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 28 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,49 @@ jobs:

build:
name: Python==${{ matrix.python-version }} | ${{ matrix.django-version }}
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04

strategy:
fail-fast: false
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
django-version:
- django~=3.2.0
- django~=4.1.0
- django~=4.2.0
- django~=5.1.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- django~=5.2.0
exclude:
# Django 5.1+ requires Python >=3.10
- python-version: "3.9"
django-version: django~=5.1.0
- python-version: "3.9"
django-version: django~=5.2.0
# Python 3.13 supported only in Django >=5.1.3
- python-version: "3.13"
django-version: django~=4.2.0

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Cache APT packages
uses: actions/cache@v4
with:
path: /var/cache/apt/archives
key: apt-${{ runner.os }}-${{ hashFiles('.github/workflows/ci.yml') }}
restore-keys: |
apt-${{ runner.os }}-

- name: Disable man page auto-update
run: |
echo 'set man-db/auto-update false' | sudo debconf-communicate >/dev/null
sudo dpkg-reconfigure man-db

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ manipulate a flat JSON object made of simple keys and values**.
Compatibility
-------------

Tested on python >= 3.8 and Django 3.2, 4.1 and 4.2.
Tested on python >= 3.9 and Django 4.2, 5.1 and 5.2.

It should work also on previous versions of Django.

Expand Down
13 changes: 12 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
packages=find_packages(exclude=['tests*', 'docs*']),
include_package_data=True,
zip_safe=False,
install_requires=[],
python_requires='>=3.9',
install_requires=[
'django>=4.2,<5.3',
],
extras_require={
'test': [
(
Expand All @@ -36,6 +39,14 @@
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Framework :: Django',
'Framework :: Django :: 4.2',
'Framework :: Django :: 5.1',
'Framework :: Django :: 5.2',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
],
)
Loading