Skip to content

Commit

Permalink
Merge pull request #176591 from branchvincent/pyyaml
Browse files Browse the repository at this point in the history
pyyaml: deprecate, disable in 3 months
  • Loading branch information
BrewTestBot authored Jul 7, 2024
2 parents 124f0fc + b9b16bb commit 1033c54
Showing 1 changed file with 9 additions and 6 deletions.
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

0 comments on commit 1033c54

Please sign in to comment.