Skip to content

Commit e5e8ccc

Browse files
committed
watson: migrate to python@3.14
1 parent 4779cd7 commit e5e8ccc

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

Formula/w/watson.rb

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@ class Watson < Formula
2020
sha256 cellar: :any_skip_relocation, x86_64_linux: "fd7b5055e5834e22b6d6ad07b237d8ca60a67569f9b62ec46ca727e6c068f13b"
2121
end
2222

23-
depends_on "certifi"
24-
depends_on "python@3.13"
23+
depends_on "certifi" => :no_linkage
24+
depends_on "python@3.14"
2525

2626
resource "arrow" do
2727
url "https://files.pythonhosted.org/packages/2e/00/0f6e8fcdb23ea632c866620cc872729ff43ed91d284c866b515c6342b173/arrow-1.3.0.tar.gz"
2828
sha256 "d4540617648cb5f895730f1ad8c82a65f2dad0166f57b75f3ca54759c4d67a85"
2929
end
3030

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

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

4141
resource "click-didyoumean" do
@@ -44,8 +44,8 @@ class Watson < Formula
4444
end
4545

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

5151
resource "python-dateutil" do
@@ -54,8 +54,8 @@ class Watson < Formula
5454
end
5555

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

6161
resource "six" do
@@ -64,8 +64,8 @@ class Watson < Formula
6464
end
6565

6666
resource "types-python-dateutil" do
67-
url "https://files.pythonhosted.org/packages/ef/88/d65ed807393285204ab6e2801e5d11fbbea811adcaa979a2ed3b67a5ef41/types_python_dateutil-2.9.0.20250516.tar.gz"
68-
sha256 "13e80d6c9c47df23ad773d54b2826bd52dbbb41be87c3f339381c1700ad21ee5"
67+
url "https://files.pythonhosted.org/packages/fc/83/24ed25dd0c6277a1a170c180ad9eef5879ecc9a4745b58d7905a4588c80d/types_python_dateutil-2.9.0.20251008.tar.gz"
68+
sha256 "c3826289c170c93ebd8360c3485311187df740166dbab9dd3b792e69f2bc1f9c"
6969
end
7070

7171
resource "urllib3" do
@@ -74,6 +74,10 @@ class Watson < Formula
7474
end
7575

7676
def install
77+
# Fix to TypeError: argument of type 'NoneType' for `if 'json' in output_format:`
78+
# Issue ref: https://github.com/jazzband/Watson/issues/512
79+
inreplace "watson/cli.py", "in output_format:", "in (output_format or ''):"
80+
7781
virtualenv_install_with_resources
7882

7983
bash_completion.install "watson.completion" => "watson"

0 commit comments

Comments
 (0)