From 3d189b62b38f68528249c04b1c365fa9aa1ec57e Mon Sep 17 00:00:00 2001 From: Sami El Achi Date: Fri, 29 Mar 2024 11:35:14 +0000 Subject: [PATCH] Remove support for Django 5 as it requires additional changes for now --- jazzmin/__init__.py | 5 ----- poetry.lock | 13 ++++++++++++- pyproject.toml | 8 +++++--- tox.ini | 3 +-- 4 files changed, 18 insertions(+), 11 deletions(-) diff --git a/jazzmin/__init__.py b/jazzmin/__init__.py index c15109ad..334e29d7 100644 --- a/jazzmin/__init__.py +++ b/jazzmin/__init__.py @@ -1,6 +1 @@ -import django - version = "3.0.0" - -if django.VERSION < (4, 2): - default_app_config = "jazzmin.apps.JazzminConfig" diff --git a/poetry.lock b/poetry.lock index c01a56e1..e255a278 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1317,6 +1317,17 @@ files = [ docs = ["myst-parser", "pydata-sphinx-theme", "sphinx"] test = ["argcomplete (>=2.0)", "pre-commit", "pytest", "pytest-mock"] +[[package]] +name = "types-polib" +version = "1.2.0.20240327" +description = "Typing stubs for polib" +optional = false +python-versions = ">=3.8" +files = [ + {file = "types-polib-1.2.0.20240327.tar.gz", hash = "sha256:d86add535343c293d3f94a16caca6ec3110ccc194a144743769f146cef6fa30d"}, + {file = "types_polib-1.2.0.20240327-py3-none-any.whl", hash = "sha256:8cf6746e87f652599f06ac755fdd61e4582c756e7714f393fc6a89a8e8a5b152"}, +] + [[package]] name = "types-pytz" version = "2024.1.0.20240203" @@ -1483,4 +1494,4 @@ testing = ["big-O", "flake8 (<5)", "jaraco.functools", "jaraco.itertools", "more [metadata] lock-version = "2.0" python-versions = ">=3.8" -content-hash = "e1fd5f4d1867f7edb53a8e89487e1bc3088c9ff3510ad943b3d12bc691f126fa" +content-hash = "a9311409de89871159edc4d257ae5cf4abfcb9e60da9981fd62ab1f951816cb0" diff --git a/pyproject.toml b/pyproject.toml index c40e8927..399d7f58 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,6 @@ classifiers = [ "Development Status :: 4 - Beta", "Framework :: Django", "Framework :: Django :: 4.2", - "Framework :: Django :: 5.0", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", @@ -37,7 +36,7 @@ exclude = ["tests", "docs"] [tool.poetry.dependencies] python = ">=3.8" -django = ">=4.2" +django = ">=4.2,<5.0" [tool.poetry.group.dev.dependencies] django-debug-toolbar = "^3.2.4" # unparallelled debugging in django @@ -57,7 +56,10 @@ mypy = "^0.931" # Type checking click = "^8.0.3" # Framework for building cli's ipdb = "^0.13.9" # ipython breakpoints ruff = "*" # linter and code formatter -django-stubs = "*" # Stubs for django + +[tool.poetry.group.types.dependencies] +django-stubs = "*" +types-polib = "*" [tool.poetry.urls] "Bug Tracker" = "https://github.com/farridav/django-jazzmin/issues" diff --git a/tox.ini b/tox.ini index e79652d8..9bbed67e 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - django{4,5}-{python3.8,python3.9,python3.10,python3.11,python3.12}, + django4-{python3.8,python3.9,python3.10,python3.11,python3.12}, # run one of the tests again but with coverage coveralls-django4-python3.11, skipsdist = True @@ -30,7 +30,6 @@ deps = beautifulsoup4 factory-boy django4: Django<5 - django5: Django<6 [testenv:coveralls-django4-python3.11] passenv = COVERALLS_REPO_TOKEN