diff --git a/docs/internals/contributing/writing-code/unit-tests.txt b/docs/internals/contributing/writing-code/unit-tests.txt index acbf68a7de..22938c1cea 100644 --- a/docs/internals/contributing/writing-code/unit-tests.txt +++ b/docs/internals/contributing/writing-code/unit-tests.txt @@ -317,7 +317,7 @@ dependencies: * :pypi:`asgiref` 3.9.1+ (required) * :pypi:`bcrypt` 4.1.1+ * :pypi:`colorama` 0.4.6+ -* :pypi:`docutils` 0.19+ +* :pypi:`docutils` 0.22+ * :pypi:`geoip2` 4.8.0+ * :pypi:`Jinja2` 2.11+ * :pypi:`numpy` 1.26.0+ diff --git a/docs/ref/contrib/admin/admindocs.txt b/docs/ref/contrib/admin/admindocs.txt index 1355c83356..27e8b6251a 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` 0.19+ package. +* Install the :pypi:`docutils` 0.22+ package. * **Optional:** Using the admindocs bookmarklets requires ``django.contrib.admindocs.middleware.XViewMiddleware`` to be installed. diff --git a/docs/releases/6.0.txt b/docs/releases/6.0.txt index 0c9da42cc6..d90be35b1b 100644 --- a/docs/releases/6.0.txt +++ b/docs/releases/6.0.txt @@ -377,6 +377,7 @@ of each library are the first to add or confirm compatibility with Python 3.12: * ``aiosmtpd`` 1.4.5 * ``argon2-cffi`` 23.1.0 * ``bcrypt`` 4.1.1 +* ``docutils`` 0.22 * ``geoip2`` 4.8.0 * ``Pillow`` 10.1.0 * ``mysqlclient`` 2.2.1 diff --git a/tests/admin_docs/test_utils.py b/tests/admin_docs/test_utils.py index 8152857263..2369fe5106 100644 --- a/tests/admin_docs/test_utils.py +++ b/tests/admin_docs/test_utils.py @@ -133,5 +133,5 @@ class TestUtils(AdminDocsSimpleTestCase): ) source = "reST, `interpreted text`, default role." markup = "
reST, interpreted text, default role.
\n" - parts = docutils.core.publish_parts(source=source, writer_name="html4css1") + parts = docutils.core.publish_parts(source=source, writer="html4css1") self.assertEqual(parts["fragment"], markup) diff --git a/tests/requirements/py3.txt b/tests/requirements/py3.txt index 76a017aab4..4fbf425e48 100644 --- a/tests/requirements/py3.txt +++ b/tests/requirements/py3.txt @@ -3,7 +3,7 @@ asgiref >= 3.9.1 argon2-cffi >= 23.1.0 bcrypt >= 4.1.1 black >= 25.9.0 -docutils >= 0.19 +docutils >= 0.22 geoip2 >= 4.8.0 jinja2 >= 2.11.0 numpy >= 1.26.0