From 0354a9a929e12eaec8fb49e8c45eb06ea8121761 Mon Sep 17 00:00:00 2001 From: William Barnhart Date: Wed, 3 Nov 2021 10:47:33 -0400 Subject: [PATCH 1/2] Update setup.py syntax so RuntimeError is properly raised for older versions of Python --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index a8c00a34..28b9569c 100644 --- a/setup.py +++ b/setup.py @@ -19,9 +19,9 @@ class bdist_egg(original_bdist_egg): def run(self): raise SystemExit( - f"{type(self).__name__} is forbidden, " + "%s is forbidden, " "please update to setuptools>=45 which uses pip" - ) + % type(self).__name__) def scm_version(): From 11c0b0740329b04929d8bac5c137dd6f619956ae Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 3 Nov 2021 14:50:18 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 28b9569c..4bed0bff 100644 --- a/setup.py +++ b/setup.py @@ -20,8 +20,8 @@ class bdist_egg(original_bdist_egg): def run(self): raise SystemExit( "%s is forbidden, " - "please update to setuptools>=45 which uses pip" - % type(self).__name__) + "please update to setuptools>=45 which uses pip" % type(self).__name__ + ) def scm_version():