Skip to content

Commit cd84213

Browse files
authored
Merge pull request #250324 from Homebrew/vunnel-python
vunnel: migrate to python@3.14
2 parents 0564480 + e57e095 commit cd84213

File tree

2 files changed

+44
-41
lines changed

2 files changed

+44
-41
lines changed

Formula/v/vunnel.rb

Lines changed: 43 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,32 @@ class Vunnel < Formula
99
head "https://github.com/anchore/vunnel.git", branch: "main"
1010

1111
bottle do
12-
sha256 cellar: :any, arm64_tahoe: "16b40bfbdef9b727117ed5f5aece37d316f76171a8d2ca544a1beb24c1bc60ad"
13-
sha256 cellar: :any, arm64_sequoia: "5a333158c7fb56a1c631a2ed3aca7aea5e866b72cda21fc0c3e2389fdd2606e7"
14-
sha256 cellar: :any, arm64_sonoma: "e98f80067d5ef1681db5f40afbd046d313f89a3f455a9518b603d2c0bb9cfa51"
15-
sha256 cellar: :any, sonoma: "7b597ef0be6d309af8f1ef3d78622db0c622302afb3c97b118c440804e3e8232"
16-
sha256 cellar: :any_skip_relocation, arm64_linux: "0716fd8f3a427e181f29caec41e0dc94c274a2332deeed1065d02591fc284950"
17-
sha256 cellar: :any_skip_relocation, x86_64_linux: "c307cd7d0045d1137770be2ef1c5d89d7cf3708b46a408b990b203f184b89604"
12+
rebuild 1
13+
sha256 cellar: :any, arm64_tahoe: "6b652a32f17d29c58b1a166b73549da8d614d97259a93c84147b380699f35c8e"
14+
sha256 cellar: :any, arm64_sequoia: "1a09406da4ea1c124d2ffa96eb880286888d378734cf1b939afb5ff47c58a96c"
15+
sha256 cellar: :any, arm64_sonoma: "a9a86f8e4a12d0fadb2f926ccf31098a48de2b94002acde2a3109eb0f2df248c"
16+
sha256 cellar: :any, sonoma: "893bc612db0a246803a6ef6fdf77ad5197bfb0132b5e6ea4c950c1097943ce1c"
17+
sha256 cellar: :any_skip_relocation, arm64_linux: "294435d2157dd4264743c3893427f8060f4b75815beb98343ce47f1572e7efb0"
18+
sha256 cellar: :any_skip_relocation, x86_64_linux: "37684726908df1ca3ea817b166fe7214438a3e72aabc7854313797412698b964"
1819
end
1920

2021
depends_on "rust" => :build
21-
depends_on "certifi"
22+
depends_on "certifi" => :no_linkage
2223
depends_on "libyaml"
23-
depends_on "python@3.13"
24+
depends_on "python@3.14"
25+
depends_on "rpds-py" => :no_linkage
2426

2527
uses_from_macos "libxml2", since: :ventura
2628
uses_from_macos "libxslt"
2729

2830
resource "attrs" do
29-
url "https://files.pythonhosted.org/packages/5a/b0/1367933a8532ee6ff8d63537de4f1177af4bff9f3e829baf7331f595bb24/attrs-25.3.0.tar.gz"
30-
sha256 "75d7cefc7fb576747b2c81b4442d4d4a1ce0900973527c011d1030fd3bf4af1b"
31+
url "https://files.pythonhosted.org/packages/6b/5c/685e6633917e101e5dcb62b9dd76946cbb57c26e133bae9e0cd36033c0a9/attrs-25.4.0.tar.gz"
32+
sha256 "16d5969b87f0859ef33a48b35d55ac1be6e42ae49d5e853b597db70c35c57e11"
3133
end
3234

3335
resource "charset-normalizer" do
34-
url "https://files.pythonhosted.org/packages/83/2d/5fd176ceb9b2fc619e63405525573493ca23441330fcdaee6bef9460e924/charset_normalizer-3.4.3.tar.gz"
35-
sha256 "6fce4b8500244f6fcb71465d4a4930d132ba9ab8e71a7859e6a5d59851068d14"
36+
url "https://files.pythonhosted.org/packages/13/69/33ddede1939fdd074bce5434295f38fae7136463422fe4fd3e0e89b98062/charset_normalizer-3.4.4.tar.gz"
37+
sha256 "94537985111c35f28720e43603b8e7b43a6ecfb2ce1d3058bbe955b73404e21a"
3638
end
3739

3840
resource "click" do
@@ -46,8 +48,8 @@ class Vunnel < Formula
4648
end
4749

4850
resource "colorlog" do
49-
url "https://files.pythonhosted.org/packages/d3/7a/359f4d5df2353f26172b3cc39ea32daa39af8de522205f512f458923e677/colorlog-6.9.0.tar.gz"
50-
sha256 "bfba54a1b93b94f54e1f4fe48395725a3d92fd2a4af702f6bd70946bdc0c6ac2"
51+
url "https://files.pythonhosted.org/packages/a2/61/f083b5ac52e505dfc1c624eafbf8c7589a0d7f32daa398d2e7590efa5fda/colorlog-6.10.1.tar.gz"
52+
sha256 "eb4ae5cb65fe7fec7773c2306061a8e63e02efc2c72eba9d27b0fa23c94f1321"
5153
end
5254

5355
resource "cvss" do
@@ -65,14 +67,9 @@ class Vunnel < Formula
6567
sha256 "9dc71659d3b853c3018cd7b2ec34d5d054370128e12b79ee655498cb339cc711"
6668
end
6769

68-
resource "greenlet" do
69-
url "https://files.pythonhosted.org/packages/03/b8/704d753a5a45507a7aab61f18db9509302ed3d0a27ac7e0359ec2905b1a6/greenlet-3.2.4.tar.gz"
70-
sha256 "0dca0d95ff849f9a364385f36ab49f50065d76964944638be9691e1832e9f86d"
71-
end
72-
7370
resource "idna" do
74-
url "https://files.pythonhosted.org/packages/f1/70/7703c29685631f5a7590aa73f1f1d3fa9a380e654b86af429e0934a32f7d/idna-3.10.tar.gz"
75-
sha256 "12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9"
71+
url "https://files.pythonhosted.org/packages/6f/6d/0703ccc57f3a7233505399edb88de3cbd678da106337b9fcde432b65ed60/idna-3.11.tar.gz"
72+
sha256 "795dafcc9c04ed0c1fb032c2aa73654d8e8c5023a7df64a53f39190ada629902"
7673
end
7774

7875
resource "ijson" do
@@ -86,8 +83,8 @@ class Vunnel < Formula
8683
end
8784

8885
resource "iniconfig" do
89-
url "https://files.pythonhosted.org/packages/f2/97/ebf4da567aa6827c909642694d71c9fcf53e5b504f2d96afea02718862f3/iniconfig-2.1.0.tar.gz"
90-
sha256 "3abbd2e30b36733fee78f9c7f7308f2d0050e88f0087fd25c2645f63c773e1c7"
86+
url "https://files.pythonhosted.org/packages/72/34/14ca021ce8e5dfedc35312d08ba8bf51fdd999c576889fc2c24cb97f4f10/iniconfig-2.3.0.tar.gz"
87+
sha256 "c76315c77db068650d49c5b56314774a7804df16fee4402c1f19d6d15d8c4730"
9188
end
9289

9390
resource "iso8601" do
@@ -116,13 +113,13 @@ class Vunnel < Formula
116113
end
117114

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

123120
resource "mashumaro" do
124-
url "https://files.pythonhosted.org/packages/d7/92/4c1ac8d819fba3d6988876cadd922803818905a50d22d2027581366e8142/mashumaro-3.16.tar.gz"
125-
sha256 "3844137cf053bbac30c4cbd0ee9984e839a5731a0ef96fd3dd9388359af3f2e1"
121+
url "https://files.pythonhosted.org/packages/f8/67/c4e235256baf6837106d2620c7123eb1e5786c704c7f7d7fa488ad6afc61/mashumaro-3.17.tar.gz"
122+
sha256 "de1d8b1faffee58969c7f97e35963a92480a38d4c9858e92e0721efec12258ed"
126123
end
127124

128125
resource "mergedeep" do
@@ -181,33 +178,28 @@ class Vunnel < Formula
181178
end
182179

183180
resource "referencing" do
184-
url "https://files.pythonhosted.org/packages/2f/db/98b5c277be99dd18bfd91dd04e1b759cad18d1a338188c936e92f921c7e2/referencing-0.36.2.tar.gz"
185-
sha256 "df2e89862cd09deabbdba16944cc3f10feb6b3e6f18e902f7cc25609a34775aa"
181+
url "https://files.pythonhosted.org/packages/22/f5/df4e9027acead3ecc63e50fe1e36aca1523e1719559c499951bb4b53188f/referencing-0.37.0.tar.gz"
182+
sha256 "44aefc3142c5b842538163acb373e24cce6632bd54bdb01b21ad5863489f50d8"
186183
end
187184

188185
resource "requests" do
189186
url "https://files.pythonhosted.org/packages/c9/74/b3ff8e6c8446842c3f5c837e9c3dfcfe2018ea6ecef224c710c85ef728f4/requests-2.32.5.tar.gz"
190187
sha256 "dbba0bac56e100853db0ea71b82b4dfd5fe2bf6d3754a8893c3af500cec7d7cf"
191188
end
192189

193-
resource "rpds-py" do
194-
url "https://files.pythonhosted.org/packages/e9/dd/2c0cbe774744272b0ae725f44032c77bdcab6e8bcf544bffa3b6e70c8dba/rpds_py-0.27.1.tar.gz"
195-
sha256 "26a1c73171d10b7acccbded82bf6a586ab8203601e565badc74bbbf8bc5a10f8"
196-
end
197-
198190
resource "six" do
199191
url "https://files.pythonhosted.org/packages/94/e7/b2c673351809dca68a0e064b6af791aa332cf192da575fd474ed7d6f16a2/six-1.17.0.tar.gz"
200192
sha256 "ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81"
201193
end
202194

203195
resource "sqlalchemy" do
204-
url "https://files.pythonhosted.org/packages/d7/bc/d59b5d97d27229b0e009bd9098cd81af71c2fa5549c580a0a67b9bed0496/sqlalchemy-2.0.43.tar.gz"
205-
sha256 "788bfcef6787a7764169cfe9859fe425bf44559619e1d9f56f5bddf2ebf6f417"
196+
url "https://files.pythonhosted.org/packages/f0/f2/840d7b9496825333f532d2e3976b8eadbf52034178aac53630d09fe6e1ef/sqlalchemy-2.0.44.tar.gz"
197+
sha256 "0ae7454e1ab1d780aee69fd2aae7d6b8670a581d8847f2d1e0f7ddfbf47e5a22"
206198
end
207199

208200
resource "tomli" do
209-
url "https://files.pythonhosted.org/packages/18/87/302344fed471e44a87289cf4967697d07e532f2421fdaf868a303cbae4ff/tomli-2.2.1.tar.gz"
210-
sha256 "cd45e1dc79c835ce60f7404ec8119f2eb06d38b1deba146f07ced3bbc44505ff"
201+
url "https://files.pythonhosted.org/packages/52/ed/3f73f72945444548f33eba9a87fc7a6e969915e7b1acc8260b30e1f76a2f/tomli-2.3.0.tar.gz"
202+
sha256 "64be704a875d2a59753d80ee8a533c3fe183e3f06807ff7dc2232938ccb01549"
211203
end
212204

213205
resource "toposort" do
@@ -223,6 +215,13 @@ class Vunnel < Formula
223215
resource "untokenize" do
224216
url "https://files.pythonhosted.org/packages/f7/46/e7cea8159199096e1df52da20a57a6665da80c37fb8aeb848a3e47442c32/untokenize-0.1.1.tar.gz"
225217
sha256 "3865dbbbb8efb4bb5eaa72f1be7f3e0be00ea8b7f125c69cbd1f5fda926f37a2"
218+
219+
# Fix to support Python 3.14
220+
# PR ref: https://github.com/myint/untokenize/pull/5
221+
patch do
222+
url "https://github.com/myint/untokenize/commit/46cf0233fe18097398f5692f9caf3d2e5d94eb14.patch?full_index=1"
223+
sha256 "fa7cafaba2d606cb45d763d828a2a7a6a2532b39593bd82ac122dfe7df8145ef"
224+
end
226225
end
227226

228227
resource "urllib3" do
@@ -236,8 +235,8 @@ class Vunnel < Formula
236235
end
237236

238237
resource "xxhash" do
239-
url "https://files.pythonhosted.org/packages/00/5e/d6e5258d69df8b4ed8c83b6664f2b47d30d2dec551a29ad72a6c69eafd31/xxhash-3.5.0.tar.gz"
240-
sha256 "84f2caddf951c9cbf8dc2e22a89d4ccf5d86391ac6418fe81e3c67d0cf60b45f"
238+
url "https://files.pythonhosted.org/packages/02/84/30869e01909fb37a6cc7e18688ee8bf1e42d57e7e0777636bd47524c43c7/xxhash-3.6.0.tar.gz"
239+
sha256 "f0162a78b13a0d7617b2845b90c763339d1f1d82bb04a4b07f4ab535cc5e05d6"
241240
end
242241

243242
resource "zipp" do
@@ -251,6 +250,10 @@ class Vunnel < Formula
251250
end
252251

253252
def install
253+
# Unpin Python for 3.14
254+
# Issue ref: https://github.com/anchore/vunnel/issues/904
255+
inreplace "pyproject.toml", 'requires-python = "<3.14,>=3.11"', 'requires-python = ">=3.11"'
256+
254257
# The source doesn't have a valid SOURCE_DATE_EPOCH, so here we set default.
255258
ENV["SOURCE_DATE_EPOCH"] = "1451574000"
256259

pypi_formula_mappings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@
10681068
"extra_packages": ["requests"]
10691069
},
10701070
"vunnel": {
1071-
"exclude_packages": ["certifi"]
1071+
"exclude_packages": ["certifi", "rpds-py"]
10721072
},
10731073
"watson": {
10741074
"exclude_packages": ["certifi"]

0 commit comments

Comments
 (0)