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

pyyaml: deprecate, disable in 3 months #176591

Merged
merged 1 commit into from
Jul 7, 2024
Merged
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
15 changes: 9 additions & 6 deletions Formula/p/pyyaml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class Pyyaml < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "d53f5c35de430f055c83fdbb1e857b3423cbea9c66523f929cb525876ef55fae"
end

depends_on "cython" => :build
depends_on "python-setuptools" => :build
disable! date: "2024-10-06", 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 "libyaml"
Expand All @@ -29,11 +29,9 @@ def pythons
end

def install
cythonize = Formula["cython"].bin/"cythonize"
system cythonize, "yaml/_yaml.pyx"
pythons.each do |python|
python_exe = python.opt_libexec/"bin/python"
system python_exe, "-m", "pip", "install", *std_pip_args, "."
python3 = python.opt_libexec/"bin/python"
system python3, "-m", "pip", "install", *std_pip_args(build_isolation: true), "."
end
end

Expand All @@ -45,6 +43,11 @@ def caveats
<<~EOS
This formula provides the `yaml` module for Python #{python_versions}.
If you need `yaml` 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
Loading