jinja2-cli: add extras for yaml,toml,xml support
Out of the box jinja2-cli only supports json. It does work with yaml, toml or xml if these dependencies are also present. For convenience, it makes sense to enable additional input file formats. Closes #99105. Signed-off-by: Alexander Bayandin <a.bayandin@gmail.com> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>master
parent
c96024f2ce
commit
5dc87714bb
|
@ -19,8 +19,8 @@ class Jinja2Cli < Formula
|
|||
depends_on "python@3.10"
|
||||
|
||||
resource "Jinja2" do
|
||||
url "https://files.pythonhosted.org/packages/1f/93/99a76d0fa1a8fc14442a6421abee323f8d15964979336eabd2a1834e9118/Jinja2-3.1.0.tar.gz"
|
||||
sha256 "a2f09a92f358b96b5f6ca6ecb4502669c4acb55d8733bbb2b2c9c4af5564c605"
|
||||
url "https://files.pythonhosted.org/packages/7a/ff/75c28576a1d900e87eb6335b063fab47a8ef3c8b4d88524c4bf78f670cce/Jinja2-3.1.2.tar.gz"
|
||||
sha256 "31351a702a408a9e7595a8fc6150fc3f43bb6bf7e319770cbc0db9df9437e852"
|
||||
end
|
||||
|
||||
resource "MarkupSafe" do
|
||||
|
@ -28,6 +28,21 @@ class Jinja2Cli < Formula
|
|||
sha256 "7f91197cc9e48f989d12e4e6fbc46495c446636dfc81b9ccf50bb0ec74b91d4b"
|
||||
end
|
||||
|
||||
resource "PyYAML" do
|
||||
url "https://files.pythonhosted.org/packages/36/2b/61d51a2c4f25ef062ae3f74576b01638bebad5e045f747ff12643df63844/PyYAML-6.0.tar.gz"
|
||||
sha256 "68fb519c14306fec9720a2a5b45bc9f0c8d1b9c72adf45c37baedfcd949c35a2"
|
||||
end
|
||||
|
||||
resource "toml" do
|
||||
url "https://files.pythonhosted.org/packages/be/ba/1f744cdc819428fc6b5084ec34d9b30660f6f9daaf70eead706e3203ec3c/toml-0.10.2.tar.gz"
|
||||
sha256 "b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"
|
||||
end
|
||||
|
||||
resource "xmltodict" do
|
||||
url "https://files.pythonhosted.org/packages/58/40/0d783e14112e064127063fbf5d1fe1351723e5dfe9d6daad346a305f6c49/xmltodict-0.12.0.tar.gz"
|
||||
sha256 "50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d166d8a21"
|
||||
end
|
||||
|
||||
def install
|
||||
virtualenv_install_with_resources
|
||||
end
|
||||
|
|
|
@ -185,6 +185,7 @@
|
|||
"jenkins-job-builder": {
|
||||
"exclude_packages": ["six"]
|
||||
},
|
||||
"jinja2-cli": "jinja2-cli[yaml,toml,xml]",
|
||||
"jupyterlab": {
|
||||
"exclude_packages": ["six"]
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue