Skip to content

Commit

Permalink
python-requests: deprecate
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Cho <[email protected]>
  • Loading branch information
cho-m committed Mar 14, 2024
1 parent 0494443 commit a8b890c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Formula/p/python-requests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class PythonRequests < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "38eb54a3c08da5790c7da2dbbe36992772214a7bf2ce87a73b5f58930ec7b0a8"
end

depends_on "python-setuptools" => :build
deprecate! date: "2024-03-14", 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 "certifi"
Expand All @@ -30,10 +31,19 @@ def pythons
def install
pythons.each do |python|
python_exe = python.opt_libexec/"bin/python"
system python_exe, "-m", "pip", "install", *std_pip_args, "."
system python_exe, "-m", "pip", "install", *std_pip_args(build_isolation: true), "."
end
end

def caveats
<<~EOS
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

test do
pythons.each do |python|
python_exe = python.opt_libexec/"bin/python"
Expand Down

0 comments on commit a8b890c

Please sign in to comment.