From e505a9bc519c2caac3a13d122be053c04813f2c3 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 24 Nov 2022 15:45:42 +0100 Subject: [PATCH] fix(deps): update dependency ansible to v7 (#494) BREAKING CHANGE: Ansible v7 has dropped the support for Python 3.8, and we have dropped it for `ansible-later` as well. --- .drone.jsonnet | 23 +++++++------- .drone.yml | 38 +++++++--------------- poetry.lock | 85 +++++++++++--------------------------------------- pyproject.toml | 6 ++-- 4 files changed, 44 insertions(+), 108 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index a7281ca..f2a53cd 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -1,4 +1,4 @@ -local PythonVersion(pyversion='3.8') = { +local PythonVersion(pyversion='3.9') = { name: 'python' + std.strReplace(pyversion, '.', '') + '-pytest', image: 'python:' + pyversion, environment: { @@ -27,7 +27,7 @@ local PipelineLint = { steps: [ { name: 'yapf', - image: 'python:3.10', + image: 'python:3.11', environment: { PY_COLORS: 1, }, @@ -41,7 +41,7 @@ local PipelineLint = { }, { name: 'flake8', - image: 'python:3.10', + image: 'python:3.11', environment: { PY_COLORS: 1, }, @@ -68,18 +68,17 @@ local PipelineTest = { steps: [ { name: 'fetch', - image: 'python:3.10', + image: 'python:3.11', commands: [ 'git fetch -tq', ], }, - PythonVersion(pyversion='3.8'), PythonVersion(pyversion='3.9'), PythonVersion(pyversion='3.10'), PythonVersion(pyversion='3.11'), { name: 'codecov', - image: 'python:3.10', + image: 'python:3.11', environment: { PY_COLORS: 1, CODECOV_TOKEN: { from_secret: 'codecov_token' }, @@ -89,9 +88,9 @@ local PipelineTest = { 'codecov --required -X gcov', ], depends_on: [ - 'python38-pytest', 'python39-pytest', 'python310-pytest', + 'python311-pytest', ], }, ], @@ -113,7 +112,7 @@ local PipelineSecurity = { steps: [ { name: 'bandit', - image: 'python:3.10', + image: 'python:3.11', environment: { PY_COLORS: 1, }, @@ -143,7 +142,7 @@ local PipelineBuildPackage = { steps: [ { name: 'build', - image: 'python:3.10', + image: 'python:3.11', commands: [ 'git fetch -tq', 'pip install poetry poetry-dynamic-versioning -qq', @@ -189,7 +188,7 @@ local PipelineBuildPackage = { }, { name: 'publish-pypi', - image: 'python:3.10', + image: 'python:3.11', commands: [ 'git fetch -tq', 'pip install poetry poetry-dynamic-versioning -qq', @@ -215,7 +214,7 @@ local PipelineBuildPackage = { local PipelineBuildContainer(arch='amd64') = { local build = if arch == 'arm' then [{ name: 'build', - image: 'python:3.10-alpine', + image: 'python:3.11-alpine', commands: [ 'apk add -Uq --no-cache build-base openssl-dev libffi-dev musl-dev python3-dev git cargo', 'git fetch -tq', @@ -227,7 +226,7 @@ local PipelineBuildContainer(arch='amd64') = { }, }] else [{ name: 'build', - image: 'python:3.10', + image: 'python:3.11', commands: [ 'git fetch -tq', 'pip install poetry poetry-dynamic-versioning -qq', diff --git a/.drone.yml b/.drone.yml index 4ee3ad1..96cb653 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,7 @@ platform: steps: - name: yapf - image: python:3.10 + image: python:3.11 commands: - git fetch -tq - pip install poetry poetry-dynamic-versioning -qq @@ -19,7 +19,7 @@ steps: PY_COLORS: 1 - name: flake8 - image: python:3.10 + image: python:3.11 commands: - git fetch -tq - pip install poetry poetry-dynamic-versioning -qq @@ -44,24 +44,10 @@ platform: steps: - name: fetch - image: python:3.10 + image: python:3.11 commands: - git fetch -tq - - name: python38-pytest - image: python:3.8 - commands: - - pip install poetry poetry-dynamic-versioning -qq - - poetry config experimental.new-installer false - - poetry install -E ansible-core - - poetry run pytest - - poetry version - - poetry run ansible-later --help - environment: - PY_COLORS: 1 - depends_on: - - fetch - - name: python39-pytest image: python:3.9 commands: @@ -105,7 +91,7 @@ steps: - fetch - name: codecov - image: python:3.10 + image: python:3.11 commands: - pip install codecov -qq - codecov --required -X gcov @@ -114,9 +100,9 @@ steps: from_secret: codecov_token PY_COLORS: 1 depends_on: - - python38-pytest - python39-pytest - python310-pytest + - python311-pytest trigger: ref: @@ -137,7 +123,7 @@ platform: steps: - name: bandit - image: python:3.10 + image: python:3.11 commands: - git fetch -tq - pip install poetry poetry-dynamic-versioning -qq @@ -165,7 +151,7 @@ platform: steps: - name: build - image: python:3.10 + image: python:3.11 commands: - git fetch -tq - pip install poetry poetry-dynamic-versioning -qq @@ -204,7 +190,7 @@ steps: - refs/tags/** - name: publish-pypi - image: python:3.10 + image: python:3.11 commands: - git fetch -tq - pip install poetry poetry-dynamic-versioning -qq @@ -237,7 +223,7 @@ platform: steps: - name: build - image: python:3.10 + image: python:3.11 commands: - git fetch -tq - pip install poetry poetry-dynamic-versioning -qq @@ -315,7 +301,7 @@ platform: steps: - name: build - image: python:3.10 + image: python:3.11 commands: - git fetch -tq - pip install poetry poetry-dynamic-versioning -qq @@ -393,7 +379,7 @@ platform: steps: - name: build - image: python:3.10-alpine + image: python:3.11-alpine commands: - apk add -Uq --no-cache build-base openssl-dev libffi-dev musl-dev python3-dev git cargo - git fetch -tq @@ -645,6 +631,6 @@ depends_on: --- kind: signature -hmac: 1dc229fab1d997e1fd362421b0531f31f7c39afbce5791062befe0e389368f95 +hmac: 0e0718865f1e14ff4384bbdd577c85d1bcd023b8de6b413f50d13fae02ddc4ee ... diff --git a/poetry.lock b/poetry.lock index a49a01d..843eb79 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,21 +1,21 @@ [[package]] name = "ansible" -version = "6.6.0" +version = "7.0.0" description = "Radically simple IT automation" category = "main" optional = true -python-versions = ">=3.8" +python-versions = ">=3.9" [package.dependencies] -ansible-core = ">=2.13.6,<2.14.0" +ansible-core = ">=2.14.0,<2.15.0" [[package]] name = "ansible-core" -version = "2.13.6" +version = "2.14.0" description = "Radically simple IT automation" category = "main" optional = true -python-versions = ">=3.8" +python-versions = ">=3.9" [package.dependencies] cryptography = "*" @@ -277,11 +277,11 @@ flake8 = "*" [[package]] name = "gitdb" -version = "4.0.9" +version = "4.0.10" description = "Git Object Database" category = "dev" optional = false -python-versions = ">=3.6" +python-versions = ">=3.7" [package.dependencies] smmap = ">=3.0.1,<6" @@ -297,21 +297,6 @@ python-versions = ">=3.7" [package.dependencies] gitdb = ">=4.0.1,<5" -[[package]] -name = "importlib-resources" -version = "5.10.0" -description = "Read resources from Python packages" -category = "main" -optional = false -python-versions = ">=3.7" - -[package.dependencies] -zipp = {version = ">=3.1.0", markers = "python_version < \"3.10\""} - -[package.extras] -docs = ["furo", "jaraco.packaging (>=9)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)"] -testing = ["flake8 (<5)", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-flake8", "pytest-mypy (>=0.9.1)"] - [[package]] name = "iniconfig" version = "1.1.1" @@ -358,8 +343,6 @@ python-versions = ">=3.7" [package.dependencies] attrs = ">=17.4.0" -importlib-resources = {version = ">=1.4.0", markers = "python_version < \"3.9\""} -pkgutil-resolve-name = {version = ">=1.3.10", markers = "python_version < \"3.9\""} pyrsistent = ">=0.14.0,<0.17.0 || >0.17.0,<0.17.1 || >0.17.1,<0.17.2 || >0.17.2" [package.extras] @@ -431,14 +414,6 @@ python-versions = ">=3.7" [package.dependencies] flake8 = ">=3.9.1" -[[package]] -name = "pkgutil-resolve-name" -version = "1.3.10" -description = "Resolve a name to an object." -category = "main" -optional = false -python-versions = ">=3.6" - [[package]] name = "pluggy" version = "1.0.0" @@ -598,7 +573,7 @@ test = ["commentjson", "packaging", "pytest"] [[package]] name = "setuptools" -version = "65.5.1" +version = "65.6.3" description = "Easily download, build, install, upgrade, and uninstall Python packages" category = "main" optional = false @@ -697,35 +672,23 @@ category = "dev" optional = false python-versions = "*" -[[package]] -name = "zipp" -version = "3.10.0" -description = "Backport of pathlib-compatible object wrapper for zip files" -category = "main" -optional = false -python-versions = ">=3.7" - -[package.extras] -docs = ["furo", "jaraco.packaging (>=9)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)"] -testing = ["flake8 (<5)", "func-timeout", "jaraco.functools", "jaraco.itertools", "more-itertools", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-flake8", "pytest-mypy (>=0.9.1)"] - [extras] ansible = ["ansible"] ansible-core = ["ansible-core"] [metadata] lock-version = "1.1" -python-versions = "^3.8.0" -content-hash = "75224a7b928496e32d7eb1ffd65bba2bc842b2cf2905102bbfc339ea24b4e0c7" +python-versions = "^3.9.0" +content-hash = "3d1cd6a4a13414448f40ebd3bf0034b49a46def144895e7efa70b50e4f999c1d" [metadata.files] ansible = [ - {file = "ansible-6.6.0-py3-none-any.whl", hash = "sha256:3c6812e9af1c243b8a9e5fc6cba618449813765e609caae39a757452e2818dee"}, - {file = "ansible-6.6.0.tar.gz", hash = "sha256:e1b940a8d4f412123ede3c14b25cb99c3c8a4d535fd040aabf8e4fb7b0e4f092"}, + {file = "ansible-7.0.0-py3-none-any.whl", hash = "sha256:2e9f519441780595ab173ac017210efc94c58633c9bc6e55917745d214cb4332"}, + {file = "ansible-7.0.0.tar.gz", hash = "sha256:73144e7e602715fab623005d2e71e503dddae86185e061fed861b2449c5618ea"}, ] ansible-core = [ - {file = "ansible-core-2.13.6.tar.gz", hash = "sha256:31fe322b63290674a8f7386110df501f0044aa44890be3ab313a6e225b9a29cf"}, - {file = "ansible_core-2.13.6-py3-none-any.whl", hash = "sha256:e31fd550a5ea9423f1fc1391de6b41bb0d264a83bbfc9c7edfef0f78b7624fd3"}, + {file = "ansible-core-2.14.0.tar.gz", hash = "sha256:fa48b481cb623bf79bb903f223097681a0c13e1b4ec7e78e7dd7d858d36a34b2"}, + {file = "ansible_core-2.14.0-py3-none-any.whl", hash = "sha256:b191d397c81514bd1922e00e16f0b8ec52e0bcb19b61cc4500085f5f92470cf2"}, ] anyconfig = [ {file = "anyconfig-0.13.0-py2.py3-none-any.whl", hash = "sha256:17cb189938d6cda4d21a2dabcd63db86658d2556e767dfd4835b1011544a1f8e"}, @@ -938,17 +901,13 @@ flake8-quotes = [ {file = "flake8-quotes-3.3.1.tar.gz", hash = "sha256:633adca6fb8a08131536af0d750b44d6985b9aba46f498871e21588c3e6f525a"}, ] gitdb = [ - {file = "gitdb-4.0.9-py3-none-any.whl", hash = "sha256:8033ad4e853066ba6ca92050b9df2f89301b8fc8bf7e9324d412a63f8bf1a8fd"}, - {file = "gitdb-4.0.9.tar.gz", hash = "sha256:bac2fd45c0a1c9cf619e63a90d62bdc63892ef92387424b855792a6cabe789aa"}, + {file = "gitdb-4.0.10-py3-none-any.whl", hash = "sha256:c286cf298426064079ed96a9e4a9d39e7f3e9bf15ba60701e95f5492f28415c7"}, + {file = "gitdb-4.0.10.tar.gz", hash = "sha256:6eb990b69df4e15bad899ea868dc46572c3f75339735663b81de79b06f17eb9a"}, ] gitpython = [ {file = "GitPython-3.1.29-py3-none-any.whl", hash = "sha256:41eea0deec2deea139b459ac03656f0dd28fc4a3387240ec1d3c259a2c47850f"}, {file = "GitPython-3.1.29.tar.gz", hash = "sha256:cc36bfc4a3f913e66805a28e84703e419d9c264c1077e537b54f0e1af85dbefd"}, ] -importlib-resources = [ - {file = "importlib_resources-5.10.0-py3-none-any.whl", hash = "sha256:ee17ec648f85480d523596ce49eae8ead87d5631ae1551f913c0100b5edd3437"}, - {file = "importlib_resources-5.10.0.tar.gz", hash = "sha256:c01b1b94210d9849f286b86bb51bcea7cd56dde0600d8db721d7b81330711668"}, -] iniconfig = [ {file = "iniconfig-1.1.1-py2.py3-none-any.whl", hash = "sha256:011e24c64b7f47f6ebd835bb12a743f2fbe9a26d4cecaa7f53bc4f35ee9da8b3"}, {file = "iniconfig-1.1.1.tar.gz", hash = "sha256:bc3af051d7d14b2ee5ef9969666def0cd1a000e121eaea580d4a313df4b37f32"}, @@ -1030,10 +989,6 @@ pep8-naming = [ {file = "pep8-naming-0.13.2.tar.gz", hash = "sha256:93eef62f525fd12a6f8c98f4dcc17fa70baae2f37fa1f73bec00e3e44392fa48"}, {file = "pep8_naming-0.13.2-py3-none-any.whl", hash = "sha256:59e29e55c478db69cffbe14ab24b5bd2cd615c0413edf790d47d3fb7ba9a4e23"}, ] -pkgutil-resolve-name = [ - {file = "pkgutil_resolve_name-1.3.10-py3-none-any.whl", hash = "sha256:ca27cc078d25c5ad71a9de0a7a330146c4e014c2462d9af19c6b828280649c5e"}, - {file = "pkgutil_resolve_name-1.3.10.tar.gz", hash = "sha256:357d6c9e6a755653cfd78893817c0853af365dd51ec97f3d358a819373bbd174"}, -] pluggy = [ {file = "pluggy-1.0.0-py2.py3-none-any.whl", hash = "sha256:74134bbf457f031a36d68416e1509f34bd5ccc019f0bcc952c7b909d06b37bd3"}, {file = "pluggy-1.0.0.tar.gz", hash = "sha256:4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159"}, @@ -1149,8 +1104,8 @@ resolvelib = [ {file = "resolvelib-0.8.1.tar.gz", hash = "sha256:c6ea56732e9fb6fca1b2acc2ccc68a0b6b8c566d8f3e78e0443310ede61dbd37"}, ] setuptools = [ - {file = "setuptools-65.5.1-py3-none-any.whl", hash = "sha256:d0b9a8433464d5800cbe05094acf5c6d52a91bfac9b52bcfc4d41382be5d5d31"}, - {file = "setuptools-65.5.1.tar.gz", hash = "sha256:e197a19aa8ec9722928f2206f8de752def0e4c9fc6953527360d1c36d94ddb2f"}, + {file = "setuptools-65.6.3-py3-none-any.whl", hash = "sha256:57f6f22bde4e042978bcd50176fdb381d7c21a9efa4041202288d3737a0c6a54"}, + {file = "setuptools-65.6.3.tar.gz", hash = "sha256:a7620757bf984b58deaf32fc8a4577a9bbc0850cf92c20e1ce41c38c19e5fb75"}, ] six = [ {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, @@ -1192,7 +1147,3 @@ yapf = [ {file = "yapf-0.32.0-py2.py3-none-any.whl", hash = "sha256:8fea849025584e486fd06d6ba2bed717f396080fd3cc236ba10cb97c4c51cf32"}, {file = "yapf-0.32.0.tar.gz", hash = "sha256:a3f5085d37ef7e3e004c4ba9f9b3e40c54ff1901cd111f05145ae313a7c67d1b"}, ] -zipp = [ - {file = "zipp-3.10.0-py3-none-any.whl", hash = "sha256:4fcb6f278987a6605757302a6e40e896257570d11c51628968ccb2a47e80c6c1"}, - {file = "zipp-3.10.0.tar.gz", hash = "sha256:7a7262fd930bd3e36c50b9a64897aec3fafff3dfdeec9623ae22b40e93f99bb8"}, -] diff --git a/pyproject.toml b/pyproject.toml index a3dd6c8..6661d50 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,9 +10,9 @@ classifiers = [ "Natural Language :: English", "Operating System :: POSIX", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Topic :: Utilities", "Topic :: Software Development", ] @@ -34,7 +34,7 @@ version = "0.0.0" [tool.poetry.dependencies] PyYAML = "6.0" -ansible = {version = "6.6.0", optional = true} +ansible = {version = "7.0.0", optional = true} ansible-core = {version = "2.14.0", optional = true} anyconfig = "0.13.0" appdirs = "1.4.4" @@ -43,7 +43,7 @@ flake8 = "5.0.4" jsonschema = "4.17.1" nested-lookup = "0.2.25" pathspec = "0.10.2" -python = "^3.8.0" +python = "^3.9.0" python-json-logger = "2.0.4" toolz = "0.12.0" unidiff = "0.7.4"