From 6c6606aa014862f1a5c112d688d5e91c0cd9a8d8 Mon Sep 17 00:00:00 2001 From: Jacob Walls <jacobtylerwalls@gmail.com> Date: Mon, 4 Sep 2023 12:13:10 -0400 Subject: [PATCH] Refs #34233 -- Bumped minimum supported version of docutils to 0.19. --- docs/internals/contributing/writing-code/unit-tests.txt | 2 +- docs/ref/contrib/admin/admindocs.txt | 2 +- docs/releases/5.0.txt | 2 ++ tests/requirements/py3.txt | 2 +- tests/runtests.py | 4 ---- 5 files changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/internals/contributing/writing-code/unit-tests.txt b/docs/internals/contributing/writing-code/unit-tests.txt index 3d39b32c0f..2835520a69 100644 --- a/docs/internals/contributing/writing-code/unit-tests.txt +++ b/docs/internals/contributing/writing-code/unit-tests.txt @@ -282,7 +282,7 @@ dependencies: * :pypi:`asgiref` 3.7.0+ (required) * :pypi:`bcrypt` * :pypi:`colorama` 0.4.6+ -* :pypi:`docutils` +* :pypi:`docutils` 0.19+ * :pypi:`geoip2` * :pypi:`Jinja2` 2.11+ * :pypi:`numpy` diff --git a/docs/ref/contrib/admin/admindocs.txt b/docs/ref/contrib/admin/admindocs.txt index fe9d81bbc7..edc29b4a5c 100644 --- a/docs/ref/contrib/admin/admindocs.txt +++ b/docs/ref/contrib/admin/admindocs.txt @@ -23,7 +23,7 @@ the following: your ``urlpatterns``. Make sure it's included *before* the ``'admin/'`` entry, so that requests to ``/admin/doc/`` don't get handled by the latter entry. -* Install the :pypi:`docutils` package. +* Install the :pypi:`docutils` 0.19+ package. * **Optional:** Using the admindocs bookmarklets requires ``django.contrib.admindocs.middleware.XViewMiddleware`` to be installed. diff --git a/docs/releases/5.0.txt b/docs/releases/5.0.txt index c75f79af81..5a8e44f1fb 100644 --- a/docs/releases/5.0.txt +++ b/docs/releases/5.0.txt @@ -632,6 +632,8 @@ Miscellaneous * The minimum supported version of ``colorama`` is increased to 0.4.6. +* The minimum supported version of ``docutils`` is increased to 0.19. + .. _deprecated-features-5.0: Features deprecated in 5.0 diff --git a/tests/requirements/py3.txt b/tests/requirements/py3.txt index ecadeaf6cb..aad91469ec 100644 --- a/tests/requirements/py3.txt +++ b/tests/requirements/py3.txt @@ -3,7 +3,7 @@ asgiref >= 3.7.0 argon2-cffi >= 19.2.0 bcrypt black -docutils +docutils >= 0.19 geoip2; python_version < '3.12' jinja2 >= 2.11.0 numpy; python_version < '3.12' diff --git a/tests/runtests.py b/tests/runtests.py index 2ea27b88c2..7daffed898 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -50,10 +50,6 @@ warnings.simplefilter("error", RemovedInDjango51Warning) # patterns. warnings.simplefilter("error", ResourceWarning) warnings.simplefilter("error", RuntimeWarning) -# Ignore known warnings in test dependencies. -warnings.filterwarnings( - "ignore", "'U' mode is deprecated", DeprecationWarning, module="docutils.io" -) # Reduce garbage collection frequency to improve performance. Since CPython # uses refcounting, garbage collection only collects objects with cyclic