diff --git a/Formula/p/python-charset-normalizer.rb b/Formula/p/python-charset-normalizer.rb deleted file mode 100644 index 1fe655086716d..0000000000000 --- a/Formula/p/python-charset-normalizer.rb +++ /dev/null @@ -1,49 +0,0 @@ -class PythonCharsetNormalizer < Formula - desc "Real First Universal Charset Detector, maintained alternative to Chardet" - homepage "https://charset-normalizer.readthedocs.io/en/latest/" - url "https://files.pythonhosted.org/packages/63/09/c1bc53dab74b1816a00d8d030de5bf98f724c52c1635e07681d312f20be8/charset-normalizer-3.3.2.tar.gz" - sha256 "f30c3cb33b24454a82faecaf01b19c18562b1e89558fb6c56de4d9118a032fd5" - license "MIT" - - bottle do - sha256 cellar: :any_skip_relocation, arm64_sonoma: "cf56118490db56357ca3c93f9ab7cc47d67059fc6b2a8d98e8706d230f306611" - sha256 cellar: :any_skip_relocation, arm64_ventura: "fd8b0e195c0b141f072a48aadca5329215954c94acb929370bc94c9cf7836374" - sha256 cellar: :any_skip_relocation, arm64_monterey: "b66982913189e8ad4f7e10d5516722cf76f2d8b764ce3bafdea67eb3a607b619" - sha256 cellar: :any_skip_relocation, sonoma: "4f3436649fe6983ccae0e594fa6adeddc26d8ba76859cd6541263bffc326ebcb" - sha256 cellar: :any_skip_relocation, ventura: "34ac7817bc31df65535561b0f4ef5a76b5b98869eb58f55adef16096163cf59d" - sha256 cellar: :any_skip_relocation, monterey: "3a9c34b3d07577b21ecc2304892df8071ea544c3f60419867b624ab531f3b92d" - sha256 cellar: :any_skip_relocation, x86_64_linux: "8c94c6c9984fe7b9e2c079e855886199ba04896fc608f43949bbeda964097949" - end - - disable! date: "2024-06-23", 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 charset_normalizer" - end - end -end diff --git a/Formula/p/python-idna.rb b/Formula/p/python-idna.rb deleted file mode 100644 index 4e43138038110..0000000000000 --- a/Formula/p/python-idna.rb +++ /dev/null @@ -1,49 +0,0 @@ -class PythonIdna < Formula - desc "Internationalized Domain Names in Applications (IDNA)" - homepage "https://github.com/kjd/idna" - url "https://files.pythonhosted.org/packages/bf/3f/ea4b9117521a1e9c50344b909be7886dd00a519552724809bb1f486986c2/idna-3.6.tar.gz" - sha256 "9ecdbbd083b06798ae1e86adcbfe8ab1479cf864e4ee30fe4e46a003d12491ca" - license "BSD-3-Clause" - - bottle do - sha256 cellar: :any_skip_relocation, arm64_sonoma: "f90af9305ceef80cc8496fa0cac3e8826987609458c837422ea317ba2f8f4f63" - sha256 cellar: :any_skip_relocation, arm64_ventura: "b5a92a95f7b657c476f0d21d783f7f91756bf57485ef00e8bdf56e21315bcc52" - sha256 cellar: :any_skip_relocation, arm64_monterey: "bc4fb54e5e8d994cc019a987174e7e89e1f221cf48c0b2a0aa72724b5f460ba0" - sha256 cellar: :any_skip_relocation, sonoma: "f5b25bd4399569642fd192f26ec9c316cd46eb26812c07520282bc68c80f58d5" - sha256 cellar: :any_skip_relocation, ventura: "82e8ef90294d2b13cd77adc80af26bd2ccde80e5899d683208c2cc48d163e404" - sha256 cellar: :any_skip_relocation, monterey: "6e26a5d8b2fe7165ba4515f180e46416e38d62b3847ec38748d2437d1875862b" - sha256 cellar: :any_skip_relocation, x86_64_linux: "8efe129e5a958477ceddfe5f1a6fa039924b4811a7315f2052b39d99eb27dc8e" - end - - disable! date: "2024-06-23", 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 idna" - end - end -end diff --git a/Formula/p/python-requests.rb b/Formula/p/python-requests.rb deleted file mode 100644 index 0011f8778b581..0000000000000 --- a/Formula/p/python-requests.rb +++ /dev/null @@ -1,53 +0,0 @@ -class PythonRequests < Formula - desc "Python HTTP for Humans" - homepage "https://requests.readthedocs.io/en/latest/" - url "https://files.pythonhosted.org/packages/9d/be/10918a2eac4ae9f02f6cfe6414b7a155ccd8f7f9d4380d62fd5b955065c3/requests-2.31.0.tar.gz" - sha256 "942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1" - license "Apache-2.0" - - bottle do - sha256 cellar: :any_skip_relocation, arm64_sonoma: "1607276a72136ed335e4cbf73b43a1e3a6d5936b9e1ea74a5d3f73ef5ee9e6e5" - sha256 cellar: :any_skip_relocation, arm64_ventura: "ef53ca288c1f15629dd76ec733aea0111db0eb562ee9de419e8251acff0622a3" - sha256 cellar: :any_skip_relocation, arm64_monterey: "afd1100ee1bb35c2c0f6d058fdcd35cc743fbd3c4db0bef7d38f5e454d7a23d9" - sha256 cellar: :any_skip_relocation, sonoma: "389f1e4f5336bc90c74f8f14623adbef4dbae7e3b0184b9fb91639eb47cc11ea" - sha256 cellar: :any_skip_relocation, ventura: "f505434e2a709c42fb16447e45dc63fb260600aba3f9ec2dc9e32bee813b0980" - sha256 cellar: :any_skip_relocation, monterey: "2fa70934730752bef5b1282e063eded8a7f8ff4d14a2d6b865d826d300d8414b" - sha256 cellar: :any_skip_relocation, x86_64_linux: "38eb54a3c08da5790c7da2dbbe36992772214a7bf2ce87a73b5f58930ec7b0a8" - end - - disable! date: "2024-06-23", 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 "certifi" - depends_on "python-charset-normalizer" - depends_on "python-idna" - depends_on "python-urllib3" - - 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 requests" - end - end -end diff --git a/Formula/p/python-urllib3.rb b/Formula/p/python-urllib3.rb deleted file mode 100644 index 61e70afa58b96..0000000000000 --- a/Formula/p/python-urllib3.rb +++ /dev/null @@ -1,49 +0,0 @@ -class PythonUrllib3 < Formula - desc "HTTP library with thread-safe connection pooling, file post, and more" - homepage "https://urllib3.readthedocs.io/en/stable/" - url "https://files.pythonhosted.org/packages/7a/50/7fd50a27caa0652cd4caf224aa87741ea41d3265ad13f010886167cfcc79/urllib3-2.2.1.tar.gz" - sha256 "d0570876c61ab9e520d776c38acbbb5b05a776d3f9ff98a5c8fd5162a444cf19" - license "MIT" - - bottle do - sha256 cellar: :any_skip_relocation, arm64_sonoma: "68346b40c64380528096a15eb4abb3a0d63a0777b12bcb38b02d053df0c49e3b" - sha256 cellar: :any_skip_relocation, arm64_ventura: "d07ef1e04607dcf20ea254e5401db471e78804b8b834c7a10e7b7fcf503be4da" - sha256 cellar: :any_skip_relocation, arm64_monterey: "ee2d5f78b7846dc93cd36fb30311d1cd6a927f981461a363be254526f0e3d3f9" - sha256 cellar: :any_skip_relocation, sonoma: "2f3277c0094b71f66a39c0d620613c2910fce882433a775e55004f66aeb590b8" - sha256 cellar: :any_skip_relocation, ventura: "1f81b664c6227effdb59978bd34f0418aee777a12372a9c14f8aa947378c10e5" - sha256 cellar: :any_skip_relocation, monterey: "5d9940962f71c693e6377190c5f7da4cac1897c6d49d99ee057c9e7c05adfd4a" - sha256 cellar: :any_skip_relocation, x86_64_linux: "a93d805dc32d35932eeb16e26b24bf513e53815cea88aada3d5da426bf91fa07" - end - - disable! date: "2024-06-23", 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 urllib3" - end - end -end diff --git a/pypi_formula_mappings.json b/pypi_formula_mappings.json index c9ed1bb351e72..044fd38e18b36 100644 --- a/pypi_formula_mappings.json +++ b/pypi_formula_mappings.json @@ -672,9 +672,6 @@ "python-matplotlib": { "exclude_packages": ["numpy", "pillow"] }, - "python-requests": { - "exclude_packages": ["certifi", "charset-normalizer", "idna", "urllib3"] - }, "pythran": { "exclude_packages": ["numpy"] },