From a6adf8afc412272beb5e2b7fcfa2ffffad43b522 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Fri, 5 Apr 2024 11:11:31 -0400 Subject: [PATCH] python-typing-extensions: deprecate, disable in 3 months Signed-off-by: Michael Cho --- Formula/p/python-typing-extensions.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Formula/p/python-typing-extensions.rb b/Formula/p/python-typing-extensions.rb index 1a53e77a6c6e7..bc3d410af3cf1 100644 --- a/Formula/p/python-typing-extensions.rb +++ b/Formula/p/python-typing-extensions.rb @@ -15,7 +15,8 @@ class PythonTypingExtensions < Formula sha256 cellar: :any_skip_relocation, x86_64_linux: "6d08667977a45cbf7102384b2b1bcd04f6468c0f5b763aecb36a1ccfad6a6d76" end - depends_on "python-flit-core" => :build + disable! date: "2024-07-05", because: "does not meet homebrew/core's requirements for Python library formulae" + depends_on "python@3.11" => [:build, :test] depends_on "python@3.12" => [:build, :test] depends_on "mypy" => :test @@ -28,7 +29,7 @@ def pythons def install pythons.each do |python| - system python.opt_libexec/"bin/pip", "install", *std_pip_args, "." + system python.opt_libexec/"bin/pip", "install", *std_pip_args(build_isolation: true), "." end end @@ -40,6 +41,11 @@ def caveats <<~EOS This formula provides the `typing_extensions` module for Python #{python_versions}. If you need `typing_extensions` for a different version of Python, use pip. + + Additional details on upcoming formula removal are available at: + * https://github.com/Homebrew/homebrew-core/issues/157500 + * https://docs.brew.sh/Python-for-Formula-Authors#libraries + * https://docs.brew.sh/Homebrew-and-Python#pep-668-python312-and-virtual-environments EOS end