diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml index 2f48d93..6c988ab 100644 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -14,7 +14,7 @@ body: attributes: label: Package Version description: Which version of this package were you using? If not the latest version, please check this issue has not since been resolved. - placeholder: 0.3.0 + placeholder: 0.4.0 validations: required: false - type: input diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e7832a9..0c483c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,26 +13,20 @@ jobs: max-parallel: 2 fail-fast: true matrix: - 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"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] + django-version: ["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: "4.2" + python-version: "3.14" - django-version: "5.0" python-version: "3.9" - django-version: "5.0" python-version: "3.13" + - django-version: "5.0" + python-version: "3.14" - django-version: "5.1" python-version: "3.9" - django-version: "5.2" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 480289d..2ccde17 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ default_stages: [pre-commit] default_language_version: - python: python3.13 + python: python3.14 repos: - repo: https://github.com/astral-sh/ruff-pre-commit @@ -19,6 +19,7 @@ repos: - "--target-version=py311" - "--target-version=py312" - "--target-version=py313" + - "--target-version=py314" types: [python] - repo: https://github.com/pre-commit/pre-commit-hooks @@ -59,4 +60,4 @@ repos: rev: v3.20.0 hooks: - id: pyupgrade - args: [--py313] + args: [--py314] diff --git a/README.md b/README.md index c8abc38..ab680f0 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # 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%20%7C%203.13-blue.svg) -![Django Compatibility](https://img.shields.io/badge/django-4.0%20|4.1%20|4.2%20|%205.0%20|%205.1%20|%205.2-%2344B78B?labelColor=%23092E20) +![Django Compatibility](https://img.shields.io/badge/django-4.2%20|%205.0%20|%205.1%20|%205.2-%2344B78B?labelColor=%23092E20) [![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) @@ -69,7 +69,7 @@ Running Tests `hatch run test:test` will run the tests in every Python + Django versions combination. -`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 run test.py3.14-5.2:test` will run them for python 3.14 and Django 5.2. Please see possible combinations using `hatch env show` ("test" matrix). diff --git a/django_admin_contexts/__about__.py b/django_admin_contexts/__about__.py index 779733f..5140fa1 100644 --- a/django_admin_contexts/__about__.py +++ b/django_admin_contexts/__about__.py @@ -1 +1 @@ -version = "0.3.0" +version = "0.4.0" diff --git a/pyproject.toml b/pyproject.toml index a317a5e..1dee410 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,8 +15,6 @@ classifiers = [ "Environment :: Console", "Environment :: Web Environment", "Framework :: Django", - "Framework :: Django :: 4.0", - "Framework :: Django :: 4.1", "Framework :: Django :: 4.2", "Framework :: Django :: 5.0", "Framework :: Django :: 5.1", @@ -30,12 +28,13 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries", ] requires-python = ">=3.9" -dependencies = ["Django>=4.0"] +dependencies = ["Django>=4.2"] [project.optional-dependencies] dev = ["ipython", "django-extensions", "Werkzeug", "django-debug-toolbar"] @@ -82,14 +81,6 @@ makemigrations = "python example_project/manage.py makemigrations {args}" createsuperuser = "python example_project/manage.py createsuperuser {args}" # Test environment -[[tool.hatch.envs.test.matrix]] -django = ["4.0"] -python = ["3.9", "3.10"] - -[[tool.hatch.envs.test.matrix]] -django = ["4.1"] -python = ["3.9", "3.10", "3.11"] - [[tool.hatch.envs.test.matrix]] django = ["4.2"] python = ["3.9", "3.10", "3.11", "3.12"] @@ -100,11 +91,11 @@ python = ["3.10", "3.11", "3.12"] [[tool.hatch.envs.test.matrix]] django = ["5.1"] -python = ["3.10", "3.11", "3.12", "3.13"] +python = ["3.10", "3.11", "3.12", "3.13", "3.14"] [[tool.hatch.envs.test.matrix]] django = ["5.2"] -python = ["3.10", "3.11", "3.12", "3.13"] +python = ["3.10", "3.11", "3.12", "3.13", "3.14"] [tool.hatch.envs.test] dependencies = ["coverage[toml]", "django~={matrix:django}.0"]