From: Brian Rutledge <brian@bhrutledge.com>
Date: Thu, 21 Apr 2022 19:59:46 -0400
Subject: Require latest version of readme_renderer (#892)

Origin: upstream, https://github.com/pypa/twine/commit/4223ee154f1c962a0c33e2a3a95ed4c42bc62d41
Bug-Debian: https://bugs.debian.org/1010428
---
 mypy.ini            | 4 ----
 setup.cfg           | 2 +-
 tests/test_check.py | 3 ++-
 3 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/mypy.ini b/mypy.ini
index 8724226..dddd808 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -26,10 +26,6 @@ ignore_missing_imports = True
 ; https://github.com/requests/toolbelt/issues/279
 ignore_missing_imports = True
 
-[mypy-readme_renderer,readme_renderer.*]
-; https://github.com/pypa/readme_renderer/issues/166
-ignore_missing_imports = True
-
 [mypy-rfc3986]
 ignore_missing_imports = True
 
diff --git a/setup.cfg b/setup.cfg
index c4a46e0..239c9de 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -36,7 +36,7 @@ packages =
 python_requires = >=3.7
 install_requires = 
 	pkginfo >= 1.8.1
-	readme-renderer >= 21.0
+	readme-renderer >= 35.0
 	requests >= 2.20
 	requests-toolbelt >= 0.8.0, != 0.9.0
 	urllib3 >= 1.26.0
diff --git a/tests/test_check.py b/tests/test_check.py
index 1ac056f..d83f29e 100644
--- a/tests/test_check.py
+++ b/tests/test_check.py
@@ -204,7 +204,8 @@ def test_fails_rst_no_content(tmp_path, capsys, caplog):
             "twine.commands.check",
             logging.ERROR,
             "`long_description` has syntax errors in markup "
-            "and would not be rendered on PyPI.\n",
+            "and would not be rendered on PyPI.\n"
+            "No content rendered from RST source.",
         ),
     ]
 
