Skip to content
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
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 6 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 3 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down Expand Up @@ -59,4 +60,4 @@ repos:
rev: v3.20.0
hooks:
- id: pyupgrade
args: [--py313]
args: [--py314]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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).


Expand Down
2 changes: 1 addition & 1 deletion django_admin_contexts/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "0.3.0"
version = "0.4.0"
17 changes: 4 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"]
Expand Down Expand Up @@ -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"]
Expand All @@ -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"]
Expand Down