From 82ec4f31387defea6eaa35a6054a90b839003af6 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 24 Nov 2022 21:35:40 +0100 Subject: [PATCH] ci: use python311 base image on ci (#437) --- .drone.jsonnet | 17 +++++++++-------- .drone.yml | 21 +++++++++++---------- pyproject.toml | 1 + 3 files changed, 21 insertions(+), 18 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index 11c6408..83994e1 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -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, }, @@ -69,7 +69,7 @@ local PipelineTest = { steps: [ { name: 'fetch', - image: 'python:3.10', + image: 'python:3.11', commands: [ 'git fetch -tq', ], @@ -81,7 +81,7 @@ local PipelineTest = { PythonVersion(pyversion='3.11'), { name: 'codecov', - image: 'python:3.10', + image: 'python:3.11', environment: { PY_COLORS: 1, CODECOV_TOKEN: { from_secret: 'codecov_token' }, @@ -95,6 +95,7 @@ local PipelineTest = { 'python38-pytest', 'python39-pytest', 'python310-pytest', + 'python311-pytest', ], }, ], @@ -116,7 +117,7 @@ local PipelineSecurity = { steps: [ { name: 'bandit', - image: 'python:3.10', + image: 'python:3.11', environment: { PY_COLORS: 1, }, @@ -147,7 +148,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', @@ -193,7 +194,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', @@ -231,7 +232,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 e1ed645..5a22e71 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 @@ -45,7 +45,7 @@ platform: steps: - name: fetch - image: python:3.10 + image: python:3.11 commands: - git fetch -tq @@ -120,7 +120,7 @@ steps: - fetch - name: codecov - image: python:3.10 + image: python:3.11 commands: - pip install codecov -qq - codecov --required -X gcov @@ -133,6 +133,7 @@ steps: - python38-pytest - python39-pytest - python310-pytest + - python311-pytest trigger: ref: @@ -153,7 +154,7 @@ platform: steps: - name: bandit - image: python:3.10 + image: python:3.11 commands: - git fetch -tq - pip install poetry poetry-dynamic-versioning -qq @@ -182,7 +183,7 @@ platform: steps: - name: build - image: python:3.10 + image: python:3.11 commands: - git fetch -tq - pip install poetry poetry-dynamic-versioning -qq @@ -221,7 +222,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 @@ -254,7 +255,7 @@ platform: steps: - name: build - image: python:3.10 + image: python:3.11 commands: - git fetch -tq - pip install poetry poetry-dynamic-versioning -qq @@ -332,7 +333,7 @@ platform: steps: - name: build - image: python:3.10 + image: python:3.11 commands: - git fetch -tq - pip install poetry poetry-dynamic-versioning -qq @@ -662,6 +663,6 @@ depends_on: --- kind: signature -hmac: 12fd215663fcbb8e4670a5638873b71f4d43989679bedebcfd49b48b8cd09b51 +hmac: 5979278d5a3497ce460ec92ddb55d7466418e999bb0ba69207376242667d0a5d ... diff --git a/pyproject.toml b/pyproject.toml index ae2b010..7f4d47f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,6 +14,7 @@ classifiers = [ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Topic :: System :: Systems Administration", "Topic :: Utilities", "Topic :: Software Development",