diff --git a/Formula/p/python-dateutil.rb b/Formula/p/python-dateutil.rb deleted file mode 100644 index 60e614a73fcbc..0000000000000 --- a/Formula/p/python-dateutil.rb +++ /dev/null @@ -1,50 +0,0 @@ -class PythonDateutil < Formula - desc "Useful extensions to the standard Python datetime features" - homepage "https://github.com/dateutil/dateutil" - url "https://files.pythonhosted.org/packages/66/c0/0c8b6ad9f17a802ee498c46e004a0eb49bc148f2fd230864601a86dcf6db/python-dateutil-2.9.0.post0.tar.gz" - sha256 "37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3" - license "Apache-2.0" - - bottle do - sha256 cellar: :any_skip_relocation, arm64_sonoma: "aab852ba6ce0806a009276222a8d463109a2a2c948a4f1f37ec2203aa8ceecfc" - sha256 cellar: :any_skip_relocation, arm64_ventura: "bcdceba5d9561c721de861a8a8e85f66c376c11d2e717e2d826eae3980a9b435" - sha256 cellar: :any_skip_relocation, arm64_monterey: "893582b90d3ddf03e827bdea23e64aa52e9a68e452787e36f14f4c78723999ce" - sha256 cellar: :any_skip_relocation, sonoma: "eaf7877611a68e4c499a6e7a00b0740088d427120264f96e2d77d032c39724f0" - sha256 cellar: :any_skip_relocation, ventura: "40022516d6c9ae6c71e1bba5cd0554f63d7d930a025ccac6185076d9c51046c1" - sha256 cellar: :any_skip_relocation, monterey: "efa3bb4af762bbcde52ec8d76b7159001ba1431637ef30a56f5cdea7016f2a3a" - sha256 cellar: :any_skip_relocation, x86_64_linux: "d84889a7dba322bd761da70dc1adcb1af03350e64b816fad72a68ae2d20ded9c" - end - - disable! date: "2024-07-04", because: "does not meet homebrew/core's requirements for Python library formulae" - - depends_on "python@3.11" => [:build, :test] - depends_on "python@3.12" => [:build, :test] - depends_on "six" - - def pythons - deps.map(&:to_formula).sort_by(&:version).filter { |f| f.name.start_with?("python@") } - end - - def install - pythons.each do |python| - python_exe = python.opt_libexec/"bin/python" - 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" - system python_exe, "-c", "import dateutil" - end - end -end diff --git a/Formula/p/python-psutil.rb b/Formula/p/python-psutil.rb deleted file mode 100644 index 808313dedda3d..0000000000000 --- a/Formula/p/python-psutil.rb +++ /dev/null @@ -1,49 +0,0 @@ -class PythonPsutil < Formula - desc "Cross-platform lib for process and system monitoring in Python" - homepage "https://github.com/giampaolo/psutil" - url "https://files.pythonhosted.org/packages/90/c7/6dc0a455d111f68ee43f27793971cf03fe29b6ef972042549db29eec39a2/psutil-5.9.8.tar.gz" - sha256 "6be126e3225486dff286a8fb9a06246a5253f4c7c53b475ea5f5ac934e64194c" - license "BSD-3-Clause" - - bottle do - sha256 cellar: :any_skip_relocation, arm64_sonoma: "0f6c374bc93d5a82d0f556f6e8037e34e12bc4dc638bd99c54d54942f20064b6" - sha256 cellar: :any_skip_relocation, arm64_ventura: "386de76866136c6178cdf61f0f2530d7c09e277df845769a4e0ff1827e796c3f" - sha256 cellar: :any_skip_relocation, arm64_monterey: "0fc189b27182662cb4a9ea82102ca990d6841540e6720589f7fe25f5e0a23f93" - sha256 cellar: :any_skip_relocation, sonoma: "0647cc0cf76c2efa7847939fb2a396cf14f754d24ea74c343a37e5cb264504ed" - sha256 cellar: :any_skip_relocation, ventura: "b7b3109f3a2e35f357dec03b4fec0ee329fdcb4dc70370fb2e5dcf3da0b3cd61" - sha256 cellar: :any_skip_relocation, monterey: "44795b00aa8ada3f3cad47b93f46833eb1d7f5fddd616e5b6b3de7901307e892" - sha256 cellar: :any_skip_relocation, x86_64_linux: "a7291f9d5df62f0aad691acbcb8625d70899070b0b892c4fb9ebdf78b13d6b08" - end - - disable! date: "2024-07-04", because: "does not meet homebrew/core's requirements for Python library formulae" - - depends_on "python@3.11" => [:build, :test] - depends_on "python@3.12" => [:build, :test] - - def pythons - deps.map(&:to_formula) - .select { |f| f.name.start_with?("python@") } - .map { |f| f.opt_libexec/"bin/python" } - end - - def install - pythons.each do |python| - 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" - end - end -end diff --git a/Formula/p/python-pytz.rb b/Formula/p/python-pytz.rb deleted file mode 100644 index 58ea890c9e424..0000000000000 --- a/Formula/p/python-pytz.rb +++ /dev/null @@ -1,49 +0,0 @@ -class PythonPytz < Formula - desc "Python library for cross platform timezone" - homepage "https://pythonhosted.org/pytz/" - url "https://files.pythonhosted.org/packages/90/26/9f1f00a5d021fff16dee3de13d43e5e978f3d58928e129c3a62cf7eb9738/pytz-2024.1.tar.gz" - sha256 "2a29735ea9c18baf14b448846bde5a48030ed267578472d8955cd0e7443a9812" - license "MIT" - - bottle do - sha256 cellar: :any_skip_relocation, arm64_sonoma: "567cc73e994830e94890bfe3766932251f4d05bf42d4089ae9995dad495a0874" - sha256 cellar: :any_skip_relocation, arm64_ventura: "ad6f3af5f008f193bc4cbda15ef3eee58c4cef3fced6d9719349d20813b4d7f6" - sha256 cellar: :any_skip_relocation, arm64_monterey: "2c2266de346f79838cc149c2f8cb5ae7aa4b75a106883d9cdc776da4037949a6" - sha256 cellar: :any_skip_relocation, sonoma: "9da7ce182fdf5e01ae8d78d03d1a1152b3877044f9c9731463babe5c6d45108b" - sha256 cellar: :any_skip_relocation, ventura: "0035a2871673bf0f1dc510dd821d5b8c8eabdd7bdcc0436d6e6c69299bd62e70" - sha256 cellar: :any_skip_relocation, monterey: "57f90b7c222a8f39d133d7dcb67349ef45246cadb2be05899a46d8f5b345d9de" - sha256 cellar: :any_skip_relocation, x86_64_linux: "e90e84f24431767d4dd3691b486ca2ffdb3f32a10cd6f89802a0eea587f7533e" - end - - disable! date: "2024-07-04", because: "does not meet homebrew/core's requirements for Python library formulae" - - depends_on "python@3.11" => [:build, :test] - depends_on "python@3.12" => [:build, :test] - - def pythons - deps.map(&:to_formula).sort_by(&:version).filter { |f| f.name.start_with?("python@") } - end - - def install - pythons.each do |python| - python_exe = python.opt_libexec/"bin/python" - 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" - system python_exe, "-c", "import pytz; print(pytz.timezone('UTC'))" - end - end -end diff --git a/Formula/p/python-trove-classifiers.rb b/Formula/p/python-trove-classifiers.rb deleted file mode 100644 index 0d85a28cd37f5..0000000000000 --- a/Formula/p/python-trove-classifiers.rb +++ /dev/null @@ -1,44 +0,0 @@ -class PythonTroveClassifiers < Formula - desc "Canonical source for classifiers on PyPI" - homepage "https://github.com/pypa/trove-classifiers" - url "https://files.pythonhosted.org/packages/c5/e9/1deb1b8113917aa735b08ef21821f3533bda2eb1fa1a16e07256dd05918f/trove-classifiers-2024.3.25.tar.gz" - sha256 "6de68d06edd6fec5032162b6af22e818a4bb6f4ae2258e74699f8a41064b7cad" - license "Apache-2.0" - - bottle do - sha256 cellar: :any_skip_relocation, all: "60b794b825880dce65e9024a83930814c42be20b2cac8c4f162e92d83fe86eed" - end - - disable! date: "2024-07-05", because: "does not meet homebrew/core's requirements for Python library formulae" - - depends_on "python@3.11" => [:build, :test] - depends_on "python@3.12" => [:build, :test] - - def pythons - deps.map(&:to_formula).sort_by(&:version).filter { |f| f.name.start_with?("python@") } - end - - def install - pythons.each do |python| - python_exe = python.opt_libexec/"bin/python" - 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" - classifiers = shell_output("#{python_exe} -m trove_classifiers") - assert_match "Environment :: MacOS X", classifiers - end - end -end diff --git a/Formula/p/python-typing-extensions.rb b/Formula/p/python-typing-extensions.rb deleted file mode 100644 index bc3d410af3cf1..0000000000000 --- a/Formula/p/python-typing-extensions.rb +++ /dev/null @@ -1,70 +0,0 @@ -class PythonTypingExtensions < Formula - desc "Backported and experimental type hints for Python" - homepage "https://github.com/python/typing_extensions" - url "https://files.pythonhosted.org/packages/16/3a/0d26ce356c7465a19c9ea8814b960f8a36c3b0d07c323176620b7b483e44/typing_extensions-4.10.0.tar.gz" - sha256 "b0abd7c89e8fb96f98db18d86106ff1d90ab692004eb746cf6eda2682f91b3cb" - license "Python-2.0" - - bottle do - sha256 cellar: :any_skip_relocation, arm64_sonoma: "81bae1937024c93466df9228f48182ec56793d16ad2ffa4bca821a79020ec459" - sha256 cellar: :any_skip_relocation, arm64_ventura: "fc604b98239abf9a88b38dc3d5728d6d830eb0c23e79fb342bc5ac146a43056e" - sha256 cellar: :any_skip_relocation, arm64_monterey: "067ed6f2190560186d1f5fcdcc266fefe6331f3f27e645b6f2613a41fe27e320" - sha256 cellar: :any_skip_relocation, sonoma: "299277e3c97f080faf60f78b1c7996461bd7493886565e30d0eb8c57edc72be0" - sha256 cellar: :any_skip_relocation, ventura: "a8d93b45746389920f82618145b2ba63b91b245173d7d952dda8a855f8cc68a9" - sha256 cellar: :any_skip_relocation, monterey: "e67ce5741bead7bd6829552c906701ee762aa04f7d6859a6f90ea136a26046b2" - sha256 cellar: :any_skip_relocation, x86_64_linux: "6d08667977a45cbf7102384b2b1bcd04f6468c0f5b763aecb36a1ccfad6a6d76" - end - - disable! date: "2024-07-05", because: "does not meet homebrew/core's requirements for Python library formulae" - - depends_on "python@3.11" => [:build, :test] - depends_on "python@3.12" => [:build, :test] - depends_on "mypy" => :test - - def pythons - deps.select { |dep| dep.name.start_with?("python@") } - .map(&:to_formula) - .sort_by(&:version) - end - - def install - pythons.each do |python| - system python.opt_libexec/"bin/pip", "install", *std_pip_args(build_isolation: true), "." - end - end - - def caveats - python_versions = pythons.map { |p| p.version.major_minor } - .map(&:to_s) - .join(", ") - - <<~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 - - test do - pythons.each do |python| - system python.opt_libexec/"bin/python", "-c", <<~EOS - import typing_extensions - EOS - end - - (testpath/"test.py").write <<~EOS - import typing_extensions - - class Movie(typing_extensions.TypedDict): - title: str - year: typing_extensions.NotRequired[int] - - m = Movie(title="Grease") - EOS - system "mypy", testpath/"test.py" - end -end diff --git a/Formula/s/sslyze.rb b/Formula/s/sslyze.rb index 15720aced6b1c..c5dd5b80aefd6 100644 --- a/Formula/s/sslyze.rb +++ b/Formula/s/sslyze.rb @@ -40,7 +40,6 @@ class Sslyze < Formula depends_on "rust" => :build # for cryptography depends_on "openssl@1.1" depends_on "pycparser" - depends_on "python-typing-extensions" depends_on "python@3.11" uses_from_macos "libffi", since: :catalina