Skip to content

Commit

Permalink
Merge pull request #168114 from Homebrew/python-typing-extensions-dep…
Browse files Browse the repository at this point in the history
…recate

python-typing-extensions: deprecate, disable in 3 months
  • Loading branch information
chenrui333 authored Apr 5, 2024
2 parents ba49e2f + a6adf8a commit 3975e7a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Formula/p/python-typing-extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]" => [:build, :test]
depends_on "[email protected]" => [:build, :test]
depends_on "mypy" => :test
Expand All @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 3975e7a

Please sign in to comment.