diff --git a/.drone.jsonnet b/.drone.jsonnet index 774ce00..7113bd0 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -27,7 +27,7 @@ local PipelineLint = { steps: [ { name: 'yapf', - image: 'python:3.9', + image: 'python:3.10', environment: { PY_COLORS: 1, }, @@ -41,7 +41,7 @@ local PipelineLint = { }, { name: 'flake8', - image: 'python:3.9', + image: 'python:3.10', environment: { PY_COLORS: 1, }, @@ -68,7 +68,7 @@ local PipelineTest = { steps: [ { name: 'fetch', - image: 'python:3.9', + image: 'python:3.10', commands: [ 'git fetch -tq', ], @@ -76,9 +76,10 @@ local PipelineTest = { PythonVersion(pyversion='3.7'), PythonVersion(pyversion='3.8'), PythonVersion(pyversion='3.9'), + PythonVersion(pyversion='3.10'), { name: 'codecov', - image: 'python:3.9', + image: 'python:3.10', environment: { PY_COLORS: 1, CODECOV_TOKEN: { from_secret: 'codecov_token' }, @@ -91,6 +92,7 @@ local PipelineTest = { 'python37-pytest', 'python38-pytest', 'python39-pytest', + 'python310-pytest', ], }, ], @@ -112,7 +114,7 @@ local PipelineSecurity = { steps: [ { name: 'bandit', - image: 'python:3.9', + image: 'python:3.10', environment: { PY_COLORS: 1, }, @@ -142,7 +144,7 @@ local PipelineBuildPackage = { steps: [ { name: 'build', - image: 'python:3.9', + image: 'python:3.10', commands: [ 'git fetch -tq', 'pip install poetry poetry-dynamic-versioning -qq', @@ -188,7 +190,7 @@ local PipelineBuildPackage = { }, { name: 'publish-pypi', - image: 'python:3.9', + image: 'python:3.10', commands: [ 'git fetch -tq', 'pip install poetry poetry-dynamic-versioning -qq', @@ -214,7 +216,7 @@ local PipelineBuildPackage = { local PipelineBuildContainer(arch='amd64') = { local build = if arch == 'arm' then [{ name: 'build', - image: 'python:3.9-alpine', + image: 'python:3.10-alpine', commands: [ 'apk add -Uq --no-cache build-base openssl-dev libffi-dev musl-dev python3-dev git cargo', 'git fetch -tq', @@ -226,7 +228,7 @@ local PipelineBuildContainer(arch='amd64') = { }, }] else [{ name: 'build', - image: 'python:3.9', + image: 'python:3.10', commands: [ 'git fetch -tq', 'pip install poetry poetry-dynamic-versioning -qq', diff --git a/.drone.yml b/.drone.yml index 4a882ab..f5007e9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,7 @@ platform: steps: - name: yapf - image: python:3.9 + image: python:3.10 commands: - git fetch -tq - pip install poetry poetry-dynamic-versioning -qq @@ -19,7 +19,7 @@ steps: PY_COLORS: 1 - name: flake8 - image: python:3.9 + image: python:3.10 commands: - git fetch -tq - pip install poetry poetry-dynamic-versioning -qq @@ -44,7 +44,7 @@ platform: steps: - name: fetch - image: python:3.9 + image: python:3.10 commands: - git fetch -tq @@ -90,8 +90,22 @@ steps: depends_on: - fetch + - name: python310-pytest + image: python:3.10 + commands: + - pip install poetry poetry-dynamic-versioning -qq + - poetry config experimental.new-installer false + - poetry install -E ansible-base + - poetry run pytest + - poetry version + - poetry run ansible-later --help + environment: + PY_COLORS: 1 + depends_on: + - fetch + - name: codecov - image: python:3.9 + image: python:3.10 commands: - pip install codecov -qq - codecov --required -X gcov @@ -103,6 +117,7 @@ steps: - python37-pytest - python38-pytest - python39-pytest + - python310-pytest trigger: ref: @@ -123,7 +138,7 @@ platform: steps: - name: bandit - image: python:3.9 + image: python:3.10 commands: - git fetch -tq - pip install poetry poetry-dynamic-versioning -qq @@ -151,7 +166,7 @@ platform: steps: - name: build - image: python:3.9 + image: python:3.10 commands: - git fetch -tq - pip install poetry poetry-dynamic-versioning -qq @@ -190,7 +205,7 @@ steps: - refs/tags/** - name: publish-pypi - image: python:3.9 + image: python:3.10 commands: - git fetch -tq - pip install poetry poetry-dynamic-versioning -qq @@ -223,7 +238,7 @@ platform: steps: - name: build - image: python:3.9 + image: python:3.10 commands: - git fetch -tq - pip install poetry poetry-dynamic-versioning -qq @@ -301,7 +316,7 @@ platform: steps: - name: build - image: python:3.9 + image: python:3.10 commands: - git fetch -tq - pip install poetry poetry-dynamic-versioning -qq @@ -379,7 +394,7 @@ platform: steps: - name: build - image: python:3.9-alpine + image: python:3.10-alpine commands: - apk add -Uq --no-cache build-base openssl-dev libffi-dev musl-dev python3-dev git cargo - git fetch -tq @@ -632,6 +647,6 @@ depends_on: --- kind: signature -hmac: 585419f966ba3ef86bf7ff873830e1c931c9a388125f2a3a304689faebfa8698 +hmac: a2bced882da541e336f413df113c0317eb4d1ca6f3164624e11069cfad699586 ... diff --git a/pyproject.toml b/pyproject.toml index bc119b2..641ece1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,6 +13,7 @@ classifiers = [ "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", "Topic :: Utilities", "Topic :: Software Development", ]