From b207550318fc5d58372abe3dac0d34f895d3ead9 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Sun, 2 Jun 2024 15:23:26 +0100 Subject: [PATCH] Sync typing_extensions pin in setup.py with the pin in the other two places (#17313) Followup to #17312. (Can't say I fully understand why we have to have this pin in three places :) --- mypy-requirements.txt | 1 + pyproject.toml | 2 +- setup.py | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/mypy-requirements.txt b/mypy-requirements.txt index 341052822f25..8d41a3fc7003 100644 --- a/mypy-requirements.txt +++ b/mypy-requirements.txt @@ -1,4 +1,5 @@ # NOTE: this needs to be kept in sync with the "requires" list in pyproject.toml +# and the pins in setup.py typing_extensions>=4.6.0 mypy_extensions>=1.0.0 tomli>=1.1.0; python_version<'3.11' diff --git a/pyproject.toml b/pyproject.toml index 33d4ec094f50..12a0dc109cd5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ requires = [ # self-typechecking :/ "setuptools >= 40.6.2", "wheel >= 0.30.0", - # the following is from mypy-requirements.txt + # the following is from mypy-requirements.txt/setup.py "typing_extensions>=4.6.0", "mypy_extensions>=1.0.0", "tomli>=1.1.0; python_version<'3.11'", diff --git a/setup.py b/setup.py index a17ee562eb39..160e2b054b0e 100644 --- a/setup.py +++ b/setup.py @@ -218,9 +218,9 @@ def run(self): }, classifiers=classifiers, cmdclass=cmdclass, - # When changing this, also update mypy-requirements.txt. + # When changing this, also update mypy-requirements.txt and pyproject.toml install_requires=[ - "typing_extensions>=4.1.0", + "typing_extensions>=4.6.0", "mypy_extensions >= 1.0.0", "tomli>=1.1.0; python_version<'3.11'", ],