From 31f767298295e5cb03d6df0fcefcc1113d61ee83 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Sep 2024 09:39:07 +0000 Subject: [PATCH 01/11] chore(deps): bump the all group with 2 updates Bumps the all group with 2 updates: [hypothesis](https://github.com/HypothesisWorks/hypothesis) and [ruff](https://github.com/astral-sh/ruff). Updates `hypothesis` from 6.111.2 to 6.112.0 - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.111.2...hypothesis-python-6.112.0) Updates `ruff` from 0.6.3 to 0.6.4 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.6.3...0.6.4) --- updated-dependencies: - dependency-name: hypothesis dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all ... Signed-off-by: dependabot[bot] --- poetry.lock | 46 +++++++++++++++++++++++----------------------- pyproject.toml | 4 ++-- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/poetry.lock b/poetry.lock index 6f98007..1e61866 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1154,13 +1154,13 @@ socks = ["socksio (==1.*)"] [[package]] name = "hypothesis" -version = "6.111.2" +version = "6.112.0" description = "A library for property-based testing" optional = false python-versions = ">=3.8" files = [ - {file = "hypothesis-6.111.2-py3-none-any.whl", hash = "sha256:055e8228958e22178d6077e455fd86a72044d02dac130dbf9c8b31e161b9809c"}, - {file = "hypothesis-6.111.2.tar.gz", hash = "sha256:0496ad28c7240ee9ba89fcc7fb1dc74e89f3e40fbcbbb5f73c0091558dec8e6e"}, + {file = "hypothesis-6.112.0-py3-none-any.whl", hash = "sha256:1e6adbd9534c0d691690b5006904327ea37c851d4e15262a22094aa77879e84d"}, + {file = "hypothesis-6.112.0.tar.gz", hash = "sha256:06ea8857e1e711a1a6f24154a3c8c4eab04b041993206aaa267f98b859fd6ef5"}, ] [package.dependencies] @@ -2560,29 +2560,29 @@ files = [ [[package]] name = "ruff" -version = "0.6.3" +version = "0.6.4" description = "An extremely fast Python linter and code formatter, written in Rust." optional = false python-versions = ">=3.7" files = [ - {file = "ruff-0.6.3-py3-none-linux_armv6l.whl", hash = "sha256:97f58fda4e309382ad30ede7f30e2791d70dd29ea17f41970119f55bdb7a45c3"}, - {file = "ruff-0.6.3-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:3b061e49b5cf3a297b4d1c27ac5587954ccb4ff601160d3d6b2f70b1622194dc"}, - {file = "ruff-0.6.3-py3-none-macosx_11_0_arm64.whl", hash = "sha256:34e2824a13bb8c668c71c1760a6ac7d795ccbd8d38ff4a0d8471fdb15de910b1"}, - {file = "ruff-0.6.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bddfbb8d63c460f4b4128b6a506e7052bad4d6f3ff607ebbb41b0aa19c2770d1"}, - {file = "ruff-0.6.3-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ced3eeb44df75353e08ab3b6a9e113b5f3f996bea48d4f7c027bc528ba87b672"}, - {file = "ruff-0.6.3-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:47021dff5445d549be954eb275156dfd7c37222acc1e8014311badcb9b4ec8c1"}, - {file = "ruff-0.6.3-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:7d7bd20dc07cebd68cc8bc7b3f5ada6d637f42d947c85264f94b0d1cd9d87384"}, - {file = "ruff-0.6.3-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:500f166d03fc6d0e61c8e40a3ff853fa8a43d938f5d14c183c612df1b0d6c58a"}, - {file = "ruff-0.6.3-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:42844ff678f9b976366b262fa2d1d1a3fe76f6e145bd92c84e27d172e3c34500"}, - {file = "ruff-0.6.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:70452a10eb2d66549de8e75f89ae82462159855e983ddff91bc0bce6511d0470"}, - {file = "ruff-0.6.3-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:65a533235ed55f767d1fc62193a21cbf9e3329cf26d427b800fdeacfb77d296f"}, - {file = "ruff-0.6.3-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:d2e2c23cef30dc3cbe9cc5d04f2899e7f5e478c40d2e0a633513ad081f7361b5"}, - {file = "ruff-0.6.3-py3-none-musllinux_1_2_i686.whl", hash = "sha256:d8a136aa7d228975a6aee3dd8bea9b28e2b43e9444aa678fb62aeb1956ff2351"}, - {file = "ruff-0.6.3-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:f92fe93bc72e262b7b3f2bba9879897e2d58a989b4714ba6a5a7273e842ad2f8"}, - {file = "ruff-0.6.3-py3-none-win32.whl", hash = "sha256:7a62d3b5b0d7f9143d94893f8ba43aa5a5c51a0ffc4a401aa97a81ed76930521"}, - {file = "ruff-0.6.3-py3-none-win_amd64.whl", hash = "sha256:746af39356fee2b89aada06c7376e1aa274a23493d7016059c3a72e3b296befb"}, - {file = "ruff-0.6.3-py3-none-win_arm64.whl", hash = "sha256:14a9528a8b70ccc7a847637c29e56fd1f9183a9db743bbc5b8e0c4ad60592a82"}, - {file = "ruff-0.6.3.tar.gz", hash = "sha256:183b99e9edd1ef63be34a3b51fee0a9f4ab95add123dbf89a71f7b1f0c991983"}, + {file = "ruff-0.6.4-py3-none-linux_armv6l.whl", hash = "sha256:c4b153fc152af51855458e79e835fb6b933032921756cec9af7d0ba2aa01a258"}, + {file = "ruff-0.6.4-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:bedff9e4f004dad5f7f76a9d39c4ca98af526c9b1695068198b3bda8c085ef60"}, + {file = "ruff-0.6.4-py3-none-macosx_11_0_arm64.whl", hash = "sha256:d02a4127a86de23002e694d7ff19f905c51e338c72d8e09b56bfb60e1681724f"}, + {file = "ruff-0.6.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7862f42fc1a4aca1ea3ffe8a11f67819d183a5693b228f0bb3a531f5e40336fc"}, + {file = "ruff-0.6.4-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:eebe4ff1967c838a1a9618a5a59a3b0a00406f8d7eefee97c70411fefc353617"}, + {file = "ruff-0.6.4-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:932063a03bac394866683e15710c25b8690ccdca1cf192b9a98260332ca93408"}, + {file = "ruff-0.6.4-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:50e30b437cebef547bd5c3edf9ce81343e5dd7c737cb36ccb4fe83573f3d392e"}, + {file = "ruff-0.6.4-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c44536df7b93a587de690e124b89bd47306fddd59398a0fb12afd6133c7b3818"}, + {file = "ruff-0.6.4-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0ea086601b22dc5e7693a78f3fcfc460cceabfdf3bdc36dc898792aba48fbad6"}, + {file = "ruff-0.6.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0b52387d3289ccd227b62102c24714ed75fbba0b16ecc69a923a37e3b5e0aaaa"}, + {file = "ruff-0.6.4-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:0308610470fcc82969082fc83c76c0d362f562e2f0cdab0586516f03a4e06ec6"}, + {file = "ruff-0.6.4-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:803b96dea21795a6c9d5bfa9e96127cc9c31a1987802ca68f35e5c95aed3fc0d"}, + {file = "ruff-0.6.4-py3-none-musllinux_1_2_i686.whl", hash = "sha256:66dbfea86b663baab8fcae56c59f190caba9398df1488164e2df53e216248baa"}, + {file = "ruff-0.6.4-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:34d5efad480193c046c86608dbba2bccdc1c5fd11950fb271f8086e0c763a5d1"}, + {file = "ruff-0.6.4-py3-none-win32.whl", hash = "sha256:f0f8968feea5ce3777c0d8365653d5e91c40c31a81d95824ba61d871a11b8523"}, + {file = "ruff-0.6.4-py3-none-win_amd64.whl", hash = "sha256:549daccee5227282289390b0222d0fbee0275d1db6d514550d65420053021a58"}, + {file = "ruff-0.6.4-py3-none-win_arm64.whl", hash = "sha256:ac4b75e898ed189b3708c9ab3fc70b79a433219e1e87193b4f2b77251d058d14"}, + {file = "ruff-0.6.4.tar.gz", hash = "sha256:ac3b5bfbee99973f80aa1b7cbd1c9cbce200883bdd067300c22a6cc1c7fba212"}, ] [[package]] @@ -3190,4 +3190,4 @@ test = ["big-O", "importlib-resources", "jaraco.functools", "jaraco.itertools", [metadata] lock-version = "2.0" python-versions = ">=3.9,<3.13" -content-hash = "7fec4eae3b84085b773d259a06648ba0210666f1dad3c0fdbd769a8dfed9ccfa" +content-hash = "fa07258a3682b9fe1e7271754c635d634fcc1215aa87e75cb92cd3be740dd050" diff --git a/pyproject.toml b/pyproject.toml index 087371f..e22484b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ pytz = "*" packaging = "*" jsondiff = "*" sphinx_rtd_theme = "*" -hypothesis = "^6.111.2" +hypothesis = "^6.112.0" pytest-pythonpath = "*" parameterized = "^0.9.0" invoke = "^2.2.0" @@ -36,7 +36,7 @@ antsibull-docs = "^2.13.1" [tool.poetry.dev-dependencies] [tool.poetry.group.dev.dependencies] -ruff = "0.6.3" +ruff = "0.6.4" [tool.pytest.ini_options] asyncio_mode = "auto" From b5e77651a0c2fe20204114e705910ebae988b43b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Sep 2024 10:16:15 +0000 Subject: [PATCH 02/11] chore(deps): bump the all group with 8 updates Bumps the all group with 8 updates: | Package | From | To | | --- | --- | --- | | [infrahub-sdk](https://github.com/opsmill/infrahub) | `0.12.4` | `0.13.0` | | [pytest](https://github.com/pytest-dev/pytest) | `8.3.2` | `8.3.3` | | [antsibull](https://github.com/ansible-community/antsibull) | `0.64.0` | `0.65.0` | | [importlib-metadata](https://github.com/python/importlib_metadata) | `8.4.0` | `8.5.0` | | [pytz](https://github.com/stub42/pytz) | `2024.1` | `2024.2` | | [hypothesis](https://github.com/HypothesisWorks/hypothesis) | `6.112.0` | `6.112.1` | | [antsibull-docs](https://github.com/ansible-community/antsibull-docs) | `2.13.1` | `2.14.0` | | [ruff](https://github.com/astral-sh/ruff) | `0.6.4` | `0.6.5` | Updates `infrahub-sdk` from 0.12.4 to 0.13.0 - [Release notes](https://github.com/opsmill/infrahub/releases) - [Changelog](https://github.com/opsmill/infrahub/blob/develop/CHANGELOG.md) - [Commits](https://github.com/opsmill/infrahub/compare/python-sdk-v0.12.4...infrahub-v0.13.0) Updates `pytest` from 8.3.2 to 8.3.3 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/8.3.2...8.3.3) Updates `antsibull` from 0.64.0 to 0.65.0 - [Release notes](https://github.com/ansible-community/antsibull/releases) - [Changelog](https://github.com/ansible-community/antsibull/blob/main/CHANGELOG.rst) - [Commits](https://github.com/ansible-community/antsibull/compare/0.64.0...0.65.0) Updates `importlib-metadata` from 8.4.0 to 8.5.0 - [Release notes](https://github.com/python/importlib_metadata/releases) - [Changelog](https://github.com/python/importlib_metadata/blob/main/NEWS.rst) - [Commits](https://github.com/python/importlib_metadata/compare/v8.4.0...v8.5.0) Updates `pytz` from 2024.1 to 2024.2 - [Release notes](https://github.com/stub42/pytz/releases) - [Commits](https://github.com/stub42/pytz/compare/release_2024.1...release_2024.2) Updates `hypothesis` from 6.112.0 to 6.112.1 - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.112.0...hypothesis-python-6.112.1) Updates `antsibull-docs` from 2.13.1 to 2.14.0 - [Release notes](https://github.com/ansible-community/antsibull-docs/releases) - [Changelog](https://github.com/ansible-community/antsibull-docs/blob/main/CHANGELOG.rst) - [Commits](https://github.com/ansible-community/antsibull-docs/compare/2.13.1...2.14.0) Updates `ruff` from 0.6.4 to 0.6.5 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.6.4...0.6.5) --- updated-dependencies: - dependency-name: infrahub-sdk dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all - dependency-name: pytest dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all - dependency-name: antsibull dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all - dependency-name: importlib-metadata dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all - dependency-name: pytz dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all - dependency-name: hypothesis dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all - dependency-name: antsibull-docs dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all ... Signed-off-by: dependabot[bot] --- poetry.lock | 152 ++++++++++++++++++++++++++++++------------------- pyproject.toml | 12 ++-- 2 files changed, 99 insertions(+), 65 deletions(-) diff --git a/poetry.lock b/poetry.lock index 1e61866..a68489e 100644 --- a/poetry.lock +++ b/poetry.lock @@ -241,25 +241,27 @@ pygments = ">=2.4.0" [[package]] name = "antsibull" -version = "0.64.0" +version = "0.65.0" description = "Tools for building the Ansible Distribution" optional = false python-versions = ">=3.9" files = [ - {file = "antsibull-0.64.0-py3-none-any.whl", hash = "sha256:afcd946bacd1775fec4435023ad71f50abc32bb0c6860feedbf43bfb34201cf0"}, - {file = "antsibull-0.64.0.tar.gz", hash = "sha256:227133ee70c31d6739ec7d9b468690951e6f168cb8f4ea2f968cdf15e4000eec"}, + {file = "antsibull-0.65.0-py3-none-any.whl", hash = "sha256:d963ad61437f30fdba618d008f98acc06044631ba806dc5c996c3ba5e0d314a7"}, + {file = "antsibull-0.65.0.tar.gz", hash = "sha256:56d50083d2e65a1033271db34ea7e7572af00ff03ac03fb1e9bb98afa64aa334"}, ] [package.dependencies] aiofiles = "*" aiohttp = ">=3.0.0" antsibull-changelog = ">=0.24.0" -antsibull-core = ">=2.0.0,<4.0.0" +antsibull-core = ">=3.1.0,<4.0.0" +antsibull-fileutils = ">=1.0.0,<2.0.0" asyncio-pool = "*" build = "*" jinja2 = "*" packaging = ">=20.0" -pydantic = "<3" +pydantic = ">=2,<3" +pyyaml = "*" semantic-version = "*" twiggy = "*" typing-extensions = "*" @@ -303,43 +305,43 @@ typing = ["mypy", "pyre-check (>=0.9.17)", "types-docutils", "types-pyyaml", "ty [[package]] name = "antsibull-core" -version = "3.0.1" +version = "3.1.0" description = "Tools for building the Ansible Distribution" optional = false python-versions = ">=3.9" files = [ - {file = "antsibull_core-3.0.1-py3-none-any.whl", hash = "sha256:653f44b010c85b6bcd37aacde64b35e56adec8f62119d2764aa56add7299c2f8"}, - {file = "antsibull_core-3.0.1.tar.gz", hash = "sha256:d7fddfb539757849725f8ae88ff049cef360c088a67251de0d1d8cb041243a9c"}, + {file = "antsibull_core-3.1.0-py3-none-any.whl", hash = "sha256:da52107b9e5611cb0dba2a83dc7b9e957395cf2de790024b4f3ab9e200c02458"}, + {file = "antsibull_core-3.1.0.tar.gz", hash = "sha256:7661a72632053108091d07ce9dcc06e7e9f762fec4a235e7328dcc9b3052ae14"}, ] [package.dependencies] aiofiles = "*" -aiohttp = ">=3.0.0" +aiohttp = ">=3.3.0" +antsibull-fileutils = ">=1.0.0,<2.0.0" build = "*" packaging = ">=20.0" perky = "*" pydantic = ">=2.0,<3.0" -pyyaml = "*" semantic-version = "*" twiggy = ">=0.5.0" [package.extras] codeqa = ["antsibull-changelog", "flake8 (>=6.0.0)", "pylint (>=2.15.7)", "reuse"] coverage = ["coverage[toml]"] -dev = ["antsibull-changelog", "asynctest", "black (>=24)", "coverage[toml]", "cryptography", "flake8 (>=6.0.0)", "isort", "mypy", "nox", "pylint (>=2.15.7)", "pyre-check (>=0.9.17)", "pytest", "pytest-asyncio (>=0.20)", "pytest-cov", "pytest-error-for-skips", "reuse", "types-aiofiles", "types-pyyaml", "typing-extensions"] +dev = ["antsibull-changelog", "asynctest", "black (>=24)", "coverage[toml]", "cryptography", "flake8 (>=6.0.0)", "isort", "mypy", "nox", "pylint (>=2.15.7)", "pyre-check (>=0.9.17)", "pytest", "pytest-asyncio (>=0.20)", "pytest-cov", "pytest-error-for-skips", "reuse", "types-aiofiles", "typing-extensions"] formatters = ["black (>=24)", "isort"] test = ["asynctest", "cryptography", "pytest", "pytest-asyncio (>=0.20)", "pytest-cov", "pytest-error-for-skips"] -typing = ["mypy", "pyre-check (>=0.9.17)", "types-aiofiles", "types-pyyaml", "typing-extensions"] +typing = ["mypy", "pyre-check (>=0.9.17)", "types-aiofiles", "typing-extensions"] [[package]] name = "antsibull-docs" -version = "2.13.1" +version = "2.14.0" description = "Tools for building Ansible documentation" optional = false python-versions = ">=3.9" files = [ - {file = "antsibull_docs-2.13.1-py3-none-any.whl", hash = "sha256:c2385536beedf22ef86afad8c7c50ba757690239eb81a56c7cddc80bc001ce6e"}, - {file = "antsibull_docs-2.13.1.tar.gz", hash = "sha256:32d679d14e23b27d705fa6d2011c3d1e27d90b601bc793ff2c60b0acf8cc4a63"}, + {file = "antsibull_docs-2.14.0-py3-none-any.whl", hash = "sha256:1a302340a3640438e0dc83a9ca385ee6724abe0ee57198736de526046251ac0e"}, + {file = "antsibull_docs-2.14.0.tar.gz", hash = "sha256:b4e40bfb3674fa44834be3eb9d23dd4831cab6a0780c7f1448ac85208e731637"}, ] [package.dependencies] @@ -348,6 +350,7 @@ ansible-pygments = "*" antsibull-changelog = ">=0.24.0" antsibull-core = ">=2.1.0,<4.0.0" antsibull-docs-parser = ">=1.1.0,<2.0.0" +antsibull-fileutils = ">=1.0.0,<2.0.0" asyncio-pool = "*" docutils = "*" jinja2 = ">=3.0" @@ -386,6 +389,29 @@ formatters = ["black", "isort"] test = ["pytest", "pytest-cov", "pytest-error-for-skips", "pyyaml"] typing = ["mypy", "pyre-check (>=0.9.17)"] +[[package]] +name = "antsibull-fileutils" +version = "1.0.1" +description = "Tools for building the Ansible Distribution" +optional = false +python-versions = ">=3.9" +files = [ + {file = "antsibull_fileutils-1.0.1-py3-none-any.whl", hash = "sha256:a01471cc6480dc55eb9be223a04bf96a7f8c583657b824285afb44dcb0b4490c"}, + {file = "antsibull_fileutils-1.0.1.tar.gz", hash = "sha256:104cc078dfd1adad555771bf74e16a3f2670f128364d60d44faf4e9028d2e1d1"}, +] + +[package.dependencies] +aiofiles = "*" +pyyaml = "*" + +[package.extras] +codeqa = ["antsibull-changelog", "flake8 (>=6.0.0)", "pylint (>=2.15.7)", "reuse"] +coverage = ["coverage[toml]"] +dev = ["antsibull-changelog", "black (>=24)", "coverage[toml]", "flake8 (>=6.0.0)", "isort", "mypy", "nox", "pylint (>=2.15.7)", "pytest", "pytest-asyncio (>=0.20)", "pytest-cov", "pytest-error-for-skips", "reuse", "types-aiofiles", "types-pyyaml", "typing-extensions"] +formatters = ["black (>=24)", "isort"] +test = ["pytest", "pytest-asyncio (>=0.20)", "pytest-cov", "pytest-error-for-skips"] +typing = ["mypy", "types-aiofiles", "types-pyyaml", "typing-extensions"] + [[package]] name = "anyio" version = "4.4.0" @@ -1154,13 +1180,13 @@ socks = ["socksio (==1.*)"] [[package]] name = "hypothesis" -version = "6.112.0" +version = "6.112.1" description = "A library for property-based testing" optional = false python-versions = ">=3.8" files = [ - {file = "hypothesis-6.112.0-py3-none-any.whl", hash = "sha256:1e6adbd9534c0d691690b5006904327ea37c851d4e15262a22094aa77879e84d"}, - {file = "hypothesis-6.112.0.tar.gz", hash = "sha256:06ea8857e1e711a1a6f24154a3c8c4eab04b041993206aaa267f98b859fd6ef5"}, + {file = "hypothesis-6.112.1-py3-none-any.whl", hash = "sha256:93631b1498b20d2c205ed304cbd41d50e9c069d78a9c773c1324ca094c5e30ce"}, + {file = "hypothesis-6.112.1.tar.gz", hash = "sha256:b070d7a1bb9bd84706c31885c9aeddc138e2b36a9c112a91984f49501c567856"}, ] [package.dependencies] @@ -1209,22 +1235,26 @@ files = [ [[package]] name = "importlib-metadata" -version = "8.4.0" +version = "8.5.0" description = "Read metadata from Python packages" optional = false python-versions = ">=3.8" files = [ - {file = "importlib_metadata-8.4.0-py3-none-any.whl", hash = "sha256:66f342cc6ac9818fc6ff340576acd24d65ba0b3efabb2b4ac08b598965a4a2f1"}, - {file = "importlib_metadata-8.4.0.tar.gz", hash = "sha256:9a547d3bc3608b025f93d403fdd1aae741c24fbb8314df4b155675742ce303c5"}, + {file = "importlib_metadata-8.5.0-py3-none-any.whl", hash = "sha256:45e54197d28b7a7f1559e60b95e7c567032b602131fbd588f1497f47880aa68b"}, + {file = "importlib_metadata-8.5.0.tar.gz", hash = "sha256:71522656f0abace1d072b9e5481a48f07c138e00f079c38c8f883823f9c26bd7"}, ] [package.dependencies] -zipp = ">=0.5" +zipp = ">=3.20" [package.extras] +check = ["pytest-checkdocs (>=2.4)", "pytest-ruff (>=0.2.1)"] +cover = ["pytest-cov"] doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] +enabler = ["pytest-enabler (>=2.2)"] perf = ["ipython"] -test = ["flufl.flake8", "importlib-resources (>=1.3)", "jaraco.test (>=5.4)", "packaging", "pyfakefs", "pytest (>=6,!=8.1.*)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy", "pytest-perf (>=0.9.2)", "pytest-ruff (>=0.2.1)"] +test = ["flufl.flake8", "importlib-resources (>=1.3)", "jaraco.test (>=5.4)", "packaging", "pyfakefs", "pytest (>=6,!=8.1.*)", "pytest-perf (>=0.9.2)"] +type = ["pytest-mypy"] [[package]] name = "importlib-resources" @@ -1243,13 +1273,13 @@ testing = ["pytest (>=3.5,!=3.7.3)", "pytest-black (>=0.3.7)", "pytest-checkdocs [[package]] name = "infrahub-sdk" -version = "0.12.4" +version = "0.13.0" description = "Python Client to interact with Infrahub" optional = false python-versions = "<4.0,>=3.9" files = [ - {file = "infrahub_sdk-0.12.4-py3-none-any.whl", hash = "sha256:5a7235baf000368dc13dfafb01e268753887d3a21f7a7a0298fcace421fb9af7"}, - {file = "infrahub_sdk-0.12.4.tar.gz", hash = "sha256:ea1b9b241f1433f1f9023d7351a035610d67fb3d3599c06e7014358eea52d01c"}, + {file = "infrahub_sdk-0.13.0-py3-none-any.whl", hash = "sha256:c974462d207c47477cf47876a8d6b47b3b939a6e29b88510cffda8b66f7d7bbf"}, + {file = "infrahub_sdk-0.13.0.tar.gz", hash = "sha256:5be70ca95ee63bd7db4c2fc120e9e5129e9eb2c7f37690be7f0170c488d113b2"}, ] [package.dependencies] @@ -1275,12 +1305,12 @@ pytest = {version = "*", optional = true, markers = "extra == \"tests\" or extra pyyaml = {version = ">=6,<7", optional = true, markers = "extra == \"ctl\" or extra == \"tests\" or extra == \"all\""} rich = {version = ">=13,<14", optional = true, markers = "extra == \"ctl\" or extra == \"tests\" or extra == \"all\""} toml = {version = ">=0.10,<0.11", optional = true, markers = "extra == \"ctl\" or extra == \"all\""} -typer = {version = ">=0,<1", optional = true, markers = "extra == \"ctl\" or extra == \"all\""} +typer = {version = ">=0.12.3,<0.13.0", optional = true, markers = "extra == \"ctl\" or extra == \"all\""} ujson = ">=5,<6" [package.extras] -all = ["Jinja2 (>=3,<4)", "numpy (>=1.24.2,<2.0.0)", "numpy (>=1.26.2,<2.0.0)", "pyarrow (>=14,<15)", "pytest", "pyyaml (>=6,<7)", "rich (>=13,<14)", "toml (>=0.10,<0.11)", "typer (>=0,<1)"] -ctl = ["Jinja2 (>=3,<4)", "numpy (>=1.24.2,<2.0.0)", "numpy (>=1.26.2,<2.0.0)", "pyarrow (>=14,<15)", "pyyaml (>=6,<7)", "rich (>=13,<14)", "toml (>=0.10,<0.11)", "typer (>=0,<1)"] +all = ["Jinja2 (>=3,<4)", "numpy (>=1.24.2,<2.0.0)", "numpy (>=1.26.2,<2.0.0)", "pyarrow (>=14,<15)", "pytest", "pyyaml (>=6,<7)", "rich (>=13,<14)", "toml (>=0.10,<0.11)", "typer (>=0.12.3,<0.13.0)"] +ctl = ["Jinja2 (>=3,<4)", "numpy (>=1.24.2,<2.0.0)", "numpy (>=1.26.2,<2.0.0)", "pyarrow (>=14,<15)", "pyyaml (>=6,<7)", "rich (>=13,<14)", "toml (>=0.10,<0.11)", "typer (>=0.12.3,<0.13.0)"] tests = ["Jinja2 (>=3,<4)", "pytest", "pyyaml (>=6,<7)", "rich (>=13,<14)"] [[package]] @@ -2084,13 +2114,13 @@ files = [ [[package]] name = "pytest" -version = "8.3.2" +version = "8.3.3" description = "pytest: simple powerful testing with Python" optional = false python-versions = ">=3.8" files = [ - {file = "pytest-8.3.2-py3-none-any.whl", hash = "sha256:4ba08f9ae7dcf84ded419494d229b48d0903ea6407b030eaec46df5e6a73bba5"}, - {file = "pytest-8.3.2.tar.gz", hash = "sha256:c132345d12ce551242c87269de812483f5bcc87cdbb4722e48487ba194f9fdce"}, + {file = "pytest-8.3.3-py3-none-any.whl", hash = "sha256:a6853c7375b2663155079443d2e45de913a911a11d669df02a50814944db57b2"}, + {file = "pytest-8.3.3.tar.gz", hash = "sha256:70b98107bd648308a7952b06e6ca9a50bc660be218d53c257cc1fc94fda10181"}, ] [package.dependencies] @@ -2184,13 +2214,13 @@ cli = ["click (>=5.0)"] [[package]] name = "pytz" -version = "2024.1" +version = "2024.2" description = "World timezone definitions, modern and historical" optional = false python-versions = "*" files = [ - {file = "pytz-2024.1-py2.py3-none-any.whl", hash = "sha256:328171f4e3623139da4983451950b28e95ac706e13f3f2630a879749e7a8b319"}, - {file = "pytz-2024.1.tar.gz", hash = "sha256:2a29735ea9c18baf14b448846bde5a48030ed267578472d8955cd0e7443a9812"}, + {file = "pytz-2024.2-py2.py3-none-any.whl", hash = "sha256:31c7c1817eb7fae7ca4b8c7ee50c72f93aa2dd863de768e1ef4245d426aa0725"}, + {file = "pytz-2024.2.tar.gz", hash = "sha256:2aa355083c50a0f93fa581709deac0c9ad65cca8a9e9beac660adcbd493c798a"}, ] [[package]] @@ -2560,29 +2590,29 @@ files = [ [[package]] name = "ruff" -version = "0.6.4" +version = "0.6.5" description = "An extremely fast Python linter and code formatter, written in Rust." optional = false python-versions = ">=3.7" files = [ - {file = "ruff-0.6.4-py3-none-linux_armv6l.whl", hash = "sha256:c4b153fc152af51855458e79e835fb6b933032921756cec9af7d0ba2aa01a258"}, - {file = "ruff-0.6.4-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:bedff9e4f004dad5f7f76a9d39c4ca98af526c9b1695068198b3bda8c085ef60"}, - {file = "ruff-0.6.4-py3-none-macosx_11_0_arm64.whl", hash = "sha256:d02a4127a86de23002e694d7ff19f905c51e338c72d8e09b56bfb60e1681724f"}, - {file = "ruff-0.6.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7862f42fc1a4aca1ea3ffe8a11f67819d183a5693b228f0bb3a531f5e40336fc"}, - {file = "ruff-0.6.4-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:eebe4ff1967c838a1a9618a5a59a3b0a00406f8d7eefee97c70411fefc353617"}, - {file = "ruff-0.6.4-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:932063a03bac394866683e15710c25b8690ccdca1cf192b9a98260332ca93408"}, - {file = "ruff-0.6.4-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:50e30b437cebef547bd5c3edf9ce81343e5dd7c737cb36ccb4fe83573f3d392e"}, - {file = "ruff-0.6.4-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c44536df7b93a587de690e124b89bd47306fddd59398a0fb12afd6133c7b3818"}, - {file = "ruff-0.6.4-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0ea086601b22dc5e7693a78f3fcfc460cceabfdf3bdc36dc898792aba48fbad6"}, - {file = "ruff-0.6.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0b52387d3289ccd227b62102c24714ed75fbba0b16ecc69a923a37e3b5e0aaaa"}, - {file = "ruff-0.6.4-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:0308610470fcc82969082fc83c76c0d362f562e2f0cdab0586516f03a4e06ec6"}, - {file = "ruff-0.6.4-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:803b96dea21795a6c9d5bfa9e96127cc9c31a1987802ca68f35e5c95aed3fc0d"}, - {file = "ruff-0.6.4-py3-none-musllinux_1_2_i686.whl", hash = "sha256:66dbfea86b663baab8fcae56c59f190caba9398df1488164e2df53e216248baa"}, - {file = "ruff-0.6.4-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:34d5efad480193c046c86608dbba2bccdc1c5fd11950fb271f8086e0c763a5d1"}, - {file = "ruff-0.6.4-py3-none-win32.whl", hash = "sha256:f0f8968feea5ce3777c0d8365653d5e91c40c31a81d95824ba61d871a11b8523"}, - {file = "ruff-0.6.4-py3-none-win_amd64.whl", hash = "sha256:549daccee5227282289390b0222d0fbee0275d1db6d514550d65420053021a58"}, - {file = "ruff-0.6.4-py3-none-win_arm64.whl", hash = "sha256:ac4b75e898ed189b3708c9ab3fc70b79a433219e1e87193b4f2b77251d058d14"}, - {file = "ruff-0.6.4.tar.gz", hash = "sha256:ac3b5bfbee99973f80aa1b7cbd1c9cbce200883bdd067300c22a6cc1c7fba212"}, + {file = "ruff-0.6.5-py3-none-linux_armv6l.whl", hash = "sha256:7e4e308f16e07c95fc7753fc1aaac690a323b2bb9f4ec5e844a97bb7fbebd748"}, + {file = "ruff-0.6.5-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:932cd69eefe4daf8c7d92bd6689f7e8182571cb934ea720af218929da7bd7d69"}, + {file = "ruff-0.6.5-py3-none-macosx_11_0_arm64.whl", hash = "sha256:3a8d42d11fff8d3143ff4da41742a98f8f233bf8890e9fe23077826818f8d680"}, + {file = "ruff-0.6.5-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a50af6e828ee692fb10ff2dfe53f05caecf077f4210fae9677e06a808275754f"}, + {file = "ruff-0.6.5-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:794ada3400a0d0b89e3015f1a7e01f4c97320ac665b7bc3ade24b50b54cb2972"}, + {file = "ruff-0.6.5-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:381413ec47f71ce1d1c614f7779d88886f406f1fd53d289c77e4e533dc6ea200"}, + {file = "ruff-0.6.5-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:52e75a82bbc9b42e63c08d22ad0ac525117e72aee9729a069d7c4f235fc4d276"}, + {file = "ruff-0.6.5-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:09c72a833fd3551135ceddcba5ebdb68ff89225d30758027280968c9acdc7810"}, + {file = "ruff-0.6.5-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:800c50371bdcb99b3c1551d5691e14d16d6f07063a518770254227f7f6e8c178"}, + {file = "ruff-0.6.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8e25ddd9cd63ba1f3bd51c1f09903904a6adf8429df34f17d728a8fa11174253"}, + {file = "ruff-0.6.5-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:7291e64d7129f24d1b0c947ec3ec4c0076e958d1475c61202497c6aced35dd19"}, + {file = "ruff-0.6.5-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:9ad7dfbd138d09d9a7e6931e6a7e797651ce29becd688be8a0d4d5f8177b4b0c"}, + {file = "ruff-0.6.5-py3-none-musllinux_1_2_i686.whl", hash = "sha256:005256d977021790cc52aa23d78f06bb5090dc0bfbd42de46d49c201533982ae"}, + {file = "ruff-0.6.5-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:482c1e6bfeb615eafc5899127b805d28e387bd87db38b2c0c41d271f5e58d8cc"}, + {file = "ruff-0.6.5-py3-none-win32.whl", hash = "sha256:cf4d3fa53644137f6a4a27a2b397381d16454a1566ae5335855c187fbf67e4f5"}, + {file = "ruff-0.6.5-py3-none-win_amd64.whl", hash = "sha256:3e42a57b58e3612051a636bc1ac4e6b838679530235520e8f095f7c44f706ff9"}, + {file = "ruff-0.6.5-py3-none-win_arm64.whl", hash = "sha256:51935067740773afdf97493ba9b8231279e9beef0f2a8079188c4776c25688e0"}, + {file = "ruff-0.6.5.tar.gz", hash = "sha256:4d32d87fab433c0cf285c3683dd4dae63be05fd7a1d65b3f5bf7cdd05a6b96fb"}, ] [[package]] @@ -3174,20 +3204,24 @@ multidict = ">=4.0" [[package]] name = "zipp" -version = "3.19.2" +version = "3.20.2" description = "Backport of pathlib-compatible object wrapper for zip files" optional = false python-versions = ">=3.8" files = [ - {file = "zipp-3.19.2-py3-none-any.whl", hash = "sha256:f091755f667055f2d02b32c53771a7a6c8b47e1fdbc4b72a8b9072b3eef8015c"}, - {file = "zipp-3.19.2.tar.gz", hash = "sha256:bf1dcf6450f873a13e952a29504887c89e6de7506209e5b1bcc3460135d4de19"}, + {file = "zipp-3.20.2-py3-none-any.whl", hash = "sha256:a817ac80d6cf4b23bf7f2828b7cabf326f15a001bea8b1f9b49631780ba28350"}, + {file = "zipp-3.20.2.tar.gz", hash = "sha256:bc9eb26f4506fda01b81bcde0ca78103b6e62f991b381fec825435c836edbc29"}, ] [package.extras] +check = ["pytest-checkdocs (>=2.4)", "pytest-ruff (>=0.2.1)"] +cover = ["pytest-cov"] doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] -test = ["big-O", "importlib-resources", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more-itertools", "pytest (>=6,!=8.1.*)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-ignore-flaky", "pytest-mypy", "pytest-ruff (>=0.2.1)"] +enabler = ["pytest-enabler (>=2.2)"] +test = ["big-O", "importlib-resources", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more-itertools", "pytest (>=6,!=8.1.*)", "pytest-ignore-flaky"] +type = ["pytest-mypy"] [metadata] lock-version = "2.0" python-versions = ">=3.9,<3.13" -content-hash = "fa07258a3682b9fe1e7271754c635d634fcc1215aa87e75cb92cd3be740dd050" +content-hash = "4fa1fdba0b55bcde16f06d95aad9fbc8aee30217a4dbc5dea148b8d506b03c1d" diff --git a/pyproject.toml b/pyproject.toml index e22484b..71de243 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,28 +15,28 @@ deepdiff = "*" cryptography = ">=42.0.0" jinja2 = ">=3.1.4" jmespath = "*" -pytest = "^8.3.2" +pytest = "^8.3.3" pytest-mock = "*" pytest-xdist = "*" pyyaml = "*" mock = "^5.1.0" -antsibull = "0.64.0" -importlib-metadata = "8.4.0" +antsibull = "0.65.0" +importlib-metadata = "8.5.0" pytz = "*" packaging = "*" jsondiff = "*" sphinx_rtd_theme = "*" -hypothesis = "^6.112.0" +hypothesis = "^6.112.1" pytest-pythonpath = "*" parameterized = "^0.9.0" invoke = "^2.2.0" bandit = "^1.7.7" -antsibull-docs = "^2.13.1" +antsibull-docs = "^2.14.0" [tool.poetry.dev-dependencies] [tool.poetry.group.dev.dependencies] -ruff = "0.6.4" +ruff = "0.6.5" [tool.pytest.ini_options] asyncio_mode = "auto" From aabb76dd4a0b6f1bb85bcdff7f309a5aa46ec605 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Sep 2024 09:31:23 +0000 Subject: [PATCH 03/11] chore(deps): bump the all group across 1 directory with 4 updates Bumps the all group with 4 updates in the / directory: [infrahub-sdk](https://github.com/opsmill/infrahub), [hypothesis](https://github.com/HypothesisWorks/hypothesis), [bandit](https://github.com/PyCQA/bandit) and [ruff](https://github.com/astral-sh/ruff). Updates `infrahub-sdk` from 0.13.0 to 0.13.1 - [Release notes](https://github.com/opsmill/infrahub/releases) - [Changelog](https://github.com/opsmill/infrahub/blob/develop/CHANGELOG.md) - [Commits](https://github.com/opsmill/infrahub/commits) Updates `hypothesis` from 6.112.1 to 6.112.2 - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.112.1...hypothesis-python-6.112.2) Updates `bandit` from 1.7.9 to 1.7.10 - [Release notes](https://github.com/PyCQA/bandit/releases) - [Commits](https://github.com/PyCQA/bandit/compare/1.7.9...1.7.10) Updates `ruff` from 0.6.5 to 0.6.8 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.6.5...0.6.8) --- updated-dependencies: - dependency-name: infrahub-sdk dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all - dependency-name: hypothesis dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all - dependency-name: bandit dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all ... Signed-off-by: dependabot[bot] --- poetry.lock | 64 +++++++++++++++++++++++++------------------------- pyproject.toml | 6 ++--- 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/poetry.lock b/poetry.lock index a68489e..eecb470 100644 --- a/poetry.lock +++ b/poetry.lock @@ -491,13 +491,13 @@ dev = ["freezegun (>=1.0,<2.0)", "pytest (>=6.0)", "pytest-cov"] [[package]] name = "bandit" -version = "1.7.9" +version = "1.7.10" description = "Security oriented static analyser for python code." optional = false python-versions = ">=3.8" files = [ - {file = "bandit-1.7.9-py3-none-any.whl", hash = "sha256:52077cb339000f337fb25f7e045995c4ad01511e716e5daac37014b9752de8ec"}, - {file = "bandit-1.7.9.tar.gz", hash = "sha256:7c395a436743018f7be0a4cbb0a4ea9b902b6d87264ddecf8cfdc73b4f78ff61"}, + {file = "bandit-1.7.10-py3-none-any.whl", hash = "sha256:665721d7bebbb4485a339c55161ac0eedde27d51e638000d91c8c2d68343ad02"}, + {file = "bandit-1.7.10.tar.gz", hash = "sha256:59ed5caf5d92b6ada4bf65bc6437feea4a9da1093384445fed4d472acc6cff7b"}, ] [package.dependencies] @@ -1180,13 +1180,13 @@ socks = ["socksio (==1.*)"] [[package]] name = "hypothesis" -version = "6.112.1" +version = "6.112.2" description = "A library for property-based testing" optional = false python-versions = ">=3.8" files = [ - {file = "hypothesis-6.112.1-py3-none-any.whl", hash = "sha256:93631b1498b20d2c205ed304cbd41d50e9c069d78a9c773c1324ca094c5e30ce"}, - {file = "hypothesis-6.112.1.tar.gz", hash = "sha256:b070d7a1bb9bd84706c31885c9aeddc138e2b36a9c112a91984f49501c567856"}, + {file = "hypothesis-6.112.2-py3-none-any.whl", hash = "sha256:914b55f75b7c6f653cd36fef66b61a773a51c1e363939fcbc0216773ff4ee0d9"}, + {file = "hypothesis-6.112.2.tar.gz", hash = "sha256:90cd62d9487eaf294bf0dceb47dbaca6432408b2e9417cfa6e3409313dbde95b"}, ] [package.dependencies] @@ -1195,10 +1195,10 @@ exceptiongroup = {version = ">=1.0.0", markers = "python_version < \"3.11\""} sortedcontainers = ">=2.1.0,<3.0.0" [package.extras] -all = ["backports.zoneinfo (>=0.2.1)", "black (>=19.10b0)", "click (>=7.0)", "crosshair-tool (>=0.0.70)", "django (>=3.2)", "dpcontracts (>=0.4)", "hypothesis-crosshair (>=0.0.13)", "lark (>=0.10.1)", "libcst (>=0.3.16)", "numpy (>=1.17.3)", "pandas (>=1.1)", "pytest (>=4.6)", "python-dateutil (>=1.4)", "pytz (>=2014.1)", "redis (>=3.0.0)", "rich (>=9.0.0)", "tzdata (>=2024.1)"] +all = ["backports.zoneinfo (>=0.2.1)", "black (>=19.10b0)", "click (>=7.0)", "crosshair-tool (>=0.0.72)", "django (>=3.2)", "dpcontracts (>=0.4)", "hypothesis-crosshair (>=0.0.14)", "lark (>=0.10.1)", "libcst (>=0.3.16)", "numpy (>=1.17.3)", "pandas (>=1.1)", "pytest (>=4.6)", "python-dateutil (>=1.4)", "pytz (>=2014.1)", "redis (>=3.0.0)", "rich (>=9.0.0)", "tzdata (>=2024.2)"] cli = ["black (>=19.10b0)", "click (>=7.0)", "rich (>=9.0.0)"] codemods = ["libcst (>=0.3.16)"] -crosshair = ["crosshair-tool (>=0.0.70)", "hypothesis-crosshair (>=0.0.13)"] +crosshair = ["crosshair-tool (>=0.0.72)", "hypothesis-crosshair (>=0.0.14)"] dateutil = ["python-dateutil (>=1.4)"] django = ["django (>=3.2)"] dpcontracts = ["dpcontracts (>=0.4)"] @@ -1209,7 +1209,7 @@ pandas = ["pandas (>=1.1)"] pytest = ["pytest (>=4.6)"] pytz = ["pytz (>=2014.1)"] redis = ["redis (>=3.0.0)"] -zoneinfo = ["backports.zoneinfo (>=0.2.1)", "tzdata (>=2024.1)"] +zoneinfo = ["backports.zoneinfo (>=0.2.1)", "tzdata (>=2024.2)"] [[package]] name = "idna" @@ -1273,13 +1273,13 @@ testing = ["pytest (>=3.5,!=3.7.3)", "pytest-black (>=0.3.7)", "pytest-checkdocs [[package]] name = "infrahub-sdk" -version = "0.13.0" +version = "0.13.1" description = "Python Client to interact with Infrahub" optional = false python-versions = "<4.0,>=3.9" files = [ - {file = "infrahub_sdk-0.13.0-py3-none-any.whl", hash = "sha256:c974462d207c47477cf47876a8d6b47b3b939a6e29b88510cffda8b66f7d7bbf"}, - {file = "infrahub_sdk-0.13.0.tar.gz", hash = "sha256:5be70ca95ee63bd7db4c2fc120e9e5129e9eb2c7f37690be7f0170c488d113b2"}, + {file = "infrahub_sdk-0.13.1-py3-none-any.whl", hash = "sha256:01c3358101569452d079fd619bf6b10f7635602a6a472e61527ca15c135480e5"}, + {file = "infrahub_sdk-0.13.1.tar.gz", hash = "sha256:2f0e207366f84f9bc9025ced314e7a34cb3d21cb3fd2713895b365f8bcb7fbbc"}, ] [package.dependencies] @@ -2590,29 +2590,29 @@ files = [ [[package]] name = "ruff" -version = "0.6.5" +version = "0.6.8" description = "An extremely fast Python linter and code formatter, written in Rust." optional = false python-versions = ">=3.7" files = [ - {file = "ruff-0.6.5-py3-none-linux_armv6l.whl", hash = "sha256:7e4e308f16e07c95fc7753fc1aaac690a323b2bb9f4ec5e844a97bb7fbebd748"}, - {file = "ruff-0.6.5-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:932cd69eefe4daf8c7d92bd6689f7e8182571cb934ea720af218929da7bd7d69"}, - {file = "ruff-0.6.5-py3-none-macosx_11_0_arm64.whl", hash = "sha256:3a8d42d11fff8d3143ff4da41742a98f8f233bf8890e9fe23077826818f8d680"}, - {file = "ruff-0.6.5-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a50af6e828ee692fb10ff2dfe53f05caecf077f4210fae9677e06a808275754f"}, - {file = "ruff-0.6.5-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:794ada3400a0d0b89e3015f1a7e01f4c97320ac665b7bc3ade24b50b54cb2972"}, - {file = "ruff-0.6.5-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:381413ec47f71ce1d1c614f7779d88886f406f1fd53d289c77e4e533dc6ea200"}, - {file = "ruff-0.6.5-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:52e75a82bbc9b42e63c08d22ad0ac525117e72aee9729a069d7c4f235fc4d276"}, - {file = "ruff-0.6.5-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:09c72a833fd3551135ceddcba5ebdb68ff89225d30758027280968c9acdc7810"}, - {file = "ruff-0.6.5-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:800c50371bdcb99b3c1551d5691e14d16d6f07063a518770254227f7f6e8c178"}, - {file = "ruff-0.6.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8e25ddd9cd63ba1f3bd51c1f09903904a6adf8429df34f17d728a8fa11174253"}, - {file = "ruff-0.6.5-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:7291e64d7129f24d1b0c947ec3ec4c0076e958d1475c61202497c6aced35dd19"}, - {file = "ruff-0.6.5-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:9ad7dfbd138d09d9a7e6931e6a7e797651ce29becd688be8a0d4d5f8177b4b0c"}, - {file = "ruff-0.6.5-py3-none-musllinux_1_2_i686.whl", hash = "sha256:005256d977021790cc52aa23d78f06bb5090dc0bfbd42de46d49c201533982ae"}, - {file = "ruff-0.6.5-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:482c1e6bfeb615eafc5899127b805d28e387bd87db38b2c0c41d271f5e58d8cc"}, - {file = "ruff-0.6.5-py3-none-win32.whl", hash = "sha256:cf4d3fa53644137f6a4a27a2b397381d16454a1566ae5335855c187fbf67e4f5"}, - {file = "ruff-0.6.5-py3-none-win_amd64.whl", hash = "sha256:3e42a57b58e3612051a636bc1ac4e6b838679530235520e8f095f7c44f706ff9"}, - {file = "ruff-0.6.5-py3-none-win_arm64.whl", hash = "sha256:51935067740773afdf97493ba9b8231279e9beef0f2a8079188c4776c25688e0"}, - {file = "ruff-0.6.5.tar.gz", hash = "sha256:4d32d87fab433c0cf285c3683dd4dae63be05fd7a1d65b3f5bf7cdd05a6b96fb"}, + {file = "ruff-0.6.8-py3-none-linux_armv6l.whl", hash = "sha256:77944bca110ff0a43b768f05a529fecd0706aac7bcce36d7f1eeb4cbfca5f0f2"}, + {file = "ruff-0.6.8-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:27b87e1801e786cd6ede4ada3faa5e254ce774de835e6723fd94551464c56b8c"}, + {file = "ruff-0.6.8-py3-none-macosx_11_0_arm64.whl", hash = "sha256:cd48f945da2a6334f1793d7f701725a76ba93bf3d73c36f6b21fb04d5338dcf5"}, + {file = "ruff-0.6.8-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:677e03c00f37c66cea033274295a983c7c546edea5043d0c798833adf4cf4c6f"}, + {file = "ruff-0.6.8-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:9f1476236b3eacfacfc0f66aa9e6cd39f2a624cb73ea99189556015f27c0bdeb"}, + {file = "ruff-0.6.8-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6f5a2f17c7d32991169195d52a04c95b256378bbf0de8cb98478351eb70d526f"}, + {file = "ruff-0.6.8-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:5fd0d4b7b1457c49e435ee1e437900ced9b35cb8dc5178921dfb7d98d65a08d0"}, + {file = "ruff-0.6.8-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f8034b19b993e9601f2ddf2c517451e17a6ab5cdb1c13fdff50c1442a7171d87"}, + {file = "ruff-0.6.8-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:6cfb227b932ba8ef6e56c9f875d987973cd5e35bc5d05f5abf045af78ad8e098"}, + {file = "ruff-0.6.8-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6ef0411eccfc3909269fed47c61ffebdcb84a04504bafa6b6df9b85c27e813b0"}, + {file = "ruff-0.6.8-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:007dee844738c3d2e6c24ab5bc7d43c99ba3e1943bd2d95d598582e9c1b27750"}, + {file = "ruff-0.6.8-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:ce60058d3cdd8490e5e5471ef086b3f1e90ab872b548814e35930e21d848c9ce"}, + {file = "ruff-0.6.8-py3-none-musllinux_1_2_i686.whl", hash = "sha256:1085c455d1b3fdb8021ad534379c60353b81ba079712bce7a900e834859182fa"}, + {file = "ruff-0.6.8-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:70edf6a93b19481affd287d696d9e311388d808671bc209fb8907b46a8c3af44"}, + {file = "ruff-0.6.8-py3-none-win32.whl", hash = "sha256:792213f7be25316f9b46b854df80a77e0da87ec66691e8f012f887b4a671ab5a"}, + {file = "ruff-0.6.8-py3-none-win_amd64.whl", hash = "sha256:ec0517dc0f37cad14a5319ba7bba6e7e339d03fbf967a6d69b0907d61be7a263"}, + {file = "ruff-0.6.8-py3-none-win_arm64.whl", hash = "sha256:8d3bb2e3fbb9875172119021a13eed38849e762499e3cfde9588e4b4d70968dc"}, + {file = "ruff-0.6.8.tar.gz", hash = "sha256:a5bf44b1aa0adaf6d9d20f86162b34f7c593bfedabc51239953e446aefc8ce18"}, ] [[package]] @@ -3224,4 +3224,4 @@ type = ["pytest-mypy"] [metadata] lock-version = "2.0" python-versions = ">=3.9,<3.13" -content-hash = "4fa1fdba0b55bcde16f06d95aad9fbc8aee30217a4dbc5dea148b8d506b03c1d" +content-hash = "de78d51fffa223423f30d9ec7afe794403cfd04bd5889f2d749d11f36332a8c3" diff --git a/pyproject.toml b/pyproject.toml index 71de243..f60dd9d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,17 +26,17 @@ pytz = "*" packaging = "*" jsondiff = "*" sphinx_rtd_theme = "*" -hypothesis = "^6.112.1" +hypothesis = "^6.112.2" pytest-pythonpath = "*" parameterized = "^0.9.0" invoke = "^2.2.0" -bandit = "^1.7.7" +bandit = "^1.7.10" antsibull-docs = "^2.14.0" [tool.poetry.dev-dependencies] [tool.poetry.group.dev.dependencies] -ruff = "0.6.5" +ruff = "0.6.8" [tool.pytest.ini_options] asyncio_mode = "auto" From 2633aad73edb1d03ac2d12662a88952671c1187c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 09:58:22 +0000 Subject: [PATCH 04/11] chore(deps): bump the all group with 4 updates Bumps the all group with 4 updates: [infrahub-sdk](https://github.com/opsmill/infrahub), [sphinx-rtd-theme](https://github.com/readthedocs/sphinx_rtd_theme), [hypothesis](https://github.com/HypothesisWorks/hypothesis) and [ruff](https://github.com/astral-sh/ruff). Updates `infrahub-sdk` from 0.13.1 to 0.14.0 - [Release notes](https://github.com/opsmill/infrahub/releases) - [Changelog](https://github.com/opsmill/infrahub/blob/develop/CHANGELOG.md) - [Commits](https://github.com/opsmill/infrahub/commits/infrahub-v0.14.0) Updates `sphinx-rtd-theme` from 2.0.0 to 3.0.0 - [Changelog](https://github.com/readthedocs/sphinx_rtd_theme/blob/master/docs/changelog.rst) - [Commits](https://github.com/readthedocs/sphinx_rtd_theme/compare/2.0.0...3.0.0) Updates `hypothesis` from 6.112.2 to 6.112.4 - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.112.2...hypothesis-python-6.112.4) Updates `ruff` from 0.6.8 to 0.6.9 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.6.8...0.6.9) --- updated-dependencies: - dependency-name: infrahub-sdk dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all - dependency-name: sphinx-rtd-theme dependency-type: direct:production update-type: version-update:semver-major dependency-group: all - dependency-name: hypothesis dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all ... Signed-off-by: dependabot[bot] --- poetry.lock | 70 +++++++++++++++++++++++++------------------------- pyproject.toml | 4 +-- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/poetry.lock b/poetry.lock index eecb470..ae1ce8f 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1180,13 +1180,13 @@ socks = ["socksio (==1.*)"] [[package]] name = "hypothesis" -version = "6.112.2" +version = "6.112.4" description = "A library for property-based testing" optional = false python-versions = ">=3.8" files = [ - {file = "hypothesis-6.112.2-py3-none-any.whl", hash = "sha256:914b55f75b7c6f653cd36fef66b61a773a51c1e363939fcbc0216773ff4ee0d9"}, - {file = "hypothesis-6.112.2.tar.gz", hash = "sha256:90cd62d9487eaf294bf0dceb47dbaca6432408b2e9417cfa6e3409313dbde95b"}, + {file = "hypothesis-6.112.4-py3-none-any.whl", hash = "sha256:6d3e3038968925069d1a7e7ebfa2ed0b65b22eff6800d1e88b687b3c6d2f57b5"}, + {file = "hypothesis-6.112.4.tar.gz", hash = "sha256:8fe64e4a6d0862e209e3c36b42037aee9665cb839d619d9281be45345ab7d856"}, ] [package.dependencies] @@ -1195,10 +1195,10 @@ exceptiongroup = {version = ">=1.0.0", markers = "python_version < \"3.11\""} sortedcontainers = ">=2.1.0,<3.0.0" [package.extras] -all = ["backports.zoneinfo (>=0.2.1)", "black (>=19.10b0)", "click (>=7.0)", "crosshair-tool (>=0.0.72)", "django (>=3.2)", "dpcontracts (>=0.4)", "hypothesis-crosshair (>=0.0.14)", "lark (>=0.10.1)", "libcst (>=0.3.16)", "numpy (>=1.17.3)", "pandas (>=1.1)", "pytest (>=4.6)", "python-dateutil (>=1.4)", "pytz (>=2014.1)", "redis (>=3.0.0)", "rich (>=9.0.0)", "tzdata (>=2024.2)"] +all = ["backports.zoneinfo (>=0.2.1)", "black (>=19.10b0)", "click (>=7.0)", "crosshair-tool (>=0.0.73)", "django (>=3.2)", "dpcontracts (>=0.4)", "hypothesis-crosshair (>=0.0.14)", "lark (>=0.10.1)", "libcst (>=0.3.16)", "numpy (>=1.17.3)", "pandas (>=1.1)", "pytest (>=4.6)", "python-dateutil (>=1.4)", "pytz (>=2014.1)", "redis (>=3.0.0)", "rich (>=9.0.0)", "tzdata (>=2024.2)"] cli = ["black (>=19.10b0)", "click (>=7.0)", "rich (>=9.0.0)"] codemods = ["libcst (>=0.3.16)"] -crosshair = ["crosshair-tool (>=0.0.72)", "hypothesis-crosshair (>=0.0.14)"] +crosshair = ["crosshair-tool (>=0.0.73)", "hypothesis-crosshair (>=0.0.14)"] dateutil = ["python-dateutil (>=1.4)"] django = ["django (>=3.2)"] dpcontracts = ["dpcontracts (>=0.4)"] @@ -1273,13 +1273,13 @@ testing = ["pytest (>=3.5,!=3.7.3)", "pytest-black (>=0.3.7)", "pytest-checkdocs [[package]] name = "infrahub-sdk" -version = "0.13.1" +version = "0.14.0" description = "Python Client to interact with Infrahub" optional = false python-versions = "<4.0,>=3.9" files = [ - {file = "infrahub_sdk-0.13.1-py3-none-any.whl", hash = "sha256:01c3358101569452d079fd619bf6b10f7635602a6a472e61527ca15c135480e5"}, - {file = "infrahub_sdk-0.13.1.tar.gz", hash = "sha256:2f0e207366f84f9bc9025ced314e7a34cb3d21cb3fd2713895b365f8bcb7fbbc"}, + {file = "infrahub_sdk-0.14.0-py3-none-any.whl", hash = "sha256:f414ca90b11f465605723b54fd36ada6ca15e1fd9b81889272f127c82d4ec81e"}, + {file = "infrahub_sdk-0.14.0.tar.gz", hash = "sha256:0ac1c415724caaa70077a3ed5563d0d9b1ff1b6649f1a09d7f6b9b21d461f531"}, ] [package.dependencies] @@ -2590,29 +2590,29 @@ files = [ [[package]] name = "ruff" -version = "0.6.8" +version = "0.6.9" description = "An extremely fast Python linter and code formatter, written in Rust." optional = false python-versions = ">=3.7" files = [ - {file = "ruff-0.6.8-py3-none-linux_armv6l.whl", hash = "sha256:77944bca110ff0a43b768f05a529fecd0706aac7bcce36d7f1eeb4cbfca5f0f2"}, - {file = "ruff-0.6.8-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:27b87e1801e786cd6ede4ada3faa5e254ce774de835e6723fd94551464c56b8c"}, - {file = "ruff-0.6.8-py3-none-macosx_11_0_arm64.whl", hash = "sha256:cd48f945da2a6334f1793d7f701725a76ba93bf3d73c36f6b21fb04d5338dcf5"}, - {file = "ruff-0.6.8-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:677e03c00f37c66cea033274295a983c7c546edea5043d0c798833adf4cf4c6f"}, - {file = "ruff-0.6.8-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:9f1476236b3eacfacfc0f66aa9e6cd39f2a624cb73ea99189556015f27c0bdeb"}, - {file = "ruff-0.6.8-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6f5a2f17c7d32991169195d52a04c95b256378bbf0de8cb98478351eb70d526f"}, - {file = "ruff-0.6.8-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:5fd0d4b7b1457c49e435ee1e437900ced9b35cb8dc5178921dfb7d98d65a08d0"}, - {file = "ruff-0.6.8-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f8034b19b993e9601f2ddf2c517451e17a6ab5cdb1c13fdff50c1442a7171d87"}, - {file = "ruff-0.6.8-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:6cfb227b932ba8ef6e56c9f875d987973cd5e35bc5d05f5abf045af78ad8e098"}, - {file = "ruff-0.6.8-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6ef0411eccfc3909269fed47c61ffebdcb84a04504bafa6b6df9b85c27e813b0"}, - {file = "ruff-0.6.8-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:007dee844738c3d2e6c24ab5bc7d43c99ba3e1943bd2d95d598582e9c1b27750"}, - {file = "ruff-0.6.8-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:ce60058d3cdd8490e5e5471ef086b3f1e90ab872b548814e35930e21d848c9ce"}, - {file = "ruff-0.6.8-py3-none-musllinux_1_2_i686.whl", hash = "sha256:1085c455d1b3fdb8021ad534379c60353b81ba079712bce7a900e834859182fa"}, - {file = "ruff-0.6.8-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:70edf6a93b19481affd287d696d9e311388d808671bc209fb8907b46a8c3af44"}, - {file = "ruff-0.6.8-py3-none-win32.whl", hash = "sha256:792213f7be25316f9b46b854df80a77e0da87ec66691e8f012f887b4a671ab5a"}, - {file = "ruff-0.6.8-py3-none-win_amd64.whl", hash = "sha256:ec0517dc0f37cad14a5319ba7bba6e7e339d03fbf967a6d69b0907d61be7a263"}, - {file = "ruff-0.6.8-py3-none-win_arm64.whl", hash = "sha256:8d3bb2e3fbb9875172119021a13eed38849e762499e3cfde9588e4b4d70968dc"}, - {file = "ruff-0.6.8.tar.gz", hash = "sha256:a5bf44b1aa0adaf6d9d20f86162b34f7c593bfedabc51239953e446aefc8ce18"}, + {file = "ruff-0.6.9-py3-none-linux_armv6l.whl", hash = "sha256:064df58d84ccc0ac0fcd63bc3090b251d90e2a372558c0f057c3f75ed73e1ccd"}, + {file = "ruff-0.6.9-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:140d4b5c9f5fc7a7b074908a78ab8d384dd7f6510402267bc76c37195c02a7ec"}, + {file = "ruff-0.6.9-py3-none-macosx_11_0_arm64.whl", hash = "sha256:53fd8ca5e82bdee8da7f506d7b03a261f24cd43d090ea9db9a1dc59d9313914c"}, + {file = "ruff-0.6.9-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:645d7d8761f915e48a00d4ecc3686969761df69fb561dd914a773c1a8266e14e"}, + {file = "ruff-0.6.9-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:eae02b700763e3847595b9d2891488989cac00214da7f845f4bcf2989007d577"}, + {file = "ruff-0.6.9-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7d5ccc9e58112441de8ad4b29dcb7a86dc25c5f770e3c06a9d57e0e5eba48829"}, + {file = "ruff-0.6.9-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:417b81aa1c9b60b2f8edc463c58363075412866ae4e2b9ab0f690dc1e87ac1b5"}, + {file = "ruff-0.6.9-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3c866b631f5fbce896a74a6e4383407ba7507b815ccc52bcedabb6810fdb3ef7"}, + {file = "ruff-0.6.9-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7b118afbb3202f5911486ad52da86d1d52305b59e7ef2031cea3425142b97d6f"}, + {file = "ruff-0.6.9-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a67267654edc23c97335586774790cde402fb6bbdb3c2314f1fc087dee320bfa"}, + {file = "ruff-0.6.9-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:3ef0cc774b00fec123f635ce5c547dac263f6ee9fb9cc83437c5904183b55ceb"}, + {file = "ruff-0.6.9-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:12edd2af0c60fa61ff31cefb90aef4288ac4d372b4962c2864aeea3a1a2460c0"}, + {file = "ruff-0.6.9-py3-none-musllinux_1_2_i686.whl", hash = "sha256:55bb01caeaf3a60b2b2bba07308a02fca6ab56233302406ed5245180a05c5625"}, + {file = "ruff-0.6.9-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:925d26471fa24b0ce5a6cdfab1bb526fb4159952385f386bdcc643813d472039"}, + {file = "ruff-0.6.9-py3-none-win32.whl", hash = "sha256:eb61ec9bdb2506cffd492e05ac40e5bc6284873aceb605503d8494180d6fc84d"}, + {file = "ruff-0.6.9-py3-none-win_amd64.whl", hash = "sha256:785d31851c1ae91f45b3d8fe23b8ae4b5170089021fbb42402d811135f0b7117"}, + {file = "ruff-0.6.9-py3-none-win_arm64.whl", hash = "sha256:a9641e31476d601f83cd602608739a0840e348bda93fec9f1ee816f8b6798b93"}, + {file = "ruff-0.6.9.tar.gz", hash = "sha256:b076ef717a8e5bc819514ee1d602bbdca5b4420ae13a9cf61a0c0a4f53a2baa2"}, ] [[package]] @@ -2734,22 +2734,22 @@ test = ["cython (>=3.0)", "defusedxml (>=0.7.1)", "pytest (>=8.0)", "setuptools [[package]] name = "sphinx-rtd-theme" -version = "2.0.0" +version = "3.0.0" description = "Read the Docs theme for Sphinx" optional = false -python-versions = ">=3.6" +python-versions = ">=3.8" files = [ - {file = "sphinx_rtd_theme-2.0.0-py2.py3-none-any.whl", hash = "sha256:ec93d0856dc280cf3aee9a4c9807c60e027c7f7b461b77aeffed682e68f0e586"}, - {file = "sphinx_rtd_theme-2.0.0.tar.gz", hash = "sha256:bd5d7b80622406762073a04ef8fadc5f9151261563d47027de09910ce03afe6b"}, + {file = "sphinx_rtd_theme-3.0.0-py2.py3-none-any.whl", hash = "sha256:1ffe1539957775bfa0a7331370de7dc145b6eac705de23365dc55c5d94bb08e7"}, + {file = "sphinx_rtd_theme-3.0.0.tar.gz", hash = "sha256:905d67de03217fd3d76fbbdd992034ac8e77044ef8063a544dda1af74d409e08"}, ] [package.dependencies] -docutils = "<0.21" -sphinx = ">=5,<8" +docutils = ">0.18,<0.22" +sphinx = ">=6,<9" sphinxcontrib-jquery = ">=4,<5" [package.extras] -dev = ["bump2version", "sphinxcontrib-httpdomain", "transifex-client", "wheel"] +dev = ["bump2version", "transifex-client", "twine", "wheel"] [[package]] name = "sphinxcontrib-applehelp" @@ -3224,4 +3224,4 @@ type = ["pytest-mypy"] [metadata] lock-version = "2.0" python-versions = ">=3.9,<3.13" -content-hash = "de78d51fffa223423f30d9ec7afe794403cfd04bd5889f2d749d11f36332a8c3" +content-hash = "7ef549b3686f4ea9fca31a02b03551b23da26458c72ece5bf1a8fc16dc3cfcd7" diff --git a/pyproject.toml b/pyproject.toml index f60dd9d..49aef09 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ pytz = "*" packaging = "*" jsondiff = "*" sphinx_rtd_theme = "*" -hypothesis = "^6.112.2" +hypothesis = "^6.112.4" pytest-pythonpath = "*" parameterized = "^0.9.0" invoke = "^2.2.0" @@ -36,7 +36,7 @@ antsibull-docs = "^2.14.0" [tool.poetry.dev-dependencies] [tool.poetry.group.dev.dependencies] -ruff = "0.6.8" +ruff = "0.6.9" [tool.pytest.ini_options] asyncio_mode = "auto" From ced8f0a2361a23a97acb2b38f9d5c14294b3e7f5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Oct 2024 09:35:21 +0000 Subject: [PATCH 05/11] chore(deps): bump the all group across 1 directory with 7 updates Bumps the all group with 7 updates in the / directory: | Package | From | To | | --- | --- | --- | | [infrahub-sdk](https://github.com/opsmill/infrahub) | `0.14.0` | `0.14.1` | | [cryptography](https://github.com/pyca/cryptography) | `43.0.1` | `43.0.3` | | antsibull | `0.65.0` | `0.67.0` | | [sphinx-rtd-theme](https://github.com/readthedocs/sphinx_rtd_theme) | `3.0.0` | `3.0.1` | | [hypothesis](https://github.com/HypothesisWorks/hypothesis) | `6.112.4` | `6.115.5` | | [antsibull-docs](https://github.com/ansible-community/antsibull-docs) | `2.14.0` | `2.15.0` | | [ruff](https://github.com/astral-sh/ruff) | `0.6.9` | `0.7.1` | Updates `infrahub-sdk` from 0.14.0 to 0.14.1 - [Release notes](https://github.com/opsmill/infrahub/releases) - [Changelog](https://github.com/opsmill/infrahub/blob/develop/CHANGELOG.md) - [Commits](https://github.com/opsmill/infrahub/compare/infrahub-v0.14.0...infrahub-v0.14.1) Updates `cryptography` from 43.0.1 to 43.0.3 - [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pyca/cryptography/compare/43.0.1...43.0.3) Updates `antsibull` from 0.65.0 to 0.67.0 Updates `sphinx-rtd-theme` from 3.0.0 to 3.0.1 - [Changelog](https://github.com/readthedocs/sphinx_rtd_theme/blob/master/docs/changelog.rst) - [Commits](https://github.com/readthedocs/sphinx_rtd_theme/compare/3.0.0...3.0.1) Updates `hypothesis` from 6.112.4 to 6.115.5 - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.112.4...hypothesis-python-6.115.5) Updates `antsibull-docs` from 2.14.0 to 2.15.0 - [Release notes](https://github.com/ansible-community/antsibull-docs/releases) - [Changelog](https://github.com/ansible-community/antsibull-docs/blob/main/CHANGELOG.rst) - [Commits](https://github.com/ansible-community/antsibull-docs/compare/2.14.0...2.15.0) Updates `ruff` from 0.6.9 to 0.7.1 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.6.9...0.7.1) --- updated-dependencies: - dependency-name: infrahub-sdk dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all - dependency-name: cryptography dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all - dependency-name: antsibull dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all - dependency-name: sphinx-rtd-theme dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all - dependency-name: hypothesis dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all - dependency-name: antsibull-docs dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-minor dependency-group: all ... Signed-off-by: dependabot[bot] --- poetry.lock | 169 +++++++++++++++++++++++++++---------------------- pyproject.toml | 8 +-- 2 files changed, 98 insertions(+), 79 deletions(-) diff --git a/poetry.lock b/poetry.lock index ae1ce8f..a8caf4d 100644 --- a/poetry.lock +++ b/poetry.lock @@ -241,13 +241,31 @@ pygments = ">=2.4.0" [[package]] name = "antsibull" -version = "0.65.0" +version = "0.67.0" +description = "The antsibull project has been renamed to antsibull-build" +optional = false +python-versions = ">=3.9" +files = [ + {file = "antsibull-0.67.0-py3-none-any.whl", hash = "sha256:ede7234d55398a3e132fd1ab5a4a93f2c7214a2a496108a01428aa8f7c8793d0"}, + {file = "antsibull-0.67.0.tar.gz", hash = "sha256:f3a1c46758bd1369510cc3a7046ecf67f5c94371a92f524c529b8b0ea2aba229"}, +] + +[package.dependencies] +antsibull-build = ">=0.67.0" + +[package.extras] +all = ["antsibull-build[all]"] +clipboard = ["antsibull-build[clipboard]"] + +[[package]] +name = "antsibull-build" +version = "0.67.0" description = "Tools for building the Ansible Distribution" optional = false python-versions = ">=3.9" files = [ - {file = "antsibull-0.65.0-py3-none-any.whl", hash = "sha256:d963ad61437f30fdba618d008f98acc06044631ba806dc5c996c3ba5e0d314a7"}, - {file = "antsibull-0.65.0.tar.gz", hash = "sha256:56d50083d2e65a1033271db34ea7e7572af00ff03ac03fb1e9bb98afa64aa334"}, + {file = "antsibull_build-0.67.0-py3-none-any.whl", hash = "sha256:383f76c7bbf4e0439b4b7a5ca093b27d1082b97c508f44b57f5a76ceaeaed462"}, + {file = "antsibull_build-0.67.0.tar.gz", hash = "sha256:58f4a03a14617ac60af84ae90ac69782f5276fa7d68ae26c7b6ba5be6079ef99"}, ] [package.dependencies] @@ -255,6 +273,7 @@ aiofiles = "*" aiohttp = ">=3.0.0" antsibull-changelog = ">=0.24.0" antsibull-core = ">=3.1.0,<4.0.0" +antsibull-docs-parser = ">=1.1.0,<2.0.0" antsibull-fileutils = ">=1.0.0,<2.0.0" asyncio-pool = "*" build = "*" @@ -305,13 +324,13 @@ typing = ["mypy", "pyre-check (>=0.9.17)", "types-docutils", "types-pyyaml", "ty [[package]] name = "antsibull-core" -version = "3.1.0" +version = "3.3.0" description = "Tools for building the Ansible Distribution" optional = false python-versions = ">=3.9" files = [ - {file = "antsibull_core-3.1.0-py3-none-any.whl", hash = "sha256:da52107b9e5611cb0dba2a83dc7b9e957395cf2de790024b4f3ab9e200c02458"}, - {file = "antsibull_core-3.1.0.tar.gz", hash = "sha256:7661a72632053108091d07ce9dcc06e7e9f762fec4a235e7328dcc9b3052ae14"}, + {file = "antsibull_core-3.3.0-py3-none-any.whl", hash = "sha256:d36621c887fda9d4dc8bf62b3245179a0478b2e50151682d352adf93c117bc5a"}, + {file = "antsibull_core-3.3.0.tar.gz", hash = "sha256:fe495ba6425385bd950db9844e2f8d347f3412855b4ab8881d395f4047fb5946"}, ] [package.dependencies] @@ -335,27 +354,27 @@ typing = ["mypy", "pyre-check (>=0.9.17)", "types-aiofiles", "typing-extensions" [[package]] name = "antsibull-docs" -version = "2.14.0" +version = "2.15.0" description = "Tools for building Ansible documentation" optional = false python-versions = ">=3.9" files = [ - {file = "antsibull_docs-2.14.0-py3-none-any.whl", hash = "sha256:1a302340a3640438e0dc83a9ca385ee6724abe0ee57198736de526046251ac0e"}, - {file = "antsibull_docs-2.14.0.tar.gz", hash = "sha256:b4e40bfb3674fa44834be3eb9d23dd4831cab6a0780c7f1448ac85208e731637"}, + {file = "antsibull_docs-2.15.0-py3-none-any.whl", hash = "sha256:083888f13c9d4847d53c778d3e4d1611ab3b00a986cca990696436079aa2a9e2"}, + {file = "antsibull_docs-2.15.0.tar.gz", hash = "sha256:02bad19dfa618d74b5a55ade33c976e2ec2312110dd0ba984bfedc03c40d05e5"}, ] [package.dependencies] aiohttp = ">=3.0.0" ansible-pygments = "*" antsibull-changelog = ">=0.24.0" -antsibull-core = ">=2.1.0,<4.0.0" +antsibull-core = ">=3.2.0,<4.0.0" antsibull-docs-parser = ">=1.1.0,<2.0.0" antsibull-fileutils = ">=1.0.0,<2.0.0" asyncio-pool = "*" docutils = "*" jinja2 = ">=3.0" packaging = ">=20.0" -pydantic = ">=1.0.0,<3.0.0" +pydantic = ">=2.0.0,<3.0.0" pyyaml = "*" rstcheck = ">=3.0.0,<7.0.0" semantic-version = "*" @@ -873,38 +892,38 @@ toml = ["tomli"] [[package]] name = "cryptography" -version = "43.0.1" +version = "43.0.3" description = "cryptography is a package which provides cryptographic recipes and primitives to Python developers." optional = false python-versions = ">=3.7" files = [ - {file = "cryptography-43.0.1-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:8385d98f6a3bf8bb2d65a73e17ed87a3ba84f6991c155691c51112075f9ffc5d"}, - {file = "cryptography-43.0.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:27e613d7077ac613e399270253259d9d53872aaf657471473ebfc9a52935c062"}, - {file = "cryptography-43.0.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:68aaecc4178e90719e95298515979814bda0cbada1256a4485414860bd7ab962"}, - {file = "cryptography-43.0.1-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:de41fd81a41e53267cb020bb3a7212861da53a7d39f863585d13ea11049cf277"}, - {file = "cryptography-43.0.1-cp37-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:f98bf604c82c416bc829e490c700ca1553eafdf2912a91e23a79d97d9801372a"}, - {file = "cryptography-43.0.1-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:61ec41068b7b74268fa86e3e9e12b9f0c21fcf65434571dbb13d954bceb08042"}, - {file = "cryptography-43.0.1-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:014f58110f53237ace6a408b5beb6c427b64e084eb451ef25a28308270086494"}, - {file = "cryptography-43.0.1-cp37-abi3-win32.whl", hash = "sha256:2bd51274dcd59f09dd952afb696bf9c61a7a49dfc764c04dd33ef7a6b502a1e2"}, - {file = "cryptography-43.0.1-cp37-abi3-win_amd64.whl", hash = "sha256:666ae11966643886c2987b3b721899d250855718d6d9ce41b521252a17985f4d"}, - {file = "cryptography-43.0.1-cp39-abi3-macosx_10_9_universal2.whl", hash = "sha256:ac119bb76b9faa00f48128b7f5679e1d8d437365c5d26f1c2c3f0da4ce1b553d"}, - {file = "cryptography-43.0.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1bbcce1a551e262dfbafb6e6252f1ae36a248e615ca44ba302df077a846a8806"}, - {file = "cryptography-43.0.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:58d4e9129985185a06d849aa6df265bdd5a74ca6e1b736a77959b498e0505b85"}, - {file = "cryptography-43.0.1-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:d03a475165f3134f773d1388aeb19c2d25ba88b6a9733c5c590b9ff7bbfa2e0c"}, - {file = "cryptography-43.0.1-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:511f4273808ab590912a93ddb4e3914dfd8a388fed883361b02dea3791f292e1"}, - {file = "cryptography-43.0.1-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:80eda8b3e173f0f247f711eef62be51b599b5d425c429b5d4ca6a05e9e856baa"}, - {file = "cryptography-43.0.1-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:38926c50cff6f533f8a2dae3d7f19541432610d114a70808f0926d5aaa7121e4"}, - {file = "cryptography-43.0.1-cp39-abi3-win32.whl", hash = "sha256:a575913fb06e05e6b4b814d7f7468c2c660e8bb16d8d5a1faf9b33ccc569dd47"}, - {file = "cryptography-43.0.1-cp39-abi3-win_amd64.whl", hash = "sha256:d75601ad10b059ec832e78823b348bfa1a59f6b8d545db3a24fd44362a1564cb"}, - {file = "cryptography-43.0.1-pp310-pypy310_pp73-macosx_10_9_x86_64.whl", hash = "sha256:ea25acb556320250756e53f9e20a4177515f012c9eaea17eb7587a8c4d8ae034"}, - {file = "cryptography-43.0.1-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:c1332724be35d23a854994ff0b66530119500b6053d0bd3363265f7e5e77288d"}, - {file = "cryptography-43.0.1-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:fba1007b3ef89946dbbb515aeeb41e30203b004f0b4b00e5e16078b518563289"}, - {file = "cryptography-43.0.1-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:5b43d1ea6b378b54a1dc99dd8a2b5be47658fe9a7ce0a58ff0b55f4b43ef2b84"}, - {file = "cryptography-43.0.1-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:88cce104c36870d70c49c7c8fd22885875d950d9ee6ab54df2745f83ba0dc365"}, - {file = "cryptography-43.0.1-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:9d3cdb25fa98afdd3d0892d132b8d7139e2c087da1712041f6b762e4f807cc96"}, - {file = "cryptography-43.0.1-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:e710bf40870f4db63c3d7d929aa9e09e4e7ee219e703f949ec4073b4294f6172"}, - {file = "cryptography-43.0.1-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:7c05650fe8023c5ed0d46793d4b7d7e6cd9c04e68eabe5b0aeea836e37bdcec2"}, - {file = "cryptography-43.0.1.tar.gz", hash = "sha256:203e92a75716d8cfb491dc47c79e17d0d9207ccffcbcb35f598fbe463ae3444d"}, + {file = "cryptography-43.0.3-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:bf7a1932ac4176486eab36a19ed4c0492da5d97123f1406cf15e41b05e787d2e"}, + {file = "cryptography-43.0.3-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:63efa177ff54aec6e1c0aefaa1a241232dcd37413835a9b674b6e3f0ae2bfd3e"}, + {file = "cryptography-43.0.3-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7e1ce50266f4f70bf41a2c6dc4358afadae90e2a1e5342d3c08883df1675374f"}, + {file = "cryptography-43.0.3-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:443c4a81bb10daed9a8f334365fe52542771f25aedaf889fd323a853ce7377d6"}, + {file = "cryptography-43.0.3-cp37-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:74f57f24754fe349223792466a709f8e0c093205ff0dca557af51072ff47ab18"}, + {file = "cryptography-43.0.3-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:9762ea51a8fc2a88b70cf2995e5675b38d93bf36bd67d91721c309df184f49bd"}, + {file = "cryptography-43.0.3-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:81ef806b1fef6b06dcebad789f988d3b37ccaee225695cf3e07648eee0fc6b73"}, + {file = "cryptography-43.0.3-cp37-abi3-win32.whl", hash = "sha256:cbeb489927bd7af4aa98d4b261af9a5bc025bd87f0e3547e11584be9e9427be2"}, + {file = "cryptography-43.0.3-cp37-abi3-win_amd64.whl", hash = "sha256:f46304d6f0c6ab8e52770addfa2fc41e6629495548862279641972b6215451cd"}, + {file = "cryptography-43.0.3-cp39-abi3-macosx_10_9_universal2.whl", hash = "sha256:8ac43ae87929a5982f5948ceda07001ee5e83227fd69cf55b109144938d96984"}, + {file = "cryptography-43.0.3-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:846da004a5804145a5f441b8530b4bf35afbf7da70f82409f151695b127213d5"}, + {file = "cryptography-43.0.3-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0f996e7268af62598f2fc1204afa98a3b5712313a55c4c9d434aef49cadc91d4"}, + {file = "cryptography-43.0.3-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:f7b178f11ed3664fd0e995a47ed2b5ff0a12d893e41dd0494f406d1cf555cab7"}, + {file = "cryptography-43.0.3-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:c2e6fc39c4ab499049df3bdf567f768a723a5e8464816e8f009f121a5a9f4405"}, + {file = "cryptography-43.0.3-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:e1be4655c7ef6e1bbe6b5d0403526601323420bcf414598955968c9ef3eb7d16"}, + {file = "cryptography-43.0.3-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:df6b6c6d742395dd77a23ea3728ab62f98379eff8fb61be2744d4679ab678f73"}, + {file = "cryptography-43.0.3-cp39-abi3-win32.whl", hash = "sha256:d56e96520b1020449bbace2b78b603442e7e378a9b3bd68de65c782db1507995"}, + {file = "cryptography-43.0.3-cp39-abi3-win_amd64.whl", hash = "sha256:0c580952eef9bf68c4747774cde7ec1d85a6e61de97281f2dba83c7d2c806362"}, + {file = "cryptography-43.0.3-pp310-pypy310_pp73-macosx_10_9_x86_64.whl", hash = "sha256:d03b5621a135bffecad2c73e9f4deb1a0f977b9a8ffe6f8e002bf6c9d07b918c"}, + {file = "cryptography-43.0.3-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:a2a431ee15799d6db9fe80c82b055bae5a752bef645bba795e8e52687c69efe3"}, + {file = "cryptography-43.0.3-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:281c945d0e28c92ca5e5930664c1cefd85efe80e5c0d2bc58dd63383fda29f83"}, + {file = "cryptography-43.0.3-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:f18c716be16bc1fea8e95def49edf46b82fccaa88587a45f8dc0ff6ab5d8e0a7"}, + {file = "cryptography-43.0.3-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:4a02ded6cd4f0a5562a8887df8b3bd14e822a90f97ac5e544c162899bc467664"}, + {file = "cryptography-43.0.3-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:53a583b6637ab4c4e3591a15bc9db855b8d9dee9a669b550f311480acab6eb08"}, + {file = "cryptography-43.0.3-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:1ec0bcf7e17c0c5669d881b1cd38c4972fade441b27bda1051665faaa89bdcaa"}, + {file = "cryptography-43.0.3-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:2ce6fae5bdad59577b44e4dfed356944fbf1d925269114c28be377692643b4ff"}, + {file = "cryptography-43.0.3.tar.gz", hash = "sha256:315b9001266a492a6ff443b61238f956b214dbec9910a081ba5b6646a055a805"}, ] [package.dependencies] @@ -917,7 +936,7 @@ nox = ["nox"] pep8test = ["check-sdist", "click", "mypy", "ruff"] sdist = ["build"] ssh = ["bcrypt (>=3.1.5)"] -test = ["certifi", "cryptography-vectors (==43.0.1)", "pretend", "pytest (>=6.2.0)", "pytest-benchmark", "pytest-cov", "pytest-xdist"] +test = ["certifi", "cryptography-vectors (==43.0.3)", "pretend", "pytest (>=6.2.0)", "pytest-benchmark", "pytest-cov", "pytest-xdist"] test-randomorder = ["pytest-randomly"] [[package]] @@ -1180,13 +1199,13 @@ socks = ["socksio (==1.*)"] [[package]] name = "hypothesis" -version = "6.112.4" +version = "6.115.5" description = "A library for property-based testing" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" files = [ - {file = "hypothesis-6.112.4-py3-none-any.whl", hash = "sha256:6d3e3038968925069d1a7e7ebfa2ed0b65b22eff6800d1e88b687b3c6d2f57b5"}, - {file = "hypothesis-6.112.4.tar.gz", hash = "sha256:8fe64e4a6d0862e209e3c36b42037aee9665cb839d619d9281be45345ab7d856"}, + {file = "hypothesis-6.115.5-py3-none-any.whl", hash = "sha256:b7733459ae9a93020fac3b91b41473c9b85e975139a152a70d88f3a5caa3fa3f"}, + {file = "hypothesis-6.115.5.tar.gz", hash = "sha256:4768c5fb426b305462ed31032d6e216a31daaefb1dc3134fdf2795b7961d7cb3"}, ] [package.dependencies] @@ -1195,21 +1214,21 @@ exceptiongroup = {version = ">=1.0.0", markers = "python_version < \"3.11\""} sortedcontainers = ">=2.1.0,<3.0.0" [package.extras] -all = ["backports.zoneinfo (>=0.2.1)", "black (>=19.10b0)", "click (>=7.0)", "crosshair-tool (>=0.0.73)", "django (>=3.2)", "dpcontracts (>=0.4)", "hypothesis-crosshair (>=0.0.14)", "lark (>=0.10.1)", "libcst (>=0.3.16)", "numpy (>=1.17.3)", "pandas (>=1.1)", "pytest (>=4.6)", "python-dateutil (>=1.4)", "pytz (>=2014.1)", "redis (>=3.0.0)", "rich (>=9.0.0)", "tzdata (>=2024.2)"] +all = ["black (>=19.10b0)", "click (>=7.0)", "crosshair-tool (>=0.0.74)", "django (>=4.2)", "dpcontracts (>=0.4)", "hypothesis-crosshair (>=0.0.16)", "lark (>=0.10.1)", "libcst (>=0.3.16)", "numpy (>=1.19.3)", "pandas (>=1.1)", "pytest (>=4.6)", "python-dateutil (>=1.4)", "pytz (>=2014.1)", "redis (>=3.0.0)", "rich (>=9.0.0)", "tzdata (>=2024.2)"] cli = ["black (>=19.10b0)", "click (>=7.0)", "rich (>=9.0.0)"] codemods = ["libcst (>=0.3.16)"] -crosshair = ["crosshair-tool (>=0.0.73)", "hypothesis-crosshair (>=0.0.14)"] +crosshair = ["crosshair-tool (>=0.0.74)", "hypothesis-crosshair (>=0.0.16)"] dateutil = ["python-dateutil (>=1.4)"] -django = ["django (>=3.2)"] +django = ["django (>=4.2)"] dpcontracts = ["dpcontracts (>=0.4)"] ghostwriter = ["black (>=19.10b0)"] lark = ["lark (>=0.10.1)"] -numpy = ["numpy (>=1.17.3)"] +numpy = ["numpy (>=1.19.3)"] pandas = ["pandas (>=1.1)"] pytest = ["pytest (>=4.6)"] pytz = ["pytz (>=2014.1)"] redis = ["redis (>=3.0.0)"] -zoneinfo = ["backports.zoneinfo (>=0.2.1)", "tzdata (>=2024.2)"] +zoneinfo = ["tzdata (>=2024.2)"] [[package]] name = "idna" @@ -1273,13 +1292,13 @@ testing = ["pytest (>=3.5,!=3.7.3)", "pytest-black (>=0.3.7)", "pytest-checkdocs [[package]] name = "infrahub-sdk" -version = "0.14.0" +version = "0.14.1" description = "Python Client to interact with Infrahub" optional = false python-versions = "<4.0,>=3.9" files = [ - {file = "infrahub_sdk-0.14.0-py3-none-any.whl", hash = "sha256:f414ca90b11f465605723b54fd36ada6ca15e1fd9b81889272f127c82d4ec81e"}, - {file = "infrahub_sdk-0.14.0.tar.gz", hash = "sha256:0ac1c415724caaa70077a3ed5563d0d9b1ff1b6649f1a09d7f6b9b21d461f531"}, + {file = "infrahub_sdk-0.14.1-py3-none-any.whl", hash = "sha256:f981e74ba932d3e6711daa0eaf0a08410e5956f02a0a1548b2d4c3b0e22aa892"}, + {file = "infrahub_sdk-0.14.1.tar.gz", hash = "sha256:becb43c130ab5178c831b193a0951892ad461844dd432b9d6602ebcc4522bcc6"}, ] [package.dependencies] @@ -2590,29 +2609,29 @@ files = [ [[package]] name = "ruff" -version = "0.6.9" +version = "0.7.1" description = "An extremely fast Python linter and code formatter, written in Rust." optional = false python-versions = ">=3.7" files = [ - {file = "ruff-0.6.9-py3-none-linux_armv6l.whl", hash = "sha256:064df58d84ccc0ac0fcd63bc3090b251d90e2a372558c0f057c3f75ed73e1ccd"}, - {file = "ruff-0.6.9-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:140d4b5c9f5fc7a7b074908a78ab8d384dd7f6510402267bc76c37195c02a7ec"}, - {file = "ruff-0.6.9-py3-none-macosx_11_0_arm64.whl", hash = "sha256:53fd8ca5e82bdee8da7f506d7b03a261f24cd43d090ea9db9a1dc59d9313914c"}, - {file = "ruff-0.6.9-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:645d7d8761f915e48a00d4ecc3686969761df69fb561dd914a773c1a8266e14e"}, - {file = "ruff-0.6.9-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:eae02b700763e3847595b9d2891488989cac00214da7f845f4bcf2989007d577"}, - {file = "ruff-0.6.9-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7d5ccc9e58112441de8ad4b29dcb7a86dc25c5f770e3c06a9d57e0e5eba48829"}, - {file = "ruff-0.6.9-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:417b81aa1c9b60b2f8edc463c58363075412866ae4e2b9ab0f690dc1e87ac1b5"}, - {file = "ruff-0.6.9-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3c866b631f5fbce896a74a6e4383407ba7507b815ccc52bcedabb6810fdb3ef7"}, - {file = "ruff-0.6.9-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7b118afbb3202f5911486ad52da86d1d52305b59e7ef2031cea3425142b97d6f"}, - {file = "ruff-0.6.9-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a67267654edc23c97335586774790cde402fb6bbdb3c2314f1fc087dee320bfa"}, - {file = "ruff-0.6.9-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:3ef0cc774b00fec123f635ce5c547dac263f6ee9fb9cc83437c5904183b55ceb"}, - {file = "ruff-0.6.9-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:12edd2af0c60fa61ff31cefb90aef4288ac4d372b4962c2864aeea3a1a2460c0"}, - {file = "ruff-0.6.9-py3-none-musllinux_1_2_i686.whl", hash = "sha256:55bb01caeaf3a60b2b2bba07308a02fca6ab56233302406ed5245180a05c5625"}, - {file = "ruff-0.6.9-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:925d26471fa24b0ce5a6cdfab1bb526fb4159952385f386bdcc643813d472039"}, - {file = "ruff-0.6.9-py3-none-win32.whl", hash = "sha256:eb61ec9bdb2506cffd492e05ac40e5bc6284873aceb605503d8494180d6fc84d"}, - {file = "ruff-0.6.9-py3-none-win_amd64.whl", hash = "sha256:785d31851c1ae91f45b3d8fe23b8ae4b5170089021fbb42402d811135f0b7117"}, - {file = "ruff-0.6.9-py3-none-win_arm64.whl", hash = "sha256:a9641e31476d601f83cd602608739a0840e348bda93fec9f1ee816f8b6798b93"}, - {file = "ruff-0.6.9.tar.gz", hash = "sha256:b076ef717a8e5bc819514ee1d602bbdca5b4420ae13a9cf61a0c0a4f53a2baa2"}, + {file = "ruff-0.7.1-py3-none-linux_armv6l.whl", hash = "sha256:cb1bc5ed9403daa7da05475d615739cc0212e861b7306f314379d958592aaa89"}, + {file = "ruff-0.7.1-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:27c1c52a8d199a257ff1e5582d078eab7145129aa02721815ca8fa4f9612dc35"}, + {file = "ruff-0.7.1-py3-none-macosx_11_0_arm64.whl", hash = "sha256:588a34e1ef2ea55b4ddfec26bbe76bc866e92523d8c6cdec5e8aceefeff02d99"}, + {file = "ruff-0.7.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:94fc32f9cdf72dc75c451e5f072758b118ab8100727168a3df58502b43a599ca"}, + {file = "ruff-0.7.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:985818742b833bffa543a84d1cc11b5e6871de1b4e0ac3060a59a2bae3969250"}, + {file = "ruff-0.7.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:32f1e8a192e261366c702c5fb2ece9f68d26625f198a25c408861c16dc2dea9c"}, + {file = "ruff-0.7.1-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:699085bf05819588551b11751eff33e9ca58b1b86a6843e1b082a7de40da1565"}, + {file = "ruff-0.7.1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:344cc2b0814047dc8c3a8ff2cd1f3d808bb23c6658db830d25147339d9bf9ea7"}, + {file = "ruff-0.7.1-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4316bbf69d5a859cc937890c7ac7a6551252b6a01b1d2c97e8fc96e45a7c8b4a"}, + {file = "ruff-0.7.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:79d3af9dca4c56043e738a4d6dd1e9444b6d6c10598ac52d146e331eb155a8ad"}, + {file = "ruff-0.7.1-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:c5c121b46abde94a505175524e51891f829414e093cd8326d6e741ecfc0a9112"}, + {file = "ruff-0.7.1-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:8422104078324ea250886954e48f1373a8fe7de59283d747c3a7eca050b4e378"}, + {file = "ruff-0.7.1-py3-none-musllinux_1_2_i686.whl", hash = "sha256:56aad830af8a9db644e80098fe4984a948e2b6fc2e73891538f43bbe478461b8"}, + {file = "ruff-0.7.1-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:658304f02f68d3a83c998ad8bf91f9b4f53e93e5412b8f2388359d55869727fd"}, + {file = "ruff-0.7.1-py3-none-win32.whl", hash = "sha256:b517a2011333eb7ce2d402652ecaa0ac1a30c114fbbd55c6b8ee466a7f600ee9"}, + {file = "ruff-0.7.1-py3-none-win_amd64.whl", hash = "sha256:f38c41fcde1728736b4eb2b18850f6d1e3eedd9678c914dede554a70d5241307"}, + {file = "ruff-0.7.1-py3-none-win_arm64.whl", hash = "sha256:19aa200ec824c0f36d0c9114c8ec0087082021732979a359d6f3c390a6ff2a37"}, + {file = "ruff-0.7.1.tar.gz", hash = "sha256:9d8a41d4aa2dad1575adb98a82870cf5db5f76b2938cf2206c22c940034a36f4"}, ] [[package]] @@ -2734,13 +2753,13 @@ test = ["cython (>=3.0)", "defusedxml (>=0.7.1)", "pytest (>=8.0)", "setuptools [[package]] name = "sphinx-rtd-theme" -version = "3.0.0" +version = "3.0.1" description = "Read the Docs theme for Sphinx" optional = false python-versions = ">=3.8" files = [ - {file = "sphinx_rtd_theme-3.0.0-py2.py3-none-any.whl", hash = "sha256:1ffe1539957775bfa0a7331370de7dc145b6eac705de23365dc55c5d94bb08e7"}, - {file = "sphinx_rtd_theme-3.0.0.tar.gz", hash = "sha256:905d67de03217fd3d76fbbdd992034ac8e77044ef8063a544dda1af74d409e08"}, + {file = "sphinx_rtd_theme-3.0.1-py2.py3-none-any.whl", hash = "sha256:921c0ece75e90633ee876bd7b148cfaad136b481907ad154ac3669b6fc957916"}, + {file = "sphinx_rtd_theme-3.0.1.tar.gz", hash = "sha256:a4c5745d1b06dfcb80b7704fe532eb765b44065a8fad9851e4258c8804140703"}, ] [package.dependencies] @@ -3224,4 +3243,4 @@ type = ["pytest-mypy"] [metadata] lock-version = "2.0" python-versions = ">=3.9,<3.13" -content-hash = "7ef549b3686f4ea9fca31a02b03551b23da26458c72ece5bf1a8fc16dc3cfcd7" +content-hash = "d65576e4616769e18edc7e74d011d5c7fcdd490014d97802d1e7b9fbf4e14dd2" diff --git a/pyproject.toml b/pyproject.toml index 49aef09..b94d583 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,23 +20,23 @@ pytest-mock = "*" pytest-xdist = "*" pyyaml = "*" mock = "^5.1.0" -antsibull = "0.65.0" +antsibull = "0.67.0" importlib-metadata = "8.5.0" pytz = "*" packaging = "*" jsondiff = "*" sphinx_rtd_theme = "*" -hypothesis = "^6.112.4" +hypothesis = "^6.115.5" pytest-pythonpath = "*" parameterized = "^0.9.0" invoke = "^2.2.0" bandit = "^1.7.10" -antsibull-docs = "^2.14.0" +antsibull-docs = "^2.15.0" [tool.poetry.dev-dependencies] [tool.poetry.group.dev.dependencies] -ruff = "0.6.9" +ruff = "0.7.1" [tool.pytest.ini_options] asyncio_mode = "auto" From 72e77fe0f60622ab48026df7d622da7ff1edfdb6 Mon Sep 17 00:00:00 2001 From: Bearchitek Date: Fri, 1 Nov 2024 10:49:23 +0100 Subject: [PATCH 06/11] upgrade SDK to 1.0 --- poetry.lock | 8 ++++---- pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/poetry.lock b/poetry.lock index a8caf4d..2a4252c 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1292,13 +1292,13 @@ testing = ["pytest (>=3.5,!=3.7.3)", "pytest-black (>=0.3.7)", "pytest-checkdocs [[package]] name = "infrahub-sdk" -version = "0.14.1" +version = "1.0.0" description = "Python Client to interact with Infrahub" optional = false python-versions = "<4.0,>=3.9" files = [ - {file = "infrahub_sdk-0.14.1-py3-none-any.whl", hash = "sha256:f981e74ba932d3e6711daa0eaf0a08410e5956f02a0a1548b2d4c3b0e22aa892"}, - {file = "infrahub_sdk-0.14.1.tar.gz", hash = "sha256:becb43c130ab5178c831b193a0951892ad461844dd432b9d6602ebcc4522bcc6"}, + {file = "infrahub_sdk-1.0.0-py3-none-any.whl", hash = "sha256:70eb8b5ef5839fed0faa8ee0f3aae074a616ac9311eb5bfe9f335cb775aa7856"}, + {file = "infrahub_sdk-1.0.0.tar.gz", hash = "sha256:8b2ca6fe04ecc5c0364c444dcc94647eef3e261629b49430a32edc3d07620149"}, ] [package.dependencies] @@ -3243,4 +3243,4 @@ type = ["pytest-mypy"] [metadata] lock-version = "2.0" python-versions = ">=3.9,<3.13" -content-hash = "d65576e4616769e18edc7e74d011d5c7fcdd490014d97802d1e7b9fbf4e14dd2" +content-hash = "09bc7b0b510804a1a9b8dec2620efa174170b9140077b5afcd8679809cc0266d" diff --git a/pyproject.toml b/pyproject.toml index b94d583..0dde726 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ license = "GPLv3" python = ">=3.9,<3.13" ansible-core = ">=2.15.9" ansible-lint = "*" -infrahub-sdk = {version = "^0", extras = ["all"]} +infrahub-sdk = {version = "^1", extras = ["all"]} codecov = "*" deepdiff = "*" cryptography = ">=42.0.0" From 09a480e209d83c668d47919e8aef6600c11c9f98 Mon Sep 17 00:00:00 2001 From: Bearchitek Date: Fri, 1 Nov 2024 12:23:41 +0100 Subject: [PATCH 07/11] Update examples inventories and add comments --- .../targets/inventory/test-inventory.yml | 3 +++ .../targets/inventory/test-inventory2.yml | 9 +++++++-- .../targets/inventory/test-inventory3.yml | 14 +++++++++----- .../targets/inventory/test-inventory4.yml | 6 +++++- .../targets/inventory/test-inventory5.yml | 18 ++++++++++++------ .../targets/inventory/test-inventory6.yml | 19 +++++++++++++------ 6 files changed, 49 insertions(+), 20 deletions(-) diff --git a/tests/integration/targets/inventory/test-inventory.yml b/tests/integration/targets/inventory/test-inventory.yml index ca882bc..0bfbb03 100644 --- a/tests/integration/targets/inventory/test-inventory.yml +++ b/tests/integration/targets/inventory/test-inventory.yml @@ -2,6 +2,9 @@ ### infrahub_inventory.yml file in YAML format ### opsmill.infrahub.inventory plugin is able to do a lookup for ENV vars: INFRAHUB_API_TOKEN and INFRAHUB_ADDRESS +# This inventory will retrieve the InfraDevice with all the Attribute & the Relationships if the relationship kind is `Attribute` or `Parent` +# By default, only the IDs will be retrieved for the related nodes. + plugin: opsmill.infrahub.inventory api_endpoint: "http://localhost:8000" validate_certs: true diff --git a/tests/integration/targets/inventory/test-inventory2.yml b/tests/integration/targets/inventory/test-inventory2.yml index 8953677..a54c3d4 100644 --- a/tests/integration/targets/inventory/test-inventory2.yml +++ b/tests/integration/targets/inventory/test-inventory2.yml @@ -2,6 +2,9 @@ ### infrahub_inventory.yml file in YAML format ### opsmill.infrahub.inventory plugin is able to do a lookup for ENV vars: INFRAHUB_API_TOKEN and INFRAHUB_ADDRESS +# This inventory will retrieve the InfraDevice with **ONLY** the Site Relationship. +# The InfraDevice will be grouped by the Site name + plugin: opsmill.infrahub.inventory api_endpoint: "http://localhost:8000" timeout: 30 @@ -10,7 +13,9 @@ strict: true nodes: InfraDevice: + include: + - site.name keyed_groups: - - prefix: location - key: location.name + - prefix: site + key: site.name diff --git a/tests/integration/targets/inventory/test-inventory3.yml b/tests/integration/targets/inventory/test-inventory3.yml index e7ad4ed..37d8e90 100644 --- a/tests/integration/targets/inventory/test-inventory3.yml +++ b/tests/integration/targets/inventory/test-inventory3.yml @@ -2,6 +2,10 @@ ### infrahub_inventory.yml file in YAML format ### opsmill.infrahub.inventory plugin is able to do a lookup for ENV vars: INFRAHUB_API_TOKEN and INFRAHUB_ADDRESS +# This inventory will retrieve the InfraDevice with the differents Attribute & Relationships requested in `include`. +# The InfraDevice will be grouped by the Site name and the metro-area name +# Several extra variable will be compose based on the retrieved Attribute and Relationship + plugin: opsmill.infrahub.inventory api_endpoint: "http://localhost:8000" @@ -11,18 +15,18 @@ nodes: - name - primary_address.address - platform.ansible_network_os - - location.parent.name - - location.name + - site.parent.name + - site.name - role - tags compose: hostname: name platform: platform.ansible_network_os - ansible_host: primary_address | ansible.utils.ipaddr('address') + ansible_host: primary_address.address | ansible.utils.ipaddr('address') keyed_groups: - prefix: site - key: location.name | lower + key: site.name | lower - prefix: metro - key: location.parent.name | lower + key: site.parent.name | lower diff --git a/tests/integration/targets/inventory/test-inventory4.yml b/tests/integration/targets/inventory/test-inventory4.yml index d8cc840..28abf5c 100644 --- a/tests/integration/targets/inventory/test-inventory4.yml +++ b/tests/integration/targets/inventory/test-inventory4.yml @@ -2,6 +2,9 @@ ### infrahub_inventory.yml file in YAML format ### opsmill.infrahub.inventory plugin is able to do a lookup for ENV vars: INFRAHUB_API_TOKEN and INFRAHUB_ADDRESS +# This inventory will retrieve the InfraDevice with all the Attribute & the Relationships if the relationship kind is `Attribute` or `Parent` +# Except the ones specifically excluded + plugin: opsmill.infrahub.inventory api_endpoint: "http://localhost:8000" validate_certs: true @@ -11,4 +14,5 @@ strict: true nodes: InfraDevice: exclude: - - location + - site # Relationship + - description # Attribute diff --git a/tests/integration/targets/inventory/test-inventory5.yml b/tests/integration/targets/inventory/test-inventory5.yml index aeaee73..0cba968 100644 --- a/tests/integration/targets/inventory/test-inventory5.yml +++ b/tests/integration/targets/inventory/test-inventory5.yml @@ -2,20 +2,26 @@ ### infrahub_inventory.yml file in YAML format ### opsmill.infrahub.inventory plugin is able to do a lookup for ENV vars: INFRAHUB_API_TOKEN and INFRAHUB_ADDRESS +# This inventory will retrieve the InfraDevice with the differents Attribute & Relationships requested in `include`. +# The InfraDevice will be grouped by the Site name and Platform ansible_network_os +# Several extra variable will be compose based on the retrieved Attribute and Relationship +# We are overriting the retrieved variable `platform` to have a string instead of a dict +# The target is set to the branch `atl1-delete-upstream` (if not indicated, the default branch is `main`) + plugin: opsmill.infrahub.inventory api_endpoint: "http://localhost:8000" strict: true -branch: "main" +branch: "atl1-delete-upstream" nodes: InfraDevice: include: - name - - primary_address - - platform - - location + - primary_address.address + - platform.ansible_network_os + - site.name - tags compose: @@ -24,7 +30,7 @@ compose: ansible_host: primary_address.address | ansible.utils.ipaddr('address') keyed_groups: - - prefix: location - key: location.name + - prefix: site + key: site.name - prefix: platform key: platform diff --git a/tests/integration/targets/inventory/test-inventory6.yml b/tests/integration/targets/inventory/test-inventory6.yml index f4228c1..c91c447 100644 --- a/tests/integration/targets/inventory/test-inventory6.yml +++ b/tests/integration/targets/inventory/test-inventory6.yml @@ -2,6 +2,13 @@ ### infrahub_inventory.yml file in YAML format ### opsmill.infrahub.inventory plugin is able to do a lookup for ENV vars: INFRAHUB_API_TOKEN and INFRAHUB_ADDRESS +# This inventory will retrieve the InfraDevice matching *all* the filters. +# So it will retrieved the InfraDevice present on site 'jfk1' with the role 'edge' +# For all those InfraDevice, it will retrieved the differents Attribute & Relationships requested in `include`. +# The InfraDevice will be grouped by the Platform ansible_network_os without prefix or seperator +# Several extra variable will be compose based on the retrieved Attribute and Relationship +# We are overriting the retrieved variable `platform` to have a string instead of a dict + plugin: opsmill.infrahub.inventory api_endpoint: "http://localhost:8000" validate_certs: true @@ -14,13 +21,12 @@ branch: "jfk1-update-edge-ips" nodes: InfraDevice: filters: - location__ids: "1791a399-7e43-13b5-3995-d8e9955c926e" # jfk1 - role__ids: "1791a399-31c4-c688-3992-d8ebd2cca61f" # edge + site__name__value: "jfk1" + role__value: "edge" include: - name - - primary_address - - platform - - location + - primary_address.address + - platform.ansible_network_os - interfaces compose: @@ -29,5 +35,6 @@ compose: ansible_host: primary_address.address | ansible.utils.ipaddr('address') keyed_groups: - - prefix: platform + - prefix: "" + separator: "" key: platform From 72453bcb9934fcfe8455709c4319f9c4b2927fa6 Mon Sep 17 00:00:00 2001 From: Bearchitek Date: Fri, 1 Nov 2024 12:23:54 +0100 Subject: [PATCH 08/11] remove filters exception --- plugins/module_utils/exception.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/plugins/module_utils/exception.py b/plugins/module_utils/exception.py index f6bbe77..8379555 100644 --- a/plugins/module_utils/exception.py +++ b/plugins/module_utils/exception.py @@ -9,7 +9,6 @@ try: from infrahub_sdk.exceptions import ( - FilterNotFoundError, GraphQLError, SchemaNotFoundError, ServerNotReachableError, @@ -39,8 +38,6 @@ def wrapper(*args, **kwargs): raise Exception(f"An error occurred while executing the GraphQL Query {kwargs}") except SchemaNotFoundError: raise Exception(f"Unable to find the schema {kwargs}") - except FilterNotFoundError: - raise Exception(f"Filters not Found {kwargs}") except ServerNotReachableError: raise Exception("Server not Reacheable") except ServerNotResponsiveError: From 33e024dd3ac2c7eef7239afd96f26c24943433f5 Mon Sep 17 00:00:00 2001 From: Bearchitek Date: Fri, 1 Nov 2024 13:59:57 +0100 Subject: [PATCH 09/11] finish refreshing the tests and update poetry files --- docker-compose.yml | 1 - galaxy.yml | 2 +- poetry.lock | 20 +++++++++++++++++- pyproject.toml | 7 +++++-- .../targets/inventory/test-inventory5.yml | 7 +++++-- .../targets/playbooks/fetch_artifact.yml | 12 ++++++++--- .../targets/playbooks/graphql_query.yml | 5 +++++ .../targets/playbooks/graphql_query2.yml | 21 ------------------- .../integration/targets/playbooks/lookup.yml | 3 ++- .../integration/targets/playbooks/lookup2.yml | 3 ++- 10 files changed, 48 insertions(+), 33 deletions(-) delete mode 100644 tests/integration/targets/playbooks/graphql_query2.yml diff --git a/docker-compose.yml b/docker-compose.yml index d8cb993..a073f13 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,4 @@ --- -version: "3.4" x-args: &args PYTHON_VER: ${PYTHON_VER} diff --git a/galaxy.yml b/galaxy.yml index 450161c..d34a788 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -10,7 +10,7 @@ namespace: opsmill name: infrahub # The version of the collection. Must be compatible with semantic versioning -version: 1.2.0 +version: 1.2.2 # The path to the Markdown (.md) readme file. This path is relative to the root of the collection readme: README.md diff --git a/poetry.lock b/poetry.lock index 2a4252c..d478be4 100644 --- a/poetry.lock +++ b/poetry.lock @@ -197,6 +197,24 @@ packaging = "*" PyYAML = ">=5.1" resolvelib = ">=0.5.3,<1.1.0" +[[package]] +name = "ansible-core" +version = "2.17.5" +description = "Radically simple IT automation" +optional = false +python-versions = ">=3.10" +files = [ + {file = "ansible_core-2.17.5-py3-none-any.whl", hash = "sha256:10f165b475cf2bc8d886e532cadb32c52ee6a533649793101d3166bca9bd3ea3"}, + {file = "ansible_core-2.17.5.tar.gz", hash = "sha256:ae7f51fd13dc9d57c9bcd43ef23f9c255ca8f18f4b5c0011a4f9b724d92c5a8e"}, +] + +[package.dependencies] +cryptography = "*" +jinja2 = ">=3.0.0" +packaging = "*" +PyYAML = ">=5.1" +resolvelib = ">=0.5.3,<1.1.0" + [[package]] name = "ansible-lint" version = "6.8.7" @@ -3243,4 +3261,4 @@ type = ["pytest-mypy"] [metadata] lock-version = "2.0" python-versions = ">=3.9,<3.13" -content-hash = "09bc7b0b510804a1a9b8dec2620efa174170b9140077b5afcd8679809cc0266d" +content-hash = "96be603dae5dcc932d206e35f0fe343cef8b9b8e3972689de200f000742727f6" diff --git a/pyproject.toml b/pyproject.toml index 0dde726..23b2809 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,13 +1,16 @@ [tool.poetry] name = "infrahub_ansible_modules" -version = "1.2.0" +version = "1.2.2" description = "Ansible collection to interact with Infrahub's API" authors = ["OpsMill "] license = "GPLv3" [tool.poetry.dependencies] python = ">=3.9,<3.13" -ansible-core = ">=2.15.9" +ansible-core = [ + { version = ">=2.15.9", python = ">=3.9,<3.10" }, + { version = ">=2.17.4", python = ">=3.10" }, +] ansible-lint = "*" infrahub-sdk = {version = "^1", extras = ["all"]} codecov = "*" diff --git a/tests/integration/targets/inventory/test-inventory5.yml b/tests/integration/targets/inventory/test-inventory5.yml index 0cba968..726326e 100644 --- a/tests/integration/targets/inventory/test-inventory5.yml +++ b/tests/integration/targets/inventory/test-inventory5.yml @@ -3,7 +3,7 @@ ### opsmill.infrahub.inventory plugin is able to do a lookup for ENV vars: INFRAHUB_API_TOKEN and INFRAHUB_ADDRESS # This inventory will retrieve the InfraDevice with the differents Attribute & Relationships requested in `include`. -# The InfraDevice will be grouped by the Site name and Platform ansible_network_os +# The InfraDevice will be grouped by the Site (name), Platform (ansible_network_os) and role # Several extra variable will be compose based on the retrieved Attribute and Relationship # We are overriting the retrieved variable `platform` to have a string instead of a dict # The target is set to the branch `atl1-delete-upstream` (if not indicated, the default branch is `main`) @@ -13,7 +13,7 @@ api_endpoint: "http://localhost:8000" strict: true -branch: "atl1-delete-upstream" +branch: "main" nodes: InfraDevice: @@ -22,6 +22,7 @@ nodes: - primary_address.address - platform.ansible_network_os - site.name + - role - tags compose: @@ -34,3 +35,5 @@ keyed_groups: key: site.name - prefix: platform key: platform + - prefix: role + key: role diff --git a/tests/integration/targets/playbooks/fetch_artifact.yml b/tests/integration/targets/playbooks/fetch_artifact.yml index 7765aec..c38c216 100644 --- a/tests/integration/targets/playbooks/fetch_artifact.yml +++ b/tests/integration/targets/playbooks/fetch_artifact.yml @@ -1,7 +1,11 @@ --- +# You can this playbook with the test-inventory5.yml +# Command: +# ansible-playbook fetch_artifact.yml -i ../inventory/test-inventory5.yml -l "*edge*" + - name: Infrahub action plugin Fetch_artifact gather_facts: false - hosts: platform_eos + hosts: all vars: ansible_become: true @@ -11,11 +15,12 @@ artifact_name: "Startup Config for Edge devices" target_id: "{{ id }}" register: startup_artifact + delegate_to: localhost - name: Save configs to localhost ansible.builtin.copy: content: "{{ startup_artifact.text }}" - dest: "/tmp/{{ inventory_hostname }}-startup.conf" + dest: "./tmp/{{ inventory_hostname }}-startup.conf" mode: '644' delegate_to: localhost @@ -24,10 +29,11 @@ artifact_name: "Openconfig Interface for Arista devices" target_id: "{{ id }}" register: openconfig_artifact + delegate_to: localhost - name: Save configs to localhost ansible.builtin.copy: content: "{{ openconfig_artifact.text }}" - dest: "/tmp/{{ inventory_hostname }}-openconfig.conf" + dest: "./tmp/{{ inventory_hostname }}-openconfig.conf" mode: '644' delegate_to: localhost diff --git a/tests/integration/targets/playbooks/graphql_query.yml b/tests/integration/targets/playbooks/graphql_query.yml index babaf92..66b4d8e 100644 --- a/tests/integration/targets/playbooks/graphql_query.yml +++ b/tests/integration/targets/playbooks/graphql_query.yml @@ -28,3 +28,8 @@ opsmill.infrahub.query_graphql: query: "{{ query_dict }}" graph_variables: "{{ variables }}" + register: query_response + + - name: Print result + ansible.builtin.debug: + msg: "{{ query_response }}" diff --git a/tests/integration/targets/playbooks/graphql_query2.yml b/tests/integration/targets/playbooks/graphql_query2.yml deleted file mode 100644 index 7b65f52..0000000 --- a/tests/integration/targets/playbooks/graphql_query2.yml +++ /dev/null @@ -1,21 +0,0 @@ ---- -- name: Infrahub action plugin - gather_facts: false - hosts: localhost - - tasks: - - name: SET FACTS TO SEND TO GRAPHQL ENDPOINT - ansible.builtin.set_fact: - query_dict: - BuiltinLocation: - '@filters': {name__value: "jfk1"} - edges: - node: - name: - value: null - description: - value: null - - - name: Action Plugin - opsmill.infrahub.query_graphql: - query: "{{ query_dict }}" diff --git a/tests/integration/targets/playbooks/lookup.yml b/tests/integration/targets/playbooks/lookup.yml index 6b49ed4..ceb63fd 100644 --- a/tests/integration/targets/playbooks/lookup.yml +++ b/tests/integration/targets/playbooks/lookup.yml @@ -8,7 +8,7 @@ ansible.builtin.set_fact: query_string: | query { - BuiltinLocation { + LocationSite { edges { node { name { @@ -22,6 +22,7 @@ - name: Obtain list of sites from Infrahub ansible.builtin.set_fact: query_response: "{{ query('opsmill.infrahub.lookup', query=query_string) }}" + register: query_response - name: Print result ansible.builtin.debug: diff --git a/tests/integration/targets/playbooks/lookup2.yml b/tests/integration/targets/playbooks/lookup2.yml index d6d8416..75cab09 100644 --- a/tests/integration/targets/playbooks/lookup2.yml +++ b/tests/integration/targets/playbooks/lookup2.yml @@ -7,7 +7,7 @@ - name: SET FACT OF STRING ansible.builtin.set_fact: query_dict: - BuiltinLocation: + LocationSite: edges: node: name: @@ -16,6 +16,7 @@ - name: Obtain list of sites from Infrahub ansible.builtin.set_fact: query_response: "{{ query('opsmill.infrahub.lookup', query=query_dict) }}" + register: query_response - name: Print result ansible.builtin.debug: From 6ef40ca60452e4f8f6386e7a73d48974872e0d98 Mon Sep 17 00:00:00 2001 From: Bearchitek Date: Mon, 4 Nov 2024 09:20:52 +0100 Subject: [PATCH 10/11] udpate infrahub-sdk to 1.0 + add comments/example --- .yamllint.yml | 2 +- docs/plugins/artifact_fetch_module.rst | 4 +- docs/plugins/environment_variables.rst | 2 +- docs/plugins/index.rst | 4 +- docs/plugins/install_role.rst | 4 +- docs/plugins/inventory_inventory.rst | 53 ++++++++++++------- docs/plugins/lookup_lookup.rst | 4 +- docs/plugins/query_graphql_module.rst | 4 +- plugins/inventory/inventory.py | 6 +-- plugins/module_utils/infrahub_utils.py | 15 +++++- tasks/tests.py | 6 +-- .../targets/playbooks/fetch_artifact.yml | 15 +++--- 12 files changed, 72 insertions(+), 47 deletions(-) diff --git a/.yamllint.yml b/.yamllint.yml index fabc168..e9bf2f6 100644 --- a/.yamllint.yml +++ b/.yamllint.yml @@ -4,7 +4,7 @@ extends: default ignore: | /.venv /examples - /tests/**/output* + /tests/** changelogs/changelog.yaml rules: diff --git a/docs/plugins/artifact_fetch_module.rst b/docs/plugins/artifact_fetch_module.rst index 0b0b158..0510394 100644 --- a/docs/plugins/artifact_fetch_module.rst +++ b/docs/plugins/artifact_fetch_module.rst @@ -6,7 +6,7 @@ :trim: .. meta:: - :antsibull-docs: 2.13.1 + :antsibull-docs: 2.15.0 .. Anchors @@ -22,7 +22,7 @@ opsmill.infrahub.artifact_fetch module -- Fetch the content of an artifact from .. Collection note .. note:: - This module is part of the `opsmill.infrahub collection `_ (version 1.1.0). + This module is part of the `opsmill.infrahub collection `_ (version 1.2.2). It is not included in ``ansible-core``. To check whether it is installed, run :code:`ansible-galaxy collection list`. diff --git a/docs/plugins/environment_variables.rst b/docs/plugins/environment_variables.rst index 1c1a9f7..23d6f9b 100644 --- a/docs/plugins/environment_variables.rst +++ b/docs/plugins/environment_variables.rst @@ -1,7 +1,7 @@ :orphan: .. meta:: - :antsibull-docs: 2.13.1 + :antsibull-docs: 2.15.0 .. _list_of_collection_env_vars: diff --git a/docs/plugins/index.rst b/docs/plugins/index.rst index 1010beb..b30650f 100644 --- a/docs/plugins/index.rst +++ b/docs/plugins/index.rst @@ -1,5 +1,5 @@ .. meta:: - :antsibull-docs: 2.13.1 + :antsibull-docs: 2.15.0 .. _plugins_in_opsmill.infrahub: @@ -7,7 +7,7 @@ Opsmill.Infrahub ================ -Collection version 1.1.0 +Collection version 1.2.2 .. contents:: :local: diff --git a/docs/plugins/install_role.rst b/docs/plugins/install_role.rst index 34a1516..0dfb6a6 100644 --- a/docs/plugins/install_role.rst +++ b/docs/plugins/install_role.rst @@ -6,7 +6,7 @@ :trim: .. meta:: - :antsibull-docs: 2.13.1 + :antsibull-docs: 2.15.0 .. Anchors @@ -20,7 +20,7 @@ opsmill.infrahub.install role -- Install Infrahub .. Collection note .. note:: - This role is part of the `opsmill.infrahub collection `_ (version 1.1.0). + This role is part of the `opsmill.infrahub collection `_ (version 1.2.2). It is not included in ``ansible-core``. To check whether it is installed, run :code:`ansible-galaxy collection list`. diff --git a/docs/plugins/inventory_inventory.rst b/docs/plugins/inventory_inventory.rst index a38b7ea..c7b57cf 100644 --- a/docs/plugins/inventory_inventory.rst +++ b/docs/plugins/inventory_inventory.rst @@ -6,7 +6,7 @@ :trim: .. meta:: - :antsibull-docs: 2.13.1 + :antsibull-docs: 2.15.0 .. Anchors @@ -22,7 +22,7 @@ opsmill.infrahub.inventory inventory -- Infrahub inventory source (using GraphQL .. Collection note .. note:: - This inventory plugin is part of the `opsmill.infrahub collection `_ (version 1.1.0). + This inventory plugin is part of the `opsmill.infrahub collection `_ (version 1.2.2). It is not included in ``ansible-core``. To check whether it is installed, run :code:`ansible-galaxy collection list`. @@ -207,7 +207,7 @@ Parameters - INI entry: - .. code-block:: + .. code-block:: ini [inventory] cache = false @@ -259,14 +259,14 @@ Parameters - INI entries: - .. code-block:: + .. code-block:: ini [defaults] fact_caching_connection = VALUE - .. code-block:: + .. code-block:: ini [inventory] cache_connection = VALUE @@ -324,14 +324,14 @@ Parameters - INI entries: - .. code-block:: + .. code-block:: ini [defaults] fact_caching = memory - .. code-block:: + .. code-block:: ini [inventory] cache_plugin = memory @@ -389,14 +389,29 @@ Parameters - INI entries: - .. code-block:: + .. code-block:: ini + + [default] + fact_caching_prefix = ansible_inventory_ + + + Removed in: version 2.16 of ansible.builtin + + + Why: Fixes typing error in INI section name + + Alternative: Use the 'defaults' section instead + + + + .. code-block:: ini [defaults] fact_caching_prefix = ansible_inventory_ - .. code-block:: + .. code-block:: ini [inventory] cache_prefix = ansible_inventory_ @@ -454,14 +469,14 @@ Parameters - INI entries: - .. code-block:: + .. code-block:: ini [defaults] fact_caching_timeout = 3600 - .. code-block:: + .. code-block:: ini [inventory] cache_timeout = 3600 @@ -644,7 +659,7 @@ Parameters The default value when the host variable's value is an empty string. - This option is mutually exclusive with :ansopt:`opsmill.infrahub.inventory#inventory:keyed\_groups[].trailing\_separator`. + This option is mutually exclusive with :literal:`trailing\_separator`. .. raw:: html @@ -880,9 +895,9 @@ Parameters
- Set this option to :ansval:`False` to omit the :ansopt:`opsmill.infrahub.inventory#inventory:keyed\_groups[].separator` after the host variable when the value is an empty string. + Set this option to :emphasis:`False` to omit the :literal:`separator` after the host variable when the value is an empty string. - This option is mutually exclusive with :ansopt:`opsmill.infrahub.inventory#inventory:keyed\_groups[].default\_value`. + This option is mutually exclusive with :literal:`default\_value`. .. rst-class:: ansible-option-line @@ -1265,7 +1280,7 @@ Parameters
- If :ansval:`yes` make invalid entries a fatal error, otherwise skip and continue. + If :literal:`yes` make invalid entries a fatal error, otherwise skip and continue. Since it is possible to use facts in the expressions they might not always be available and we ignore those errors by default. @@ -1417,7 +1432,7 @@ Parameters - INI entry: - .. code-block:: + .. code-block:: ini [inventory_plugins] use_extra_vars = false @@ -1513,10 +1528,10 @@ Examples InfraDevice: include: - name - - platform - - primary_address + - platform.ansible_network_os + - primary_address.address + - site.name - interfaces - - site compose: hostname: name diff --git a/docs/plugins/lookup_lookup.rst b/docs/plugins/lookup_lookup.rst index 4df97b0..1bdfa92 100644 --- a/docs/plugins/lookup_lookup.rst +++ b/docs/plugins/lookup_lookup.rst @@ -6,7 +6,7 @@ :trim: .. meta:: - :antsibull-docs: 2.13.1 + :antsibull-docs: 2.15.0 .. Anchors @@ -22,7 +22,7 @@ opsmill.infrahub.lookup lookup -- Queries and returns elements from Infrahub (us .. Collection note .. note:: - This lookup plugin is part of the `opsmill.infrahub collection `_ (version 1.1.0). + This lookup plugin is part of the `opsmill.infrahub collection `_ (version 1.2.2). It is not included in ``ansible-core``. To check whether it is installed, run :code:`ansible-galaxy collection list`. diff --git a/docs/plugins/query_graphql_module.rst b/docs/plugins/query_graphql_module.rst index 6162b73..db00b10 100644 --- a/docs/plugins/query_graphql_module.rst +++ b/docs/plugins/query_graphql_module.rst @@ -6,7 +6,7 @@ :trim: .. meta:: - :antsibull-docs: 2.13.1 + :antsibull-docs: 2.15.0 .. Anchors @@ -22,7 +22,7 @@ opsmill.infrahub.query_graphql module -- Queries and returns elements from Infra .. Collection note .. note:: - This module is part of the `opsmill.infrahub collection `_ (version 1.1.0). + This module is part of the `opsmill.infrahub collection `_ (version 1.2.2). It is not included in ``ansible-core``. To check whether it is installed, run :code:`ansible-galaxy collection list`. diff --git a/plugins/inventory/inventory.py b/plugins/inventory/inventory.py index 52aea40..6220aed 100644 --- a/plugins/inventory/inventory.py +++ b/plugins/inventory/inventory.py @@ -126,10 +126,10 @@ InfraDevice: include: - name - - platform - - primary_address + - platform.ansible_network_os + - primary_address.address + - site.name - interfaces - - site compose: hostname: name diff --git a/plugins/module_utils/infrahub_utils.py b/plugins/module_utils/infrahub_utils.py index 38a5fc9..afa86c1 100644 --- a/plugins/module_utils/infrahub_utils.py +++ b/plugins/module_utils/infrahub_utils.py @@ -58,14 +58,14 @@ def __init__( @handle_infrahub_exceptions def fetch_single_artifact( self, - filters: Optional[Dict[str, str]] = None, + filters: Dict[str, str], branch: Optional[str] = None, ) -> List[InfrahubNodeSync]: """ Retrieve all artifact content Parameters: - filters (Optional[Dict[str, str]]): Dict of filters to apply on the query + artifact (Optional[Dict[str, str]]): Dict of filters to apply on the query branch (Optional[str]): Name of the branch to query from. Defaults to default_branch. Returns: @@ -129,6 +129,8 @@ def fetch_artifacts( def fetch_single_node( # noqa: PLR0917 self, kind: str, + id: Optional[str] = None, + hfid: Optional[list[str]] = None, include: Optional[List[str]] = None, exclude: Optional[List[str]] = None, filters: Optional[Dict[str, str]] = None, @@ -140,6 +142,8 @@ def fetch_single_node( # noqa: PLR0917 Parameters: kind (str): kind of the nodes to query + id (Optional[str]): ID of the node to retrieve + hfid (Optional[List[str]]): HFID of the node to retrieve include (Optional[List[str]]): list of attributes/relationship to retrieve exclude (Optional[List[str]]): list of attributes/relationship to ignore filters (Optional[Dict[str, str]]): Dict of filters to apply on the query @@ -149,11 +153,18 @@ def fetch_single_node( # noqa: PLR0917 Returns: InfrahubNodeSync: Single Infrahub Node """ + if id: + filters["ids"] = [id] + if hfid: + filters["hfid"] = hfid + if not filters: raise Exception("At least one filter must be provided") node = self.client.get( kind=kind, + id=id, + hfid=hfid, include=include, populate_store=True, exclude=exclude, diff --git a/tasks/tests.py b/tasks/tests.py index 33c6f48..2bbd55d 100644 --- a/tasks/tests.py +++ b/tasks/tests.py @@ -13,7 +13,7 @@ def tests_sanity(context: Context): """Run sanity tests""" print(f" - [{NAMESPACE}] Run sanity tests") - exec_cmd = "docker-compose up --build --force-recreate --quiet-pull --exit-code-from sanity sanity" + exec_cmd = "docker compose up --build --force-recreate --quiet-pull --exit-code-from sanity sanity" try: python_ver = context.config["infrahub_ansible"]["python_ver"] except KeyError: @@ -26,7 +26,7 @@ def tests_sanity(context: Context): def tests_unit(context: Context): """Run unit tests""" print(f" - [{NAMESPACE}] Run unit tests") - exec_cmd = "docker-compose up --build --force-recreate --quiet-pull --exit-code-from unit unit" + exec_cmd = "docker compose up --build --force-recreate --quiet-pull --exit-code-from unit unit" try: python_ver = context.config["infrahub_ansible"]["python_ver"] except KeyError: @@ -39,7 +39,7 @@ def tests_unit(context: Context): def tests_integration(context: Context): """Run integration tests""" print(f" - [{NAMESPACE}] Run integration tests") - exec_cmd = "docker-compose up --build --force-recreate --quiet-pull --exit-code-from integration integration" + exec_cmd = "docker compose up --build --force-recreate --quiet-pull --exit-code-from integration integration" try: python_ver = context.config["infrahub_ansible"]["python_ver"] except KeyError: diff --git a/tests/integration/targets/playbooks/fetch_artifact.yml b/tests/integration/targets/playbooks/fetch_artifact.yml index c38c216..a94ddce 100644 --- a/tests/integration/targets/playbooks/fetch_artifact.yml +++ b/tests/integration/targets/playbooks/fetch_artifact.yml @@ -6,8 +6,9 @@ - name: Infrahub action plugin Fetch_artifact gather_facts: false hosts: all + connection: local vars: - ansible_become: true + ansible_become: false tasks: - name: Query Startup Config for Edge Devices @@ -15,25 +16,23 @@ artifact_name: "Startup Config for Edge devices" target_id: "{{ id }}" register: startup_artifact - delegate_to: localhost - name: Save configs to localhost ansible.builtin.copy: content: "{{ startup_artifact.text }}" - dest: "./tmp/{{ inventory_hostname }}-startup.conf" + dest: "/tmp/{{ inventory_hostname }}-startup.conf" mode: '644' - delegate_to: localhost + when: startup_artifact - name: Query Openconfig Interface for Arista devices opsmill.infrahub.artifact_fetch: artifact_name: "Openconfig Interface for Arista devices" target_id: "{{ id }}" register: openconfig_artifact - delegate_to: localhost - name: Save configs to localhost ansible.builtin.copy: - content: "{{ openconfig_artifact.text }}" - dest: "./tmp/{{ inventory_hostname }}-openconfig.conf" + content: "{{ openconfig_artifact.json }}" + dest: "/tmp/{{ inventory_hostname }}-openconfig.json" mode: '644' - delegate_to: localhost + when: openconfig_artifact From 682daa0b618dbc86b4653aa0953885e2034fe01d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Nov 2024 15:22:41 +0000 Subject: [PATCH 11/11] chore(deps): bump the all group across 1 directory with 2 updates Bumps the all group with 2 updates in the / directory: [hypothesis](https://github.com/HypothesisWorks/hypothesis) and [ruff](https://github.com/astral-sh/ruff). Updates `hypothesis` from 6.115.5 to 6.116.0 - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.115.5...hypothesis-python-6.116.0) Updates `ruff` from 0.7.1 to 0.7.2 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.7.1...0.7.2) --- updated-dependencies: - dependency-name: hypothesis dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all ... Signed-off-by: dependabot[bot] --- poetry.lock | 46 +++++++++++++++++++++++----------------------- pyproject.toml | 4 ++-- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/poetry.lock b/poetry.lock index d478be4..98f8171 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1217,13 +1217,13 @@ socks = ["socksio (==1.*)"] [[package]] name = "hypothesis" -version = "6.115.5" +version = "6.116.0" description = "A library for property-based testing" optional = false python-versions = ">=3.9" files = [ - {file = "hypothesis-6.115.5-py3-none-any.whl", hash = "sha256:b7733459ae9a93020fac3b91b41473c9b85e975139a152a70d88f3a5caa3fa3f"}, - {file = "hypothesis-6.115.5.tar.gz", hash = "sha256:4768c5fb426b305462ed31032d6e216a31daaefb1dc3134fdf2795b7961d7cb3"}, + {file = "hypothesis-6.116.0-py3-none-any.whl", hash = "sha256:d30271214eae0d4758b72b408e9777405c7c7f687e14e8a42853adea887b2891"}, + {file = "hypothesis-6.116.0.tar.gz", hash = "sha256:9c1ac9a2edb77aacae1950d8ded6b3f40dbf8483097c88336265c348d2132c71"}, ] [package.dependencies] @@ -2627,29 +2627,29 @@ files = [ [[package]] name = "ruff" -version = "0.7.1" +version = "0.7.2" description = "An extremely fast Python linter and code formatter, written in Rust." optional = false python-versions = ">=3.7" files = [ - {file = "ruff-0.7.1-py3-none-linux_armv6l.whl", hash = "sha256:cb1bc5ed9403daa7da05475d615739cc0212e861b7306f314379d958592aaa89"}, - {file = "ruff-0.7.1-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:27c1c52a8d199a257ff1e5582d078eab7145129aa02721815ca8fa4f9612dc35"}, - {file = "ruff-0.7.1-py3-none-macosx_11_0_arm64.whl", hash = "sha256:588a34e1ef2ea55b4ddfec26bbe76bc866e92523d8c6cdec5e8aceefeff02d99"}, - {file = "ruff-0.7.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:94fc32f9cdf72dc75c451e5f072758b118ab8100727168a3df58502b43a599ca"}, - {file = "ruff-0.7.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:985818742b833bffa543a84d1cc11b5e6871de1b4e0ac3060a59a2bae3969250"}, - {file = "ruff-0.7.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:32f1e8a192e261366c702c5fb2ece9f68d26625f198a25c408861c16dc2dea9c"}, - {file = "ruff-0.7.1-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:699085bf05819588551b11751eff33e9ca58b1b86a6843e1b082a7de40da1565"}, - {file = "ruff-0.7.1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:344cc2b0814047dc8c3a8ff2cd1f3d808bb23c6658db830d25147339d9bf9ea7"}, - {file = "ruff-0.7.1-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4316bbf69d5a859cc937890c7ac7a6551252b6a01b1d2c97e8fc96e45a7c8b4a"}, - {file = "ruff-0.7.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:79d3af9dca4c56043e738a4d6dd1e9444b6d6c10598ac52d146e331eb155a8ad"}, - {file = "ruff-0.7.1-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:c5c121b46abde94a505175524e51891f829414e093cd8326d6e741ecfc0a9112"}, - {file = "ruff-0.7.1-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:8422104078324ea250886954e48f1373a8fe7de59283d747c3a7eca050b4e378"}, - {file = "ruff-0.7.1-py3-none-musllinux_1_2_i686.whl", hash = "sha256:56aad830af8a9db644e80098fe4984a948e2b6fc2e73891538f43bbe478461b8"}, - {file = "ruff-0.7.1-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:658304f02f68d3a83c998ad8bf91f9b4f53e93e5412b8f2388359d55869727fd"}, - {file = "ruff-0.7.1-py3-none-win32.whl", hash = "sha256:b517a2011333eb7ce2d402652ecaa0ac1a30c114fbbd55c6b8ee466a7f600ee9"}, - {file = "ruff-0.7.1-py3-none-win_amd64.whl", hash = "sha256:f38c41fcde1728736b4eb2b18850f6d1e3eedd9678c914dede554a70d5241307"}, - {file = "ruff-0.7.1-py3-none-win_arm64.whl", hash = "sha256:19aa200ec824c0f36d0c9114c8ec0087082021732979a359d6f3c390a6ff2a37"}, - {file = "ruff-0.7.1.tar.gz", hash = "sha256:9d8a41d4aa2dad1575adb98a82870cf5db5f76b2938cf2206c22c940034a36f4"}, + {file = "ruff-0.7.2-py3-none-linux_armv6l.whl", hash = "sha256:b73f873b5f52092e63ed540adefc3c36f1f803790ecf2590e1df8bf0a9f72cb8"}, + {file = "ruff-0.7.2-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:5b813ef26db1015953daf476202585512afd6a6862a02cde63f3bafb53d0b2d4"}, + {file = "ruff-0.7.2-py3-none-macosx_11_0_arm64.whl", hash = "sha256:853277dbd9675810c6826dad7a428d52a11760744508340e66bf46f8be9701d9"}, + {file = "ruff-0.7.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:21aae53ab1490a52bf4e3bf520c10ce120987b047c494cacf4edad0ba0888da2"}, + {file = "ruff-0.7.2-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ccc7e0fc6e0cb3168443eeadb6445285abaae75142ee22b2b72c27d790ab60ba"}, + {file = "ruff-0.7.2-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:fd77877a4e43b3a98e5ef4715ba3862105e299af0c48942cc6d51ba3d97dc859"}, + {file = "ruff-0.7.2-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:e00163fb897d35523c70d71a46fbaa43bf7bf9af0f4534c53ea5b96b2e03397b"}, + {file = "ruff-0.7.2-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f3c54b538633482dc342e9b634d91168fe8cc56b30a4b4f99287f4e339103e88"}, + {file = "ruff-0.7.2-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7b792468e9804a204be221b14257566669d1db5c00d6bb335996e5cd7004ba80"}, + {file = "ruff-0.7.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dba53ed84ac19ae4bfb4ea4bf0172550a2285fa27fbb13e3746f04c80f7fa088"}, + {file = "ruff-0.7.2-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:b19fafe261bf741bca2764c14cbb4ee1819b67adb63ebc2db6401dcd652e3748"}, + {file = "ruff-0.7.2-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:28bd8220f4d8f79d590db9e2f6a0674f75ddbc3847277dd44ac1f8d30684b828"}, + {file = "ruff-0.7.2-py3-none-musllinux_1_2_i686.whl", hash = "sha256:9fd67094e77efbea932e62b5d2483006154794040abb3a5072e659096415ae1e"}, + {file = "ruff-0.7.2-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:576305393998b7bd6c46018f8104ea3a9cb3fa7908c21d8580e3274a3b04b691"}, + {file = "ruff-0.7.2-py3-none-win32.whl", hash = "sha256:fa993cfc9f0ff11187e82de874dfc3611df80852540331bc85c75809c93253a8"}, + {file = "ruff-0.7.2-py3-none-win_amd64.whl", hash = "sha256:dd8800cbe0254e06b8fec585e97554047fb82c894973f7ff18558eee33d1cb88"}, + {file = "ruff-0.7.2-py3-none-win_arm64.whl", hash = "sha256:bb8368cd45bba3f57bb29cbb8d64b4a33f8415d0149d2655c5c8539452ce7760"}, + {file = "ruff-0.7.2.tar.gz", hash = "sha256:2b14e77293380e475b4e3a7a368e14549288ed2931fce259a6f99978669e844f"}, ] [[package]] @@ -3261,4 +3261,4 @@ type = ["pytest-mypy"] [metadata] lock-version = "2.0" python-versions = ">=3.9,<3.13" -content-hash = "96be603dae5dcc932d206e35f0fe343cef8b9b8e3972689de200f000742727f6" +content-hash = "03e36705bd4659bd61e886036d4731e1282effcf3f8b54338356e76609fb926c" diff --git a/pyproject.toml b/pyproject.toml index 23b2809..74b4519 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,7 @@ pytz = "*" packaging = "*" jsondiff = "*" sphinx_rtd_theme = "*" -hypothesis = "^6.115.5" +hypothesis = "^6.116.0" pytest-pythonpath = "*" parameterized = "^0.9.0" invoke = "^2.2.0" @@ -39,7 +39,7 @@ antsibull-docs = "^2.15.0" [tool.poetry.dev-dependencies] [tool.poetry.group.dev.dependencies] -ruff = "0.7.1" +ruff = "0.7.2" [tool.pytest.ini_options] asyncio_mode = "auto"