From d1ce47a5cdadd9d4e52e64fecf098e75c49c2988 Mon Sep 17 00:00:00 2001 From: Anders <6058745+ddabble@users.noreply.github.com> Date: Mon, 25 Sep 2023 22:41:30 +0200 Subject: [PATCH] Added temporary asgiref requirement See https://github.com/jazzband/django-simple-history/issues/1255 for discussion. Link to Django 4.1's required `asgiref` version: https://github.com/django/django/blob/4.1.11/setup.cfg#L42 Link to Django 4.2's required `asgiref` version: https://github.com/django/django/blob/4.2/setup.cfg#L42 --- CHANGES.rst | 3 ++- requirements/test.txt | 2 ++ setup.py | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 0141966f0..559bc6976 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -12,7 +12,8 @@ Unreleased (gh-1248) - Passing an empty list as the ``fields`` argument to ``bulk_update_with_history()`` is now allowed; history records will still be created (gh-1248) - +- Added temporary requirement on ``asgiref>=3.6`` while the minimum required Django + version is lower than 4.2 (gh-1261) 3.4.0 (2023-08-18) ------------------ diff --git a/requirements/test.txt b/requirements/test.txt index ae6ed25c0..0b7414dc3 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -1 +1,3 @@ -r ./coverage.txt +# DEV: Remove this requirement entirely when the minimum required Django version is 4.2 +asgiref>=3.6 diff --git a/setup.py b/setup.py index 3d3d6e222..fdfe8ec53 100644 --- a/setup.py +++ b/setup.py @@ -11,6 +11,8 @@ "fallback_version": "0.0.0", }, setup_requires=["setuptools_scm"], + # DEV: Remove `asgiref` when the minimum required Django version is 4.2 + install_requires=["asgiref>=3.6"], description="Store model history and view/revert changes from admin site.", long_description="\n".join((readme.read(), changes.read())), long_description_content_type="text/x-rst",