Skip to content

Commit 58b3b4f

Browse files
committed
touca: migrate to [email protected]
1 parent 12fe63d commit 58b3b4f

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

Formula/t/touca.rb

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Touca < Formula
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)