Skip to content

Commit 9dfc023

Browse files
authored
Merge pull request Homebrew#218339 from Homebrew/bump-notifiers-1.3.5
notifiers 1.3.5
2 parents 5019e85 + b440c96 commit 9dfc023

File tree

2 files changed

+22
-47
lines changed

2 files changed

+22
-47
lines changed

.github/autobump.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2453,6 +2453,7 @@ noseyparker
24532453
notation
24542454
notcurses
24552455
noti
2456+
notifiers
24562457
notify
24572458
nox
24582459
nping

Formula/n/notifiers.rb

Lines changed: 21 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -3,39 +3,37 @@ class Notifiers < Formula
33

44
desc "Easy way to send notifications"
55
homepage "https://pypi.org/project/notifiers/"
6-
url "https://files.pythonhosted.org/packages/54/fc/aa5de032cc8d9ee41ceba7bbea98e2ed7090d7d95465dfe0179eb937146f/notifiers-1.3.3.tar.gz"
7-
sha256 "9fd8d95ab1ebcd3852423755aa90cbb0f72a805ca77af0d8c9ad7af445f58399"
6+
url "https://files.pythonhosted.org/packages/51/c2/1e36b5774b3ccbcb5f63133bf3fade097cd58fbdd9947248ab43777f705a/notifiers-1.3.5.tar.gz"
7+
sha256 "bae24057f4dcb85563712c57bb1439dd96aeb0794df6697dff77c17efbc4dd43"
88
license "MIT"
9-
revision 6
109

1110
bottle do
12-
rebuild 2
13-
sha256 cellar: :any, arm64_sequoia: "300a45400582879b760961cd9f525b80ed441b32c521d0906507908e3048aa68"
14-
sha256 cellar: :any, arm64_sonoma: "96e52beab3b7f4f970ab35b0503960e5dfdcebafa3328e8d0e59cdf994d6c947"
15-
sha256 cellar: :any, arm64_ventura: "457f3a729ded33ed9beb948a57adee6fbd7602fa969d415bbf526455ea1bf043"
16-
sha256 cellar: :any, sonoma: "c96537d4fb246ed71c41bfe6c61fd5f9a29eae517fb368b11a2c9313c2fbcf36"
17-
sha256 cellar: :any, ventura: "2024eaac6704991a447f683b6df66129055273e49d9edcfeb4c80a3aeef2bc96"
18-
sha256 cellar: :any_skip_relocation, arm64_linux: "5af85ebe0bad3d18355ae10cabab6648750552c422f58f6d385cda62a7804dfc"
19-
sha256 cellar: :any_skip_relocation, x86_64_linux: "87b54598ebff943a76750851764c55942cc308c3fc1f0f7d6a672d97465ddd08"
11+
sha256 cellar: :any, arm64_sequoia: "11ebab39c6d85a806a6e9fc9f1b72adf92f8993783f8a75312bb1a5794e83c5f"
12+
sha256 cellar: :any, arm64_sonoma: "c615419b970c4dcfd8728efe90253909e8211054cb92d8980afd9b44462df506"
13+
sha256 cellar: :any, arm64_ventura: "9e9f4b2e767226a0817e045f475f589c9bdda8fc34538cd37ef25b6d49012034"
14+
sha256 cellar: :any, sonoma: "c23986b48ab53a2b654b61c02dde1ef9f107f3155f1625c25e3f6e71b36a2bc5"
15+
sha256 cellar: :any, ventura: "cba2fdef7b1f6da1ba6584d6d4656c25222aacdb00a2cf51e77d2bd78a1aee8b"
16+
sha256 cellar: :any_skip_relocation, arm64_linux: "90abd812f4f5d7d295cb4187b26842221edc9f0fa8a124e1eb0e5acf85da08db"
17+
sha256 cellar: :any_skip_relocation, x86_64_linux: "88ae7c98d8435e74025269957c336a44b975dbffe26eba29e1b192bb55cb9807"
2018
end
2119

2220
depends_on "rust" => :build # for rpds-py
2321
depends_on "certifi"
2422
depends_on "[email protected]"
2523

2624
resource "attrs" do
27-
url "https://files.pythonhosted.org/packages/fc/0f/aafca9af9315aee06a89ffde799a10a582fe8de76c563ee80bbcdc08b3fb/attrs-24.2.0.tar.gz"
28-
sha256 "5cfb1b9148b5b086569baec03f20d7b6bf3bcacc9a42bebf87ffaaca362f6346"
25+
url "https://files.pythonhosted.org/packages/5a/b0/1367933a8532ee6ff8d63537de4f1177af4bff9f3e829baf7331f595bb24/attrs-25.3.0.tar.gz"
26+
sha256 "75d7cefc7fb576747b2c81b4442d4d4a1ce0900973527c011d1030fd3bf4af1b"
2927
end
3028

3129
resource "charset-normalizer" do
32-
url "https://files.pythonhosted.org/packages/f2/4f/e1808dc01273379acc506d18f1504eb2d299bd4131743b9fc54d7be4df1e/charset_normalizer-3.4.0.tar.gz"
33-
sha256 "223217c3d4f82c3ac5e29032b3f1c2eb0fb591b72161f86d93f5719079dae93e"
30+
url "https://files.pythonhosted.org/packages/16/b0/572805e227f01586461c80e0fd25d65a2115599cc9dad142fee4b747c357/charset_normalizer-3.4.1.tar.gz"
31+
sha256 "44251f18cd68a75b56585dd00dae26183e102cd5e0f9f1466e6df5da2ed64ea3"
3432
end
3533

3634
resource "click" do
37-
url "https://files.pythonhosted.org/packages/96/d3/f04c7bfcf5c1862a2a5b845c6b2b360488cf47af55dfa79c98f6a6bf98b5/click-8.1.7.tar.gz"
38-
sha256 "ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de"
35+
url "https://files.pythonhosted.org/packages/b9/2e/0090cbf739cee7d23781ad4b89a9894a41538e4fcf4c31dcdd705b78eb8b/click-8.1.8.tar.gz"
36+
sha256 "ed53c9d8990d83c2a27deae68e4ee337473f6330c040a31d4225c9574d16096a"
3937
end
4038

4139
resource "idna" do
@@ -54,8 +52,8 @@ class Notifiers < Formula
5452
end
5553

5654
resource "referencing" do
57-
url "https://files.pythonhosted.org/packages/99/5b/73ca1f8e72fff6fa52119dbd185f73a907b1989428917b24cff660129b6d/referencing-0.35.1.tar.gz"
58-
sha256 "25b42124a6c8b632a425174f24087783efb348a6f1e0008e63cd4466fedf703c"
55+
url "https://files.pythonhosted.org/packages/2f/db/98b5c277be99dd18bfd91dd04e1b759cad18d1a338188c936e92f921c7e2/referencing-0.36.2.tar.gz"
56+
sha256 "df2e89862cd09deabbdba16944cc3f10feb6b3e6f18e902f7cc25609a34775aa"
5957
end
6058

6159
resource "requests" do
@@ -64,18 +62,15 @@ class Notifiers < Formula
6462
end
6563

6664
resource "rpds-py" do
67-
url "https://files.pythonhosted.org/packages/55/64/b693f262791b818880d17268f3f8181ef799b0d187f6f731b1772e05a29a/rpds_py-0.20.0.tar.gz"
68-
sha256 "d72a210824facfdaf8768cf2d7ca25a042c30320b3020de2fa04640920d4e121"
65+
url "https://files.pythonhosted.org/packages/0b/b3/52b213298a0ba7097c7ea96bee95e1947aa84cc816d48cebb539770cdf41/rpds_py-0.24.0.tar.gz"
66+
sha256 "772cc1b2cd963e7e17e6cc55fe0371fb9c704d63e44cacec7b9b7f523b78919e"
6967
end
7068

7169
resource "urllib3" do
72-
url "https://files.pythonhosted.org/packages/ed/63/22ba4ebfe7430b76388e7cd448d5478814d3032121827c12a2cc287e2260/urllib3-2.2.3.tar.gz"
73-
sha256 "e7d814a81dad81e6caf2ec9fdedb284ecc9c73076b62654547cc64ccdcae26e9"
70+
url "https://files.pythonhosted.org/packages/aa/63/e53da845320b757bf29ef6a9062f5c669fe997973f966045cb019c3f4b66/urllib3-2.3.0.tar.gz"
71+
sha256 "f8c5449b3cf0861679ce7e0503c7b44b5ec981bec0d1d3795a07f1ba96f0204d"
7472
end
7573

76-
# Drop setuptools dep: https://github.com/liiight/notifiers/pull/470
77-
patch :DATA
78-
7974
def install
8075
virtualenv_install_with_resources
8176

@@ -86,24 +81,3 @@ def install
8681
assert_match "notifiers", shell_output("#{bin}/notifiers --help")
8782
end
8883
end
89-
90-
__END__
91-
diff --git a/notifiers/utils/helpers.py b/notifiers/utils/helpers.py
92-
index e351956..9981a0e 100644
93-
--- a/notifiers/utils/helpers.py
94-
+++ b/notifiers/utils/helpers.py
95-
@@ -1,6 +1,5 @@
96-
import logging
97-
import os
98-
-from distutils.util import strtobool
99-
from pathlib import Path
100-
101-
log = logging.getLogger("notifiers")
102-
@@ -13,7 +12,7 @@ def text_to_bool(value: str) -> bool:
103-
:param value: Value to check
104-
"""
105-
try:
106-
- return bool(strtobool(value))
107-
+ return value.lower() in {"y", "yes", "t", "true", "on", "1"}
108-
except (ValueError, AttributeError):
109-
return value is not None

0 commit comments

Comments
 (0)