cyral-gimme-db-token: patch to use latest poetry_core

Closes #118940.

Signed-off-by: Rui Chen <rui@chenrui.dev>
Signed-off-by: Patrick Linnane <patrick@linnane.io>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
Rui Chen 2022-12-25 22:26:16 -05:00 committed by BrewTestBot
parent 7eda28f7f0
commit 614ef18409
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 18 additions and 0 deletions

View File

@ -125,6 +125,9 @@ class CyralGimmeDbToken < Formula
sha256 "3fa96cf423e6987997fc326ae8df396db2a8b7c667747d47ddd8ecba91f4a74e"
end
# patch to use latest poetry_core to fix build
patch :DATA
def install
virtualenv_install_with_resources
end
@ -137,3 +140,18 @@ class CyralGimmeDbToken < Formula
assert_match "Error: Invalid value", shell_output("#{bin}/gimme_db_token unsupported 2>&1", 2)
end
end
__END__
diff --git a/pyproject.toml b/pyproject.toml
index f88b284..e8b5fbd 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -28,6 +28,5 @@ flake8 = "^3.8.4"
[tool.poetry.scripts]
gimme_db_token = "gimme_db_token.__main__:run"
[build-system]
-requires = ["poetry>=0.12"]
-build-backend = "poetry.masonry.api"
-
+requires = ["poetry_core>=1.0.0"]
+build-backend = "poetry.core.masonry.api"