Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python-pytz python-dateutil python-psutil: deprecate, disable in 3 months #168071

Merged
merged 3 commits into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions Formula/p/python-dateutil.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class PythonDateutil < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "d84889a7dba322bd761da70dc1adcb1af03350e64b816fad72a68ae2d20ded9c"
end

depends_on "python-setuptools" => :build
depends_on "python-setuptools-scm" => :build
disable! date: "2024-07-04", 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 "six"
Expand All @@ -25,18 +25,22 @@ def pythons
deps.map(&:to_formula).sort_by(&:version).filter { |f| f.name.start_with?("python@") }
end

resource "six" do
url "https://files.pythonhosted.org/packages/71/39/171f1c67cd00715f190ba0b100d606d440a28c93c7714febeca8b79af85e/six-1.16.0.tar.gz"
sha256 "1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"
end

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
14 changes: 12 additions & 2 deletions Formula/p/python-psutil.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class PythonPsutil < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "a7291f9d5df62f0aad691acbcb8625d70899070b0b892c4fb9ebdf78b13d6b08"
end

depends_on "python-setuptools" => :build
disable! date: "2024-07-04", because: "does not meet homebrew/core's requirements for Python library formulae"

depends_on "[email protected]" => [:build, :test]
depends_on "[email protected]" => [:build, :test]

Expand All @@ -27,10 +28,19 @@ def pythons

def install
pythons.each do |python|
system python, "-m", "pip", "install", *std_pip_args, "."
system python, "-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|
system python, "-c", "import psutil"
Expand Down
14 changes: 12 additions & 2 deletions Formula/p/python-pytz.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class PythonPytz < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "e90e84f24431767d4dd3691b486ca2ffdb3f32a10cd6f89802a0eea587f7533e"
end

depends_on "python-setuptools" => :build
disable! date: "2024-07-04", because: "does not meet homebrew/core's requirements for Python library formulae"

depends_on "[email protected]" => [:build, :test]
depends_on "[email protected]" => [:build, :test]

Expand All @@ -26,10 +27,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
Loading