Skip to content

Commit b06ac3d

Browse files
authored
Merge pull request #250994 from branchvincent/[email protected]
touca: migrate to `[email protected]`
2 parents 4a10dce + 4894c27 commit b06ac3d

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

Formula/t/touca.rb

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ class Touca < Formula
99
revision 3
1010

1111
bottle do
12-
rebuild 3
13-
sha256 cellar: :any_skip_relocation, all: "28347dcea2a95cf714fad75fb909df2202c64a2ba9f9b83af3f99a7659e0bf17"
12+
rebuild 4
13+
sha256 cellar: :any_skip_relocation, all: "2aef71401d6fa95a1c2a1d9ce7ccf63c49e0131602a7876914ddbb373246b6f3"
1414
end
1515

1616
deprecate! date: "2025-08-13", because: :unmaintained
1717

1818
depends_on "certifi"
19-
depends_on "python@3.13"
19+
depends_on "python@3.14"
2020

2121
resource "commonmark" do
2222
url "https://files.pythonhosted.org/packages/60/48/a60f593447e8f0894ebb7f6e6c1f25dafc5e89c5879fdc9360ae93ff83f0/commonmark-0.9.1.tar.gz"
@@ -29,8 +29,8 @@ class Touca < Formula
2929
end
3030

3131
resource "pygments" do
32-
url "https://files.pythonhosted.org/packages/8e/62/8336eff65bcbc8e4cb5d05b55faf041285951b6e80f33e2bff2024788f31/pygments-2.18.0.tar.gz"
33-
sha256 "786ff802f32e91311bff3889f6e9a86e81505fe99f2735bb6d60ae0c5004f199"
32+
url "https://files.pythonhosted.org/packages/b0/77/a5b8c569bf593b0140bde72ea885a803b82086995367bf2037de0159d924/pygments-2.19.2.tar.gz"
33+
sha256 "636cb2477cec7f8952536970bc533bc43743542f70392ae026374600add5b887"
3434
end
3535

3636
resource "rich" do
@@ -51,7 +51,19 @@ class Touca < Formula
5151
def install
5252
# Allow latest `certifi`: https://github.com/trytouca/trytouca/pull/663
5353
inreplace "pyproject.toml", 'certifi = "^2022.12.7"', 'certifi = ">=2022.12.7"'
54-
virtualenv_install_with_resources
54+
# Workaround broken script with poetry 2+
55+
inreplace "pyproject.toml", 'touca = { callable = "touca.cli.__main__:main" }',
56+
'touca = "touca.cli.__main__:main"'
57+
venv = virtualenv_install_with_resources without: "flatbuffers"
58+
59+
# Workaround a relative LICENSE file failing with new setuptools validation
60+
# https://github.com/pypa/setuptools/commit/c31ebdc4749f1439972451a7b9b28734281d3830
61+
# Backport of https://github.com/google/flatbuffers/commit/6cb4d671a88e054744ce3029df9e733dc724ee76
62+
resource("flatbuffers").stage do
63+
inreplace "setup.cfg", "../license", "../LICENSE"
64+
inreplace "setup.py", "license_files='../LICENSE',", ""
65+
venv.pip_install Pathname.pwd
66+
end
5567
end
5668

5769
test do

0 commit comments

Comments
 (0)