diff --git a/CHANGES/6857.misc b/CHANGES/6857.misc new file mode 100644 index 00000000000..3af5791308c --- /dev/null +++ b/CHANGES/6857.misc @@ -0,0 +1,2 @@ +Excluded :term:`cchardet` from the ``speedups`` extra in the package +metadata under Python 3.10 or higher -- by :user:`webknjaz`. diff --git a/docs/_snippets/cchardet-unmaintained-admonition.rst b/docs/_snippets/cchardet-unmaintained-admonition.rst new file mode 100644 index 00000000000..ec290e0e954 --- /dev/null +++ b/docs/_snippets/cchardet-unmaintained-admonition.rst @@ -0,0 +1,5 @@ +.. warning:: + + Note that the :term:`cchardet` project is known not to support + Python 3.10 or higher. See :issue:`6819` and + :gh:`PyYoshi/cChardet/issues/77` for more details. diff --git a/docs/glossary.rst b/docs/glossary.rst index 42b063a95e0..65121851dda 100644 --- a/docs/glossary.rst +++ b/docs/glossary.rst @@ -46,6 +46,8 @@ https://pypi.python.org/pypi/cchardet/ + .. include:: _snippets/cchardet-unmaintained-admonition.rst + gunicorn Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for diff --git a/docs/index.rst b/docs/index.rst index 024438b6b87..bc4d6d4bf1f 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -40,6 +40,8 @@ replacement for :term:`charset-normalizer`: $ pip install cchardet +.. include:: _snippets/cchardet-unmaintained-admonition.rst + For speeding up DNS resolving by client API you may install :term:`aiodns` as well. This option is highly recommended: diff --git a/requirements/base.txt b/requirements/base.txt index 9c06faa562b..1890caa64f7 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -8,7 +8,7 @@ async-timeout==4.0.2 asynctest==0.13.0; python_version<"3.8" attrs==21.4.0 Brotli==1.0.9 -cchardet==2.1.7 +cchardet==2.1.7; python_version < "3.10" # Unmaintained: aio-libs/aiohttp#6819 charset-normalizer==2.0.12 frozenlist==1.3.1 gunicorn==20.1.0 diff --git a/setup.cfg b/setup.cfg index 541c1788627..b307755abb2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -68,7 +68,7 @@ install_requires = speedups = aiodns Brotli - cchardet + cchardet; python_version < "3.10" [options.packages.find] exclude =