Skip to content

Commit 5944a58

Browse files
authored
Merge pull request #250831 from Homebrew/codecov-cli-python
codecov-cli: migrate to `[email protected]`
2 parents 8b990d0 + ed27877 commit 5944a58

File tree

3 files changed

+149
-22
lines changed

3 files changed

+149
-22
lines changed

Formula/c/codecov-cli.rb

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,23 @@ class CodecovCli < Formula
88
license "Apache-2.0"
99

1010
bottle do
11-
sha256 cellar: :any, arm64_tahoe: "aadf4a2374a70c622f052384d113d8354bb3fcf30ab73ebcb2a9abe84cccbabc"
12-
sha256 cellar: :any, arm64_sequoia: "1b7f0687fb22a9c30a5bf317d94723571936d5db1b57c14bf9604c5f00f439d3"
13-
sha256 cellar: :any, arm64_sonoma: "31834fac73197d3975472fb1554abdcc9a45007c6c5e038e4f46ae1204080e6f"
14-
sha256 cellar: :any, sonoma: "36814402660c424350c8bad7e7695bd28386edf02d34e99535799ac881d817ea"
15-
sha256 cellar: :any_skip_relocation, arm64_linux: "f996e37fc3fc0885ebefcee1379e2e2d7a1cd62226dff5e11d7690c858f4d6ad"
16-
sha256 cellar: :any_skip_relocation, x86_64_linux: "cc7f54d7a4cbaf271554dc5388575e1193d440565e20f79f9e089af9f9062852"
11+
rebuild 1
12+
sha256 cellar: :any, arm64_tahoe: "196b84f1533ecc92a658f452c2abf6befbe3d2bbc36b9771a39952c06ea3cfcd"
13+
sha256 cellar: :any, arm64_sequoia: "e45f701f4095340775c3626bad93b1d480b1408c5d49335012dd128f9b84daf1"
14+
sha256 cellar: :any, arm64_sonoma: "b1e823edc473d5d18ecb0a9b621c69d427dba849e1dc329744c38bc9858aef82"
15+
sha256 cellar: :any, sonoma: "a4c738b80615f4d8e6feb0d17ce9cc0b6e5bf85878ece4efc6f6dcdd3d36ca99"
16+
sha256 cellar: :any_skip_relocation, arm64_linux: "0b2367c97af9f26b5527b5b03fbce07f52b7026d2b95699c5799348a4a1b850b"
17+
sha256 cellar: :any_skip_relocation, x86_64_linux: "666cc24908e443fdfc67055d3f654b5114ec462c52ea89fc1d28439abe557248"
1718
end
1819

1920
depends_on "rust" => :build
21+
depends_on "certifi" => :no_linkage
2022
depends_on "libyaml"
21-
depends_on "[email protected]"
22-
23-
resource "certifi" do
24-
url "https://files.pythonhosted.org/packages/dc/67/960ebe6bf230a96cda2e0abcf73af550ec4f090005363542f0765df162e0/certifi-2025.8.3.tar.gz"
25-
sha256 "e564105f78ded564e3ae7c923924435e1daa7463faeab5bb932bc53ffae63407"
26-
end
23+
depends_on "[email protected]"
2724

2825
resource "charset-normalizer" do
29-
url "https://files.pythonhosted.org/packages/83/2d/5fd176ceb9b2fc619e63405525573493ca23441330fcdaee6bef9460e924/charset_normalizer-3.4.3.tar.gz"
30-
sha256 "6fce4b8500244f6fcb71465d4a4930d132ba9ab8e71a7859e6a5d59851068d14"
26+
url "https://files.pythonhosted.org/packages/13/69/33ddede1939fdd074bce5434295f38fae7136463422fe4fd3e0e89b98062/charset_normalizer-3.4.4.tar.gz"
27+
sha256 "94537985111c35f28720e43603b8e7b43a6ecfb2ce1d3058bbe955b73404e21a"
3128
end
3229

3330
resource "click" do
@@ -36,18 +33,18 @@ class CodecovCli < Formula
3633
end
3734

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

4340
resource "ijson" do
44-
url "https://files.pythonhosted.org/packages/a3/4f/1cfeada63f5fce87536651268ddf5cca79b8b4bbb457aee4e45777964a0a/ijson-3.4.0.tar.gz"
45-
sha256 "5f74dcbad9d592c428d3ca3957f7115a42689ee7ee941458860900236ae9bb13"
41+
url "https://files.pythonhosted.org/packages/2d/30/7ab4b9e88e7946f6beef419f74edcc541df3ea562c7882257b4eaa82417d/ijson-3.4.0.post0.tar.gz"
42+
sha256 "9aa02dc70bb245670a6ca7fba737b992aeeb4895360980622f7e568dbf23e41e"
4643
end
4744

4845
resource "pyyaml" do
49-
url "https://files.pythonhosted.org/packages/54/ed/79a089b6be93607fa5cdaedf301d7dfb23af5f25c398d5ead2525b063e17/pyyaml-6.0.2.tar.gz"
50-
sha256 "d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e"
46+
url "https://files.pythonhosted.org/packages/05/8e/961c0007c59b8dd7729d542c61a4d537767a59645b82a0b521206e1e25c2/pyyaml-6.0.3.tar.gz"
47+
sha256 "d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f"
5148
end
5249

5350
resource "requests" do
@@ -61,13 +58,23 @@ class CodecovCli < Formula
6158
end
6259

6360
resource "sentry-sdk" do
64-
url "https://files.pythonhosted.org/packages/b2/22/60fd703b34d94d216b2387e048ac82de3e86b63bc28869fb076f8bb0204a/sentry_sdk-2.38.0.tar.gz"
65-
sha256 "792d2af45e167e2f8a3347143f525b9b6bac6f058fb2014720b40b84ccbeb985"
61+
url "https://files.pythonhosted.org/packages/31/04/ec8c1dd9250847303d98516e917978cb1c7083024770d86d657d2ccb5a70/sentry_sdk-2.42.1.tar.gz"
62+
sha256 "8598cc6edcfe74cb8074ba6a7c15338cdee93d63d3eb9b9943b4b568354ad5b6"
6663
end
6764

6865
resource "test-results-parser" do
6966
url "https://files.pythonhosted.org/packages/e9/25/c6459ae54e5b57944417a8f72662d186ab43b0eae956193d6de281619ce4/test_results_parser-0.5.4.tar.gz"
7067
sha256 "2fbfd809a2c1f746360146809b6df30690c992463d7d43e7b1fed31c1a7c15b4"
68+
69+
# Bump `pyo3` to support Python 3.14
70+
# Upstream version 0.5.4 is actually same as 0.5.1 and the next of 0.5.3 is not developing,
71+
# so manually add the patch here.
72+
# Issue ref: https://github.com/codecov/test-results-parser/issues/86
73+
# Related PR ref: https://github.com/codecov/test-results-parser/pull/87
74+
patch do
75+
url "https://raw.githubusercontent.com/Homebrew/Homebrew-core/0a81f140/Patches/codecov-cli/support-python3.14.patch"
76+
sha256 "e6401a73c44388aa4ee4330436d91693f1a8d1ab8430d1d47a1730ec229a872f"
77+
end
7178
end
7279

7380
resource "urllib3" do
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
diff --git a/Cargo.lock b/Cargo.lock
2+
index fc148c3..acfb5d2 100644
3+
--- a/Cargo.lock
4+
+++ b/Cargo.lock
5+
@@ -26,12 +26,6 @@ dependencies = [
6+
"serde",
7+
]
8+
9+
-[[package]]
10+
-name = "cfg-if"
11+
-version = "1.0.0"
12+
-source = "registry+https://github.com/rust-lang/crates.io-index"
13+
-checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
14+
-
15+
[[package]]
16+
name = "heck"
17+
version = "0.5.0"
18+
@@ -147,11 +141,10 @@ dependencies = [
19+
20+
[[package]]
21+
name = "pyo3"
22+
-version = "0.22.6"
23+
+version = "0.25.1"
24+
source = "registry+https://github.com/rust-lang/crates.io-index"
25+
-checksum = "f402062616ab18202ae8319da13fa4279883a2b8a9d9f83f20dbade813ce1884"
26+
+checksum = "8970a78afe0628a3e3430376fc5fd76b6b45c4d43360ffd6cdd40bdde72b682a"
27+
dependencies = [
28+
- "cfg-if",
29+
"indoc",
30+
"libc",
31+
"memoffset",
32+
@@ -165,9 +158,9 @@ dependencies = [
33+
34+
[[package]]
35+
name = "pyo3-build-config"
36+
-version = "0.22.6"
37+
+version = "0.25.1"
38+
source = "registry+https://github.com/rust-lang/crates.io-index"
39+
-checksum = "b14b5775b5ff446dd1056212d778012cbe8a0fbffd368029fd9e25b514479c38"
40+
+checksum = "458eb0c55e7ece017adeba38f2248ff3ac615e53660d7c71a238d7d2a01c7598"
41+
dependencies = [
42+
"once_cell",
43+
"target-lexicon",
44+
@@ -175,9 +168,9 @@ dependencies = [
45+
46+
[[package]]
47+
name = "pyo3-ffi"
48+
-version = "0.22.6"
49+
+version = "0.25.1"
50+
source = "registry+https://github.com/rust-lang/crates.io-index"
51+
-checksum = "9ab5bcf04a2cdcbb50c7d6105de943f543f9ed92af55818fd17b660390fc8636"
52+
+checksum = "7114fe5457c61b276ab77c5055f206295b812608083644a5c5b2640c3102565c"
53+
dependencies = [
54+
"libc",
55+
"pyo3-build-config",
56+
@@ -185,9 +178,9 @@ dependencies = [
57+
58+
[[package]]
59+
name = "pyo3-macros"
60+
-version = "0.22.6"
61+
+version = "0.25.1"
62+
source = "registry+https://github.com/rust-lang/crates.io-index"
63+
-checksum = "0fd24d897903a9e6d80b968368a34e1525aeb719d568dba8b3d4bfa5dc67d453"
64+
+checksum = "a8725c0a622b374d6cb051d11a0983786448f7785336139c3c94f5aa6bef7e50"
65+
dependencies = [
66+
"proc-macro2",
67+
"pyo3-macros-backend",
68+
@@ -197,9 +190,9 @@ dependencies = [
69+
70+
[[package]]
71+
name = "pyo3-macros-backend"
72+
-version = "0.22.6"
73+
+version = "0.25.1"
74+
source = "registry+https://github.com/rust-lang/crates.io-index"
75+
-checksum = "36c011a03ba1e50152b4b394b479826cad97e7a21eb52df179cd91ac411cbfbe"
76+
+checksum = "4109984c22491085343c05b0dbc54ddc405c3cf7b4374fc533f5c3313a572ccc"
77+
dependencies = [
78+
"heck",
79+
"proc-macro2",
80+
@@ -353,9 +346,9 @@ dependencies = [
81+
82+
[[package]]
83+
name = "target-lexicon"
84+
-version = "0.12.16"
85+
+version = "0.13.3"
86+
source = "registry+https://github.com/rust-lang/crates.io-index"
87+
-checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
88+
+checksum = "df7f62577c25e07834649fc3b39fafdc597c0a3527dc1c60129201ccfcbaa50c"
89+
90+
[[package]]
91+
name = "test_results_parser"
92+
diff --git a/Cargo.toml b/Cargo.toml
93+
index a12ac11..8182dce 100644
94+
--- a/Cargo.toml
95+
+++ b/Cargo.toml
96+
@@ -9,7 +9,7 @@ name = "test_results_parser"
97+
crate-type = ["cdylib"]
98+
99+
[dependencies]
100+
-pyo3 = "0.22.2"
101+
+pyo3 = "0.25"
102+
quick-xml = "0.36.0"
103+
regex = "1.10.4"
104+
serde = { version = "1.0", features = ["derive"] }
105+
diff --git a/src/lib.rs b/src/lib.rs
106+
index 0d6d365..4868019 100644
107+
--- a/src/lib.rs
108+
+++ b/src/lib.rs
109+
@@ -10,7 +10,7 @@ pyo3::create_exception!(test_results_parser, ParserError, PyException);
110+
/// A Python module implemented in Rust.
111+
#[pymodule]
112+
fn test_results_parser(py: Python, m: &Bound<PyModule>) -> PyResult<()> {
113+
- m.add("ParserError", py.get_type_bound::<ParserError>())?;
114+
+ m.add("ParserError", py.get_type::<ParserError>())?;
115+
m.add_class::<testrun::Testrun>()?;
116+
m.add_class::<testrun::Outcome>()?;
117+
m.add_class::<testrun::Framework>()?;

pypi_formula_mappings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@
230230
"cobo-cli": {
231231
"exclude_packages": ["certifi"]
232232
},
233+
"codecov-cli": {
234+
"exclude_packages": ["certifi"]
235+
},
233236
"codelimit": {
234237
"exclude_packages": ["certifi"]
235238
},

0 commit comments

Comments
 (0)