From 6f8f70256a7f6fd2fca93f63c5469fbae0265eb8 Mon Sep 17 00:00:00 2001 From: Antti Kaihola <13725+akaihola@users.noreply.github.com> Date: Sat, 25 Mar 2023 20:29:28 +0200 Subject: [PATCH 1/2] Temporarily limit Flynt to versions before 0.78 This works around the internal API change. In the next minor release compatibility with Flynt 0.78 will be introduced. --- setup.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 7b2ff8262..dbe46bdaf 100644 --- a/setup.cfg +++ b/setup.cfg @@ -46,7 +46,7 @@ pygments.lexers = [options.extras_require] flynt = - flynt>=0.76 + flynt>=0.76,<0.78 isort = isort>=5.0.1 color = @@ -57,7 +57,7 @@ test = black>=21.7b1 # to prevent Mypy error about `gen_python_files`, see issue #189 cryptography>=3.3.2 # through twine, fixes CVE-2020-36242 defusedxml>=0.7.1 - flynt>=0.76 + flynt>=0.76,<0.78 isort>=5.0.1 pygments pytest>=6.2.0 From 9d23a631182d1d3c480ecfda11c24c3b85645a40 Mon Sep 17 00:00:00 2001 From: Antti Kaihola <13725+akaihola@users.noreply.github.com> Date: Sat, 25 Mar 2023 20:30:51 +0200 Subject: [PATCH 2/2] Update the change log --- CHANGES.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.rst b/CHANGES.rst index 10613c5d3..e390d1e4c 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -9,6 +9,7 @@ Added Fixed ----- - Use ``stacklevel=2`` in ``warnings.warn()`` calls as suggested by Flake8. +- Disallow Flynt version 0.78 and newer to avoid an internal API incompatibility. 1.7.0_ - 2023-02-11