From e63408b6a8bbde30f444368ae419630ced2f57f7 Mon Sep 17 00:00:00 2001 From: dgb <107956274+dingobits@users.noreply.github.com> Date: Thu, 1 Feb 2024 05:34:56 +0000 Subject: [PATCH 1/6] chore: update dependencies --- Formula/deluge-meta.rb | 97 ++++++++++++------------------------------ 1 file changed, 28 insertions(+), 69 deletions(-) diff --git a/Formula/deluge-meta.rb b/Formula/deluge-meta.rb index bba3795..ae875f0 100644 --- a/Formula/deluge-meta.rb +++ b/Formula/deluge-meta.rb @@ -6,15 +6,11 @@ class DelugeMeta < Formula url "https://files.pythonhosted.org/packages/00/d7/8673068046ded6eaa82caaa2afd6f0751faf591aab5ad150aeafe0d47cb3/deluge-2.1.1.tar.gz" sha256 "d6ea7e1f5bdd75f40cbd1d56f0c97cd1b5b74bc9e03783858c7daa81063dd4b9" license "GPL-3.0" - revision 2 - - bottle do - root_url "https://github.com/Amar1729/homebrew-deluge-meta/releases/download/deluge-meta-2.1.1_2" - sha256 cellar: :any, monterey: "f46d80e72d61ae0310bed8a5999be39612d7c072ad3542da01736d66343f1411" - end + revision 3 depends_on "rust" => :build depends_on "adwaita-icon-theme" + depends_on "cffi" depends_on "gettext" depends_on "gtk+3" depends_on "libffi" @@ -22,19 +18,22 @@ class DelugeMeta < Formula depends_on "libxcb" depends_on "little-cms2" depends_on "openjpeg" + depends_on "pycparser" depends_on "pygobject3" - depends_on "python@3.11" + depends_on "python-attrs" + depends_on "python-cryptography" + depends_on "python-idna" + depends_on "python-mako" + depends_on "python-markupsafe" + depends_on "python-typing-extensions" + depends_on "python@3.12" + depends_on "six" depends_on "zlib" # manually added since Automat requires wheel (cmd bdist_wheel) to build resource "wheel" do - url "https://files.pythonhosted.org/packages/a2/b8/6a06ff0f13a00fc3c3e7d222a995526cbca26c1ad107691b6b1badbbabf1/wheel-0.38.4.tar.gz" - sha256 "965f5259b566725405b05e7cf774052044b1ed30119b5d586b2703aafe8719ac" - end - - resource "attrs" do - url "https://files.pythonhosted.org/packages/21/31/3f468da74c7de4fcf9b25591e682856389b3400b4b62f201e65f15ea3e07/attrs-22.2.0.tar.gz" - sha256 "c9227bfc2f01993c03f68db37d1d15c9690188323c067c641f1a35ca58185f99" + url "https://files.pythonhosted.org/packages/b0/b4/bc2baae3970c282fae6c2cb8e0f179923dceb7eaffb0e76170628f9af97b/wheel-0.42.0.tar.gz" + sha256 "c45be39f7882c9d34243236f2d63cbd58039e360f85d0913425fbd7ceea617a8" end resource "Automat" do @@ -42,19 +41,9 @@ class DelugeMeta < Formula sha256 "e56beb84edad19dcc11d30e8d9b895f75deeb5ef5e96b84a467066b3b84bb04e" end - resource "cffi" do - url "https://files.pythonhosted.org/packages/2b/a8/050ab4f0c3d4c1b8aaa805f70e26e84d0e27004907c5b8ecc1d31815f92a/cffi-1.15.1.tar.gz" - sha256 "d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9" - end - resource "constantly" do - url "https://files.pythonhosted.org/packages/95/f1/207a0a478c4bb34b1b49d5915e2db574cadc415c9ac3a7ef17e29b2e8951/constantly-15.1.0.tar.gz" - sha256 "586372eb92059873e29eba4f9dec8381541b4d3834660707faf8ba59146dfc35" - end - - resource "cryptography" do - url "https://files.pythonhosted.org/packages/12/e3/c46c274cf466b24e5d44df5d5cd31a31ff23e57f074a2bb30931a8c9b01a/cryptography-39.0.0.tar.gz" - sha256 "f964c7dcf7802d133e8dbd1565914fa0194f9d683d82411989889ecd701e8adf" + url "https://files.pythonhosted.org/packages/4d/6f/cb2a94494ff74aa9528a36c5b1422756330a75a8367bf20bd63171fc324d/constantly-23.10.4.tar.gz" + sha256 "aa92b70a33e2ac0bb33cd745eb61776594dc48764b06c35e0efd050b7f1c7cbd" end resource "deluge" do @@ -67,44 +56,24 @@ class DelugeMeta < Formula sha256 "427af957daa58bc909471c6c40f74c5450fa123dd093fc53efd2e91d2705a56b" end - resource "idna" do - url "https://files.pythonhosted.org/packages/8b/e1/43beb3d38dba6cb420cefa297822eac205a277ab43e5ba5d5c46faf96438/idna-3.4.tar.gz" - sha256 "814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4" - end - resource "incremental" do url "https://files.pythonhosted.org/packages/86/42/9e87f04fa2cd40e3016f27a4b4572290e95899c6dce317e2cdb580f3ff09/incremental-22.10.0.tar.gz" sha256 "912feeb5e0f7e0188e6f42241d2f450002e11bbc0937c65865045854c24c0bd0" end - resource "Mako" do - url "https://files.pythonhosted.org/packages/05/5f/2ba6e026d33a0e6ddc1dddf9958677f76f5f80c236bd65309d280b166d3e/Mako-1.2.4.tar.gz" - sha256 "d60a3903dc3bb01a18ad6a89cdbe2e4eadc69c0bc8ef1e3773ba53d44c3f7a34" - end - - resource "MarkupSafe" do - url "https://files.pythonhosted.org/packages/1d/97/2288fe498044284f39ab8950703e88abbac2abbdf65524d576157af70556/MarkupSafe-2.1.1.tar.gz" - sha256 "7f91197cc9e48f989d12e4e6fbc46495c446636dfc81b9ccf50bb0ec74b91d4b" - end - resource "pyasn1" do - url "https://files.pythonhosted.org/packages/a4/db/fffec68299e6d7bad3d504147f9094830b704527a7fc098b721d38cc7fa7/pyasn1-0.4.8.tar.gz" - sha256 "aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba" + url "https://files.pythonhosted.org/packages/ce/dc/996e5446a94627fe8192735c20300ca51535397e31e7097a3cc80ccf78b7/pyasn1-0.5.1.tar.gz" + sha256 "6d391a96e59b23130a5cfa74d6fd7f388dbbe26cc8f1edf39fdddf08d9d6676c" end resource "pyasn1-modules" do - url "https://files.pythonhosted.org/packages/88/87/72eb9ccf8a58021c542de2588a867dbefc7556e14b2866d1e40e9e2b587e/pyasn1-modules-0.2.8.tar.gz" - sha256 "905f84c712230b2c592c19470d3ca8d552de726050d1d1716282a1f6146be65e" - end - - resource "pycparser" do - url "https://files.pythonhosted.org/packages/5e/0b/95d387f5f4433cb0f53ff7ad859bd2c6051051cebbb564f139a999ab46de/pycparser-2.21.tar.gz" - sha256 "e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206" + url "https://files.pythonhosted.org/packages/3b/e4/7dec823b1b5603c5b3c51e942d5d9e65efd6ff946e713a325ed4146d070f/pyasn1_modules-0.3.0.tar.gz" + sha256 "5bd01446b736eb9d31512a30d46c1ac3395d676c6f3cafa4c03eb54b9925631c" end resource "pyOpenSSL" do - url "https://files.pythonhosted.org/packages/af/6e/0706d5e0eac08fcff586366f5198c9bf0a8b46f0f45b1858324e0d94c295/pyOpenSSL-23.0.0.tar.gz" - sha256 "c1cc5f86bcacefc84dada7d31175cae1b1518d5f60d3d0bb595a67822a868a6f" + url "https://files.pythonhosted.org/packages/eb/81/022190e5d21344f6110064f6f52bf0c3b9da86e9e5a64fc4a884856a577d/pyOpenSSL-24.0.0.tar.gz" + sha256 "6aa33039a93fffa4563e655b61d11364d01264be8ccb49906101e02a334530bf" end resource "pyxdg" do @@ -118,32 +87,22 @@ class DelugeMeta < Formula end resource "service-identity" do - url "https://files.pythonhosted.org/packages/09/2e/26ade69944773df4748c19d3053e025b282f48de02aad84906d34a29d28b/service-identity-21.1.0.tar.gz" - sha256 "6e6c6086ca271dc11b033d17c3a8bea9f24ebff920c587da090afc9519419d34" - end - - resource "six" do - url "https://files.pythonhosted.org/packages/71/39/171f1c67cd00715f190ba0b100d606d440a28c93c7714febeca8b79af85e/six-1.16.0.tar.gz" - sha256 "1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926" + url "https://files.pythonhosted.org/packages/38/d2/2ac20fd05f1b6fce31986536da4caeac51ed2e1bb25d4a7d73ca4eccdfab/service_identity-24.1.0.tar.gz" + sha256 "6829c9d62fb832c2e1c435629b0a8c476e1929881f28bee4d20bc24161009221" end resource "Twisted" do - url "https://files.pythonhosted.org/packages/b2/ce/cbb56597127b1d51905b0cddcc3f314cc769769efc5e9a8a67f4617f7bca/Twisted-22.10.0.tar.gz" - sha256 "32acbd40a94f5f46e7b42c109bfae2b302250945561783a8b7a059048f2d4d31" - end - - resource "typing-extensions" do - url "https://files.pythonhosted.org/packages/e3/a7/8f4e456ef0adac43f452efc2d0e4b242ab831297f1bac60ac815d37eb9cf/typing_extensions-4.4.0.tar.gz" - sha256 "1511434bb92bf8dd198c12b1cc812e800d4181cfcb867674e0f8279cc93087aa" + url "https://files.pythonhosted.org/packages/6e/d3/077ece8f12cd82419bd68bb34cf4538c4df5bb9202835e7a18358223e537/twisted-23.10.0.tar.gz" + sha256 "987847a0790a2c597197613686e2784fd54167df3a55d0fb17c8412305d76ce5" end resource "zope.interface" do - url "https://files.pythonhosted.org/packages/38/6f/fbfb7dde38be7e5644bb342c4c7cdc444cd5e2ffbd70d091263b3858a8cb/zope.interface-5.5.2.tar.gz" - sha256 "bfee1f3ff62143819499e348f5b8a7f3aa0259f9aca5e0ddae7391d059dce671" + url "https://files.pythonhosted.org/packages/87/03/6b85c1df2dca1b9acca38b423d1e226d8ffdf30ebd78bcb398c511de8b54/zope.interface-6.1.tar.gz" + sha256 "2fdc7ccbd6eb6b7df5353012fbed6c3c5d04ceaca0038f75e601060e95345309" end def install - virtualenv_install_with_resources using: "python@3.11" + virtualenv_install_with_resources using: "python@3.12" %w[deluge deluge-console deluge-gtk deluge-web deluged].each do |cmd| (bin/cmd).write_env_script(libexec/"bin/#{cmd}", PYTHONPATH: ENV["PYTHONPATH"]) From aa783feada4e0f68ac5cfed80be76bcfb87a68f6 Mon Sep 17 00:00:00 2001 From: Amar1729 Date: Thu, 28 Mar 2024 15:44:39 -0400 Subject: [PATCH 2/6] deluge-meta: bump python deps, re-add attrs, idna, mako, markupsafe due to removal --- Formula/deluge-meta.rb | 48 ++++++++++++++++++++++++++++-------------- 1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/Formula/deluge-meta.rb b/Formula/deluge-meta.rb index ae875f0..df22b2f 100644 --- a/Formula/deluge-meta.rb +++ b/Formula/deluge-meta.rb @@ -20,11 +20,7 @@ class DelugeMeta < Formula depends_on "openjpeg" depends_on "pycparser" depends_on "pygobject3" - depends_on "python-attrs" depends_on "python-cryptography" - depends_on "python-idna" - depends_on "python-mako" - depends_on "python-markupsafe" depends_on "python-typing-extensions" depends_on "python@3.12" depends_on "six" @@ -32,8 +28,13 @@ class DelugeMeta < Formula # manually added since Automat requires wheel (cmd bdist_wheel) to build resource "wheel" do - url "https://files.pythonhosted.org/packages/b0/b4/bc2baae3970c282fae6c2cb8e0f179923dceb7eaffb0e76170628f9af97b/wheel-0.42.0.tar.gz" - sha256 "c45be39f7882c9d34243236f2d63cbd58039e360f85d0913425fbd7ceea617a8" + url "https://files.pythonhosted.org/packages/b8/d6/ac9cd92ea2ad502ff7c1ab683806a9deb34711a1e2bd8a59814e8fc27e69/wheel-0.43.0.tar.gz" + sha256 "465ef92c69fa5c5da2d1cf8ac40559a8c940886afcef87dcf14b9470862f1d85" + end + + resource "attrs" do + url "https://files.pythonhosted.org/packages/e3/fc/f800d51204003fa8ae392c4e8278f256206e7a919b708eef054f5f4b650d/attrs-23.2.0.tar.gz" + sha256 "935dc3b529c262f6cf76e50877d35a4bd3c1de194fd41f47a2b7ae8f19971f30" end resource "Automat" do @@ -56,24 +57,39 @@ class DelugeMeta < Formula sha256 "427af957daa58bc909471c6c40f74c5450fa123dd093fc53efd2e91d2705a56b" end + resource "idna" do + url "https://files.pythonhosted.org/packages/bf/3f/ea4b9117521a1e9c50344b909be7886dd00a519552724809bb1f486986c2/idna-3.6.tar.gz" + sha256 "9ecdbbd083b06798ae1e86adcbfe8ab1479cf864e4ee30fe4e46a003d12491ca" + end + resource "incremental" do url "https://files.pythonhosted.org/packages/86/42/9e87f04fa2cd40e3016f27a4b4572290e95899c6dce317e2cdb580f3ff09/incremental-22.10.0.tar.gz" sha256 "912feeb5e0f7e0188e6f42241d2f450002e11bbc0937c65865045854c24c0bd0" end + resource "Mako" do + url "https://files.pythonhosted.org/packages/d4/1b/71434d9fa9be1ac1bc6fb5f54b9d41233be2969f16be759766208f49f072/Mako-1.3.2.tar.gz" + sha256 "2a0c8ad7f6274271b3bb7467dd37cf9cc6dab4bc19cb69a4ef10669402de698e" + end + + resource "MarkupSafe" do + url "https://files.pythonhosted.org/packages/87/5b/aae44c6655f3801e81aa3eef09dbbf012431987ba564d7231722f68df02d/MarkupSafe-2.1.5.tar.gz" + sha256 "d283d37a890ba4c1ae73ffadf8046435c76e7bc2247bbb63c00bd1a709c6544b" + end + resource "pyasn1" do - url "https://files.pythonhosted.org/packages/ce/dc/996e5446a94627fe8192735c20300ca51535397e31e7097a3cc80ccf78b7/pyasn1-0.5.1.tar.gz" - sha256 "6d391a96e59b23130a5cfa74d6fd7f388dbbe26cc8f1edf39fdddf08d9d6676c" + url "https://files.pythonhosted.org/packages/4a/a3/d2157f333900747f20984553aca98008b6dc843eb62f3a36030140ccec0d/pyasn1-0.6.0.tar.gz" + sha256 "3a35ab2c4b5ef98e17dfdec8ab074046fbda76e281c5a706ccd82328cfc8f64c" end resource "pyasn1-modules" do - url "https://files.pythonhosted.org/packages/3b/e4/7dec823b1b5603c5b3c51e942d5d9e65efd6ff946e713a325ed4146d070f/pyasn1_modules-0.3.0.tar.gz" - sha256 "5bd01446b736eb9d31512a30d46c1ac3395d676c6f3cafa4c03eb54b9925631c" + url "https://files.pythonhosted.org/packages/f7/00/e7bd1dec10667e3f2be602686537969a7ac92b0a7c5165be2e5875dc3971/pyasn1_modules-0.4.0.tar.gz" + sha256 "831dbcea1b177b28c9baddf4c6d1013c24c3accd14a1873fffaa6a2e905f17b6" end resource "pyOpenSSL" do - url "https://files.pythonhosted.org/packages/eb/81/022190e5d21344f6110064f6f52bf0c3b9da86e9e5a64fc4a884856a577d/pyOpenSSL-24.0.0.tar.gz" - sha256 "6aa33039a93fffa4563e655b61d11364d01264be8ccb49906101e02a334530bf" + url "https://files.pythonhosted.org/packages/91/a8/cbeec652549e30103b9e6147ad433405fdd18807ac2d54e6dbb73184d8a1/pyOpenSSL-24.1.0.tar.gz" + sha256 "cabed4bfaa5df9f1a16c0ef64a0cb65318b5cd077a7eda7d6970131ca2f41a6f" end resource "pyxdg" do @@ -92,13 +108,13 @@ class DelugeMeta < Formula end resource "Twisted" do - url "https://files.pythonhosted.org/packages/6e/d3/077ece8f12cd82419bd68bb34cf4538c4df5bb9202835e7a18358223e537/twisted-23.10.0.tar.gz" - sha256 "987847a0790a2c597197613686e2784fd54167df3a55d0fb17c8412305d76ce5" + url "https://files.pythonhosted.org/packages/fc/8d/9c09d75173984d3b0f0dcf65d885fe61a06de11db2c30b1196d85f631cfc/twisted-24.3.0.tar.gz" + sha256 "6b38b6ece7296b5e122c9eb17da2eeab3d98a198f50ca9efd00fb03e5b4fd4ae" end resource "zope.interface" do - url "https://files.pythonhosted.org/packages/87/03/6b85c1df2dca1b9acca38b423d1e226d8ffdf30ebd78bcb398c511de8b54/zope.interface-6.1.tar.gz" - sha256 "2fdc7ccbd6eb6b7df5353012fbed6c3c5d04ceaca0038f75e601060e95345309" + url "https://files.pythonhosted.org/packages/cd/37/1b003190ba7148226a8212d98ff8074e212fef30c82e616bdb818ae1f838/zope.interface-6.2.tar.gz" + sha256 "3b6c62813c63c543a06394a636978b22dffa8c5410affc9331ce6cdb5bfa8565" end def install From ebbb9b251dc4bcd74805775c4dd4b71ec3dccea9 Mon Sep 17 00:00:00 2001 From: Amar1729 Date: Thu, 28 Mar 2024 15:47:21 -0400 Subject: [PATCH 3/6] deluge-meta: python-cryptography -> cryptography --- Formula/deluge-meta.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/deluge-meta.rb b/Formula/deluge-meta.rb index df22b2f..ee98d25 100644 --- a/Formula/deluge-meta.rb +++ b/Formula/deluge-meta.rb @@ -11,6 +11,7 @@ class DelugeMeta < Formula depends_on "rust" => :build depends_on "adwaita-icon-theme" depends_on "cffi" + depends_on "cryptography" depends_on "gettext" depends_on "gtk+3" depends_on "libffi" @@ -20,7 +21,6 @@ class DelugeMeta < Formula depends_on "openjpeg" depends_on "pycparser" depends_on "pygobject3" - depends_on "python-cryptography" depends_on "python-typing-extensions" depends_on "python@3.12" depends_on "six" From ff9001d9d26faab8248e27878a916c1d25e3ce4c Mon Sep 17 00:00:00 2001 From: Amar1729 Date: Thu, 28 Mar 2024 16:25:15 -0400 Subject: [PATCH 4/6] deluge-meta: rename "zope.interface" -> "zope-interface" `brew-audit` has become more strict since this formula was written. --- Formula/deluge-meta.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/deluge-meta.rb b/Formula/deluge-meta.rb index ee98d25..e32797a 100644 --- a/Formula/deluge-meta.rb +++ b/Formula/deluge-meta.rb @@ -112,7 +112,7 @@ class DelugeMeta < Formula sha256 "6b38b6ece7296b5e122c9eb17da2eeab3d98a198f50ca9efd00fb03e5b4fd4ae" end - resource "zope.interface" do + resource "zope-interface" do url "https://files.pythonhosted.org/packages/cd/37/1b003190ba7148226a8212d98ff8074e212fef30c82e616bdb818ae1f838/zope.interface-6.2.tar.gz" sha256 "3b6c62813c63c543a06394a636978b22dffa8c5410affc9331ce6cdb5bfa8565" end From c32c465bc9965b75607caebd0843a13ffe426efd Mon Sep 17 00:00:00 2001 From: Amar1729 Date: Fri, 29 Mar 2024 01:35:17 -0400 Subject: [PATCH 5/6] deluge-meta: remove deluge-gtk, as the GLib import is currently broken --- Formula/deluge-meta.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/deluge-meta.rb b/Formula/deluge-meta.rb index e32797a..0bdc8f5 100644 --- a/Formula/deluge-meta.rb +++ b/Formula/deluge-meta.rb @@ -120,7 +120,7 @@ class DelugeMeta < Formula def install virtualenv_install_with_resources using: "python@3.12" - %w[deluge deluge-console deluge-gtk deluge-web deluged].each do |cmd| + %w[deluge deluge-console deluge-web deluged].each do |cmd| (bin/cmd).write_env_script(libexec/"bin/#{cmd}", PYTHONPATH: ENV["PYTHONPATH"]) end From b4367291d4f6dfaa5660aea0a0b15665413bfd3e Mon Sep 17 00:00:00 2001 From: Amar1729 Date: Fri, 29 Mar 2024 01:54:40 -0400 Subject: [PATCH 6/6] deluge-meta: also depend on setuptools (pkg_resources) --- Formula/deluge-meta.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Formula/deluge-meta.rb b/Formula/deluge-meta.rb index 0bdc8f5..126af52 100644 --- a/Formula/deluge-meta.rb +++ b/Formula/deluge-meta.rb @@ -21,6 +21,7 @@ class DelugeMeta < Formula depends_on "openjpeg" depends_on "pycparser" depends_on "pygobject3" + depends_on "python-setuptools" depends_on "python-typing-extensions" depends_on "python@3.12" depends_on "six"