diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 27c7f60..e7832a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,20 +13,30 @@ jobs: max-parallel: 2 fail-fast: true matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] - django-version: ["4.0", "4.1", "4.2", "5.0", "5.1"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] + django-version: ["4.0", "4.1", "4.2", "5.0", "5.1", "5.2"] os: [ubuntu-latest] exclude: - django-version: "4.0" python-version: "3.11" - django-version: "4.0" python-version: "3.12" + - django-version: "4.0" + python-version: "3.13" - django-version: "4.1" python-version: "3.12" + - django-version: "4.1" + python-version: "3.13" + - django-version: "4.2" + python-version: "3.13" - django-version: "5.0" python-version: "3.9" + - django-version: "5.0" + python-version: "3.13" - django-version: "5.1" python-version: "3.9" + - django-version: "5.2" + python-version: "3.9" runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v5 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 08c71bd..d638322 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,10 +1,10 @@ default_stages: [pre-commit] default_language_version: - python: python3.12 + python: python3.13 repos: - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: "v0.13.2" + rev: "v0.14.0" hooks: - id: ruff args: [--fix] @@ -18,6 +18,7 @@ repos: - "--target-version=py310" - "--target-version=py311" - "--target-version=py312" + - "--target-version=py313" types: [python] - repo: https://github.com/pre-commit/pre-commit-hooks @@ -58,4 +59,4 @@ repos: rev: v3.20.0 hooks: - id: pyupgrade - args: [--py312] + args: [--py313] diff --git a/README.md b/README.md index 99d10b2..dae98cd 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # django-admin-contexts -![Python Compatibility](https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11%20%7C%203.12-blue.svg) [![PyPi Version](https://img.shields.io/pypi/v/django-admin-contexts.svg)](https://pypi.python.org/pypi/django-admin-contexts) ![CI badge](https://github.com/matagus/django-admin-contexts/actions/workflows/ci.yml/badge.svg) [![codecov](https://codecov.io/gh/matagus/django-admin-contexts/graph/badge.svg?token=a64SxEDQk0)](https://codecov.io/gh/matagus/django-admin-contexts) [![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause) +![Python Compatibility](https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-blue.svg) [![PyPi Version](https://img.shields.io/pypi/v/django-admin-contexts.svg)](https://pypi.python.org/pypi/django-admin-contexts) ![CI badge](https://github.com/matagus/django-admin-contexts/actions/workflows/ci.yml/badge.svg) [![codecov](https://codecov.io/gh/matagus/django-admin-contexts/graph/badge.svg?token=a64SxEDQk0)](https://codecov.io/gh/matagus/django-admin-contexts) [![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause) Display only a set of apps and models in the Django Admin homepage, based on the chosen context. This is useful when you have a lot of apps and models and you want to focus on a specific set of them. @@ -64,7 +64,7 @@ Running Tests `hatch run test:test` will run the tests in every Python + Django versions combination. -`hatch run test.py3.12-5.0:test will run them for python 3.12 and Django 5.1. Please see possible combinations using +`hatch run test.py3.13-5.2:test` will run them for python 3.13 and Django 5.2. Please see possible combinations using `hatch env show` ("test" matrix). diff --git a/pyproject.toml b/pyproject.toml index f19ab9d..a317a5e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,6 +20,7 @@ classifiers = [ "Framework :: Django :: 4.2", "Framework :: Django :: 5.0", "Framework :: Django :: 5.1", + "Framework :: Django :: 5.2", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", @@ -28,6 +29,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries", @@ -98,7 +100,11 @@ python = ["3.10", "3.11", "3.12"] [[tool.hatch.envs.test.matrix]] django = ["5.1"] -python = ["3.10", "3.11", "3.12"] +python = ["3.10", "3.11", "3.12", "3.13"] + +[[tool.hatch.envs.test.matrix]] +django = ["5.2"] +python = ["3.10", "3.11", "3.12", "3.13"] [tool.hatch.envs.test] dependencies = ["coverage[toml]", "django~={matrix:django}.0"]