Skip to content
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
141 changes: 82 additions & 59 deletions Formula/s/sickchill.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ class Sickchill < Formula
sha256 "e7079bb77b415eb6697a63d9018db1ad317d06ad285d0d77893747cbf000aa17"
license "GPL-3.0-or-later"
revision 3
head "https://github.com/SickChill/SickChill.git", branch: "master"

bottle do
sha256 cellar: :any_skip_relocation, arm64_tahoe: "ca624275ee4cdb61fd63a6c3c400ce82f8226b15a921a7253d164d3b1d7667d5"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "0de949c3d5312e5235c4f3221e579a44215042d6e9855971454bab017a401af3"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "4bb1e6c596ddd8c99a708c85cb8c7c721496463d37b981b7d11d3b06f465ae8e"
sha256 cellar: :any_skip_relocation, arm64_ventura: "98a95b2dda71e8f950c30e16e266490462a1dced84a9a5590d73c67c2580722a"
sha256 cellar: :any_skip_relocation, sonoma: "143b56432655a6b6949e48b2d5a9f5a575f86de225dba6ab8b1cce5d998fc4e8"
sha256 cellar: :any_skip_relocation, ventura: "16320aa1c8ba370423ba9b5378799013ceb865cd593b24b71dbcc85e4997a465"
sha256 cellar: :any_skip_relocation, arm64_linux: "3e19a4b29ed149e969e8903546cc4b5e9a6e1ba00b76accf846aa4cfc4f94308"
sha256 cellar: :any_skip_relocation, x86_64_linux: "31dd25adaa1c9e0dd51cc4907bd6565cf9af53bb42369eb682a7f5bffd1a4423"
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_tahoe: "1b827a5bd276086d731ceb0389a40b264ebc405f88ff9a3a7f5c891c7093e929"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "3af82a1bf3ea538252adc3f10a79801e1aca2d84dfb4bcc74391b67754afc765"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "f5c3d35af1b7bb28eb938451360999327b9c58dca8e2bc8741ca45a219716b2d"
sha256 cellar: :any_skip_relocation, sonoma: "ad13fdce74d46cea035deb76e0897e670847ecd9fa853a12290dc4616f25f17c"
sha256 cellar: :any_skip_relocation, arm64_linux: "73063208845aa7f7937028f3848d08b45133a27925f1f3f15e699b036c0310ab"
sha256 cellar: :any_skip_relocation, x86_64_linux: "4b0e5c976dc0e5e731322237a48d909e9bb03717a5dbd6b9654d45ea9c01b459"
end

depends_on "certifi"
depends_on "cryptography"
depends_on "python@3.13"
depends_on "python@3.14"

uses_from_macos "libxml2", since: :ventura
uses_from_macos "libxslt"
Expand All @@ -37,8 +37,8 @@ class Sickchill < Formula
end

resource "beautifulsoup4" do
url "https://files.pythonhosted.org/packages/d8/e4/0c4c39e18fd76d6a628d4dd8da40543d136ce2d1752bd6eeeab0791f4d6b/beautifulsoup4-4.13.4.tar.gz"
sha256 "dbb3c4e1ceae6aefebdaf2423247260cd062430a410e38c66f2baa50a8437195"
url "https://files.pythonhosted.org/packages/77/e9/df2358efd7659577435e2177bfa69cba6c33216681af51a707193dec162a/beautifulsoup4-4.14.2.tar.gz"
sha256 "2a98ab9f944a11acee9cc848508ec28d9228abfd522ef0fad6a02a72e0ded69e"
end

resource "beekeeper-alt" do
Expand All @@ -62,18 +62,27 @@ class Sickchill < Formula
end

resource "charset-normalizer" do
url "https://files.pythonhosted.org/packages/e4/33/89c2ced2b67d1c2a61c19c6751aa8902d46ce3dacb23600a283619f5a12d/charset_normalizer-3.4.2.tar.gz"
sha256 "5baececa9ecba31eff645232d59845c07aa030f0c81ee70184a90d35099a0e63"
url "https://files.pythonhosted.org/packages/13/69/33ddede1939fdd074bce5434295f38fae7136463422fe4fd3e0e89b98062/charset_normalizer-3.4.4.tar.gz"
sha256 "94537985111c35f28720e43603b8e7b43a6ecfb2ce1d3058bbe955b73404e21a"
end

resource "cinemagoer" do
url "https://files.pythonhosted.org/packages/06/de/3aa6eb738b5c5e39f1909bc080a392842841f9af866edb960de2f22af53c/cinemagoer-2023.5.1.tar.gz"
sha256 "5ce1d77ae6546701618f11e5b1556a19d18edecad1b6d7d96973ec34941b18f2"

# Replace `pkgutil.find_loader` removed in 3.14: https://github.com/cinemagoer/cinemagoer/pull/543
patch do
url "https://github.com/cinemagoer/cinemagoer/commit/fec0b1a0f90e2d6201f6fa5fd429f13d9b7a747d.patch?full_index=1"
sha256 "a9f225c42d011f07e0aabb9b29f19c666f8808206787d7e53f9d56df4d749edd"
end
# Backport https://github.com/cinemagoer/cinemagoer/commit/88a86cdacc7737d0fcfe299ad7a2e9b365ff379c and
# https://github.com/cinemagoer/cinemagoer/commit/cb4b61c3be3d7ed0bfc4f3cb506628c3cbb59828
patch :DATA
end

resource "click" do
url "https://files.pythonhosted.org/packages/60/6c/8ca2efa64cf75a977a0d7fac081354553ebe483345c734fb6b6515d96bbc/click-8.2.1.tar.gz"
sha256 "27c491cc05d968d271d5a1db13e3b5a184636d9d930f148c50b038f0d0646202"
url "https://files.pythonhosted.org/packages/46/61/de6cd827efad202d7057d93e0fed9294b96952e188f7384832791c7b2254/click-8.3.0.tar.gz"
sha256 "e7b8232224eba16f4ebe410c25ced9f7875cb5f3263ffc93cc3e8da705e229c4"
end

resource "configobj" do
Expand All @@ -92,8 +101,8 @@ class Sickchill < Formula
end

resource "dogpile-cache" do
url "https://files.pythonhosted.org/packages/e8/07/2257f13f9cd77e71f62076d220b7b59e1f11a70b90eb1e3ef8bdf0f14b34/dogpile_cache-1.4.0.tar.gz"
sha256 "b00a9e2f409cf9bf48c2e7a3e3e68dac5fa75913acbf1a62f827c812d35f3d09"
url "https://files.pythonhosted.org/packages/e7/c8/301ff89746e76745b937606df4753c032787c59ecb37dd4d4250bddc8929/dogpile_cache-1.5.0.tar.gz"
sha256 "849c5573c9a38f155cd4173103c702b637ede0361c12e864876877d0cd125eec"
end

resource "enzyme" do
Expand All @@ -112,8 +121,8 @@ class Sickchill < Formula
end

resource "greenlet" do
url "https://files.pythonhosted.org/packages/c9/92/bb85bd6e80148a4d2e0c59f7c0c2891029f8fd510183afc7d8d2feeed9b6/greenlet-3.2.3.tar.gz"
sha256 "8b0dd8ae4c0d6f5e54ee55ba935eeb3d735a9b58a8a1e5b5cbab64e01a39f365"
url "https://files.pythonhosted.org/packages/03/b8/704d753a5a45507a7aab61f18db9509302ed3d0a27ac7e0359ec2905b1a6/greenlet-3.2.4.tar.gz"
sha256 "0dca0d95ff849f9a364385f36ab49f50065d76964944638be9691e1832e9f86d"
end

resource "guessit" do
Expand All @@ -122,8 +131,8 @@ class Sickchill < Formula
end

resource "idna" do
url "https://files.pythonhosted.org/packages/f1/70/7703c29685631f5a7590aa73f1f1d3fa9a380e654b86af429e0934a32f7d/idna-3.10.tar.gz"
sha256 "12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9"
url "https://files.pythonhosted.org/packages/6f/6d/0703ccc57f3a7233505399edb88de3cbd678da106337b9fcde432b65ed60/idna-3.11.tar.gz"
sha256 "795dafcc9c04ed0c1fb032c2aa73654d8e8c5023a7df64a53f39190ada629902"
end

resource "ifaddr" do
Expand Down Expand Up @@ -152,8 +161,8 @@ class Sickchill < Formula
end

resource "lxml" do
url "https://files.pythonhosted.org/packages/76/3d/14e82fc7c8fb1b7761f7e748fd47e2ec8276d137b6acfe5a4bb73853e08f/lxml-5.4.0.tar.gz"
sha256 "d12832e1dbea4be280b22fd0ea7c9b87f0d8fc51ba06e92dc62d52f804f78ebd"
url "https://files.pythonhosted.org/packages/aa/88/262177de60548e5a2bfc46ad28232c9e9cbde697bd94132aeb80364675cb/lxml-6.0.2.tar.gz"
sha256 "cd79f3367bd74b317dda655dc8fcfa304d9eb6e4fb06b7168c5cf27f96e0cd62"
end

resource "mako" do
Expand All @@ -162,18 +171,18 @@ class Sickchill < Formula
end

resource "markdown2" do
url "https://files.pythonhosted.org/packages/44/52/d7dcc6284d59edb8301b8400435fbb4926a9b0f13a12b5cbaf3a4a54bb7b/markdown2-2.5.3.tar.gz"
sha256 "4d502953a4633408b0ab3ec503c5d6984d1b14307e32b325ec7d16ea57524895"
url "https://files.pythonhosted.org/packages/42/f8/b2ae8bf5f28f9b510ae097415e6e4cb63226bb28d7ee01aec03a755ba03b/markdown2-2.5.4.tar.gz"
sha256 "a09873f0b3c23dbfae589b0080587df52ad75bb09a5fa6559147554736676889"
end

resource "markupsafe" do
url "https://files.pythonhosted.org/packages/b2/97/5d42485e71dfc078108a86d6de8fa46db44a1a9295e89c5d6d4a06e23a62/markupsafe-3.0.2.tar.gz"
sha256 "ee55d3edf80167e48ea11a923c7386f4669df67d7994554387f84e7d8b0a2bf0"
url "https://files.pythonhosted.org/packages/7e/99/7690b6d4034fffd95959cbe0c02de8deb3098cc577c67bb6a24fe5d7caa7/markupsafe-3.0.3.tar.gz"
sha256 "722695808f4b6457b320fdc131280796bdceb04ab50fe1795cd540799ebe1698"
end

resource "msgpack" do
url "https://files.pythonhosted.org/packages/45/b1/ea4f68038a18c77c9467400d166d74c4ffa536f34761f7983a104357e614/msgpack-1.1.1.tar.gz"
sha256 "77b79ce34a2bdab2594f490c8e80dd62a02d650b91a75159a63ec413b8d104cd"
url "https://files.pythonhosted.org/packages/4d/f2/bfb55a6236ed8725a96b0aa3acbd0ec17588e6a2c3b62a93eb513ed8783f/msgpack-1.1.2.tar.gz"
sha256 "3b60763c1373dd60f398488069bcdc703cd08a711477b5d480eecc9f9626f47e"
end

resource "new-rtorrent-python" do
Expand All @@ -191,11 +200,6 @@ class Sickchill < Formula
sha256 "048fb0e9405036518eaaf48a55953c750c11e1a1b68e0dd1a9d62ed0c092cfc5"
end

resource "pbr" do
url "https://files.pythonhosted.org/packages/01/d2/510cc0d218e753ba62a1bc1434651db3cd797a9716a0a66cc714cb4f0935/pbr-6.1.1.tar.gz"
sha256 "93ea72ce6989eb2eed99d0f75721474f69ad88128afdef5ac377eb797c4bf76b"
end

resource "profilehooks" do
url "https://files.pythonhosted.org/packages/18/5a/c69fdf542b730c74b9de1cc2cc02692cd5d6a34a9d95e29217262937f91e/profilehooks-1.13.0.tar.gz"
sha256 "54a541cad49ddccee97b61a617404d7d736bf0bf79d36fbe2ac7caa3a1d9daaf"
Expand Down Expand Up @@ -262,8 +266,8 @@ class Sickchill < Formula
end

resource "requests" do
url "https://files.pythonhosted.org/packages/e1/0a/929373653770d8a0d7ea76c37de6e41f11eb07559b103b1c02cafb3f7cf8/requests-2.32.4.tar.gz"
sha256 "27d0316682c8a29834d3264820024b62a36942083d52caf2f14c0591336d3422"
url "https://files.pythonhosted.org/packages/c9/74/b3ff8e6c8446842c3f5c837e9c3dfcfe2018ea6ecef224c710c85ef728f4/requests-2.32.5.tar.gz"
sha256 "dbba0bac56e100853db0ea71b82b4dfd5fe2bf6d3754a8893c3af500cec7d7cf"
end

resource "requests-oauthlib" do
Expand All @@ -287,18 +291,18 @@ class Sickchill < Formula
end

resource "soupsieve" do
url "https://files.pythonhosted.org/packages/3f/f4/4a80cd6ef364b2e8b65b15816a843c0980f7a5a2b4dc701fc574952aa19f/soupsieve-2.7.tar.gz"
sha256 "ad282f9b6926286d2ead4750552c8a6142bc4c783fd66b0293547c8fe6ae126a"
url "https://files.pythonhosted.org/packages/6d/e6/21ccce3262dd4889aa3332e5a119a3491a95e8f60939870a3a035aabac0d/soupsieve-2.8.tar.gz"
sha256 "e2dd4a40a628cb5f28f6d4b0db8800b8f581b65bb380b97de22ba5ca8d72572f"
end

resource "sqlalchemy" do
url "https://files.pythonhosted.org/packages/63/66/45b165c595ec89aa7dcc2c1cd222ab269bc753f1fc7a1e68f8481bd957bf/sqlalchemy-2.0.41.tar.gz"
sha256 "edba70118c4be3c2b1f90754d308d0b79c6fe2c0fdc52d8ddf603916f83f4db9"
url "https://files.pythonhosted.org/packages/f0/f2/840d7b9496825333f532d2e3976b8eadbf52034178aac53630d09fe6e1ef/sqlalchemy-2.0.44.tar.gz"
sha256 "0ae7454e1ab1d780aee69fd2aae7d6b8670a581d8847f2d1e0f7ddfbf47e5a22"
end

resource "stevedore" do
url "https://files.pythonhosted.org/packages/28/3f/13cacea96900bbd31bb05c6b74135f85d15564fc583802be56976c940470/stevedore-5.4.1.tar.gz"
sha256 "3135b5ae50fe12816ef291baff420acb727fcd356106e3e9cbfa9e5985cd6f4b"
url "https://files.pythonhosted.org/packages/2a/5f/8418daad5c353300b7661dd8ce2574b0410a6316a8be650a189d5c68d938/stevedore-5.5.0.tar.gz"
sha256 "d31496a4f4df9825e1a1e4f1f74d19abb0154aff311c3b376fcc89dae8fccd73"
end

resource "subliminal" do
Expand All @@ -322,8 +326,8 @@ class Sickchill < Formula
end

resource "tornado" do
url "https://files.pythonhosted.org/packages/51/89/c72771c81d25d53fe33e3dca61c233b665b2780f21820ba6fd2c6793c12b/tornado-6.5.1.tar.gz"
sha256 "84ceece391e8eb9b2b95578db65e920d2a61070260594819589609ba9bc6308c"
url "https://files.pythonhosted.org/packages/09/ce/1eb500eae19f4648281bb2186927bb062d2438c2e5093d1360391afd2f90/tornado-6.5.2.tar.gz"
sha256 "ab53c8f9a0fa351e2c0741284e06c7a45da86afb544133201c5cc8578eb076a0"
end

resource "tus-py" do
Expand All @@ -337,8 +341,8 @@ class Sickchill < Formula
end

resource "typing-extensions" do
url "https://files.pythonhosted.org/packages/d1/bc/51647cd02527e87d05cb083ccc402f93e441606ff1f01739a62c8ad09ba5/typing_extensions-4.14.0.tar.gz"
sha256 "8676b788e32f02ab42d9e7c61324048ae4c6d844a399eebace3d4979d75ceef4"
url "https://files.pythonhosted.org/packages/72/94/1a15dd82efb362ac84269196e94cf00f187f7ed21c242792a923cdb1c61f/typing_extensions-4.15.0.tar.gz"
sha256 "0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466"
end

resource "unidecode" do
Expand All @@ -362,8 +366,8 @@ class Sickchill < Formula
end

resource "xmltodict" do
url "https://files.pythonhosted.org/packages/50/05/51dcca9a9bf5e1bce52582683ce50980bcadbc4fa5143b9f2b19ab99958f/xmltodict-0.14.2.tar.gz"
sha256 "201e7c28bb210e374999d1dde6382923ab0ed1a8a5faeece48ab525b7810a553"
url "https://files.pythonhosted.org/packages/6a/aa/917ceeed4dbb80d2f04dbd0c784b7ee7bba8ae5a54837ef0e5e062cd3cfb/xmltodict-1.0.2.tar.gz"
sha256 "54306780b7c2175a3967cad1db92f218207e5bc1aba697d887807c0fb68b7649"
end

def install
Expand All @@ -377,18 +381,37 @@ def install
end

test do
begin
port = free_port.to_s

pid = fork do
exec bin/"sickchill", "--port", port, "--datadir", testpath, "--nolaunch"
end
sleep 30
ensure
Process.kill("TERM", pid)
Process.wait(pid)
end
port = free_port.to_s
pid = spawn bin/"sickchill", "--port", port, "--datadir", testpath, "--nolaunch"
sleep 30
assert_path_exists testpath/"config.ini"
assert_path_exists testpath/"sickchill.db"
ensure
Process.kill("TERM", pid)
Process.wait(pid)
end
end

__END__
diff --git a/imdb/parser/http/piculet.py b/imdb/parser/http/piculet.py
index d0c2b7b..806c9f0 100644
--- a/imdb/parser/http/piculet.py
+++ b/imdb/parser/http/piculet.py
@@ -32,7 +32,7 @@ from argparse import ArgumentParser
from collections import deque
from functools import partial
from operator import itemgetter
-from pkgutil import find_loader
+from importlib.util import find_spec

__version__ = '1.2b1'

@@ -202,7 +202,7 @@ def html_to_xhtml(document, omit_tags=None, omit_attrs=None):
# sigalias: XPathResult = Union[Sequence[str], Sequence[Element]]


-_USE_LXML = find_loader('lxml') is not None
+_USE_LXML = find_spec('lxml') is not None
if _USE_LXML:
from lxml import etree as ElementTree
from lxml.etree import Element
Loading