Skip to content

Commit d8001a1

Browse files
committed
chore: homebrew work
1 parent 18ac333 commit d8001a1

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/homebrew.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@ jobs:
2727
"openssl@3"
2828
install: |
2929
venv = virtualenv_create(libexec, "python3.14")
30+
cryptography_resource = resources.find { |r| r.name == "cryptography" }
3031
venv.pip_install resources.reject { |r| r.name == "cryptography" }
31-
resource("cryptography").stage do
32-
system venv.root/"bin/pip", "install", "--no-build-isolation", "-v", "."
32+
if cryptography_resource
33+
cryptography_resource.stage do
34+
system venv.root/"bin/pip", "install", "--no-build-isolation", "-v", "."
35+
end
3336
end
3437
venv.pip_install_and_link buildpath
3538
test: 'assert_match "github-archive #{version}", shell_output("#{bin}/github-archive --version")'
3639
formula_includes: 'include Language::Python::Virtualenv'
37-
# Do not use homebrew-releaser's auto-update python resources here because we need the custom flow above
38-
update_python_resources: false
40+
update_python_resources: true

0 commit comments

Comments
 (0)