From e4c2fe2e09282b42d3a43c90ec5a7eba3b73a1c8 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 7 Oct 2021 09:52:52 +0200 Subject: [PATCH] feat: add python3.10 support (#83) --- .drone.jsonnet | 17 +++++++++-------- .drone.yml | 33 +++++++++++++++++++++++---------- pyproject.toml | 1 + 3 files changed, 33 insertions(+), 18 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index a58423e..1a098b0 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -26,7 +26,7 @@ local PipelineLint = { steps: [ { name: 'yapf', - image: 'python:3.9', + image: 'python:3.10', environment: { PY_COLORS: 1, }, @@ -40,7 +40,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,6 +76,7 @@ local PipelineTest = { PythonVersion(pyversion='3.7'), PythonVersion(pyversion='3.8'), PythonVersion(pyversion='3.9'), + PythonVersion(pyversion='3.10'), ], depends_on: [ 'lint', @@ -95,7 +96,7 @@ local PipelineSecurity = { steps: [ { name: 'bandit', - image: 'python:3.9', + image: 'python:3.10', environment: { PY_COLORS: 1, }, @@ -126,7 +127,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', @@ -172,7 +173,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', @@ -198,7 +199,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', @@ -210,7 +211,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 092ba3c..61c61a3 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 @@ -45,7 +45,7 @@ platform: steps: - name: fetch - image: python:3.9 + image: python:3.10 commands: - git fetch -tq @@ -88,6 +88,19 @@ 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 + - poetry version + - poetry run docker-autotag --help + environment: + PY_COLORS: 1 + depends_on: + - fetch + trigger: ref: - refs/heads/main @@ -107,7 +120,7 @@ platform: steps: - name: bandit - image: python:3.9 + image: python:3.10 commands: - git fetch -tq - pip install poetry poetry-dynamic-versioning -qq @@ -136,7 +149,7 @@ platform: steps: - name: build - image: python:3.9 + image: python:3.10 commands: - git fetch -tq - pip install poetry poetry-dynamic-versioning -qq @@ -175,7 +188,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 @@ -208,7 +221,7 @@ platform: steps: - name: build - image: python:3.9 + image: python:3.10 commands: - git fetch -tq - pip install poetry poetry-dynamic-versioning -qq @@ -286,7 +299,7 @@ platform: steps: - name: build - image: python:3.9 + image: python:3.10 commands: - git fetch -tq - pip install poetry poetry-dynamic-versioning -qq @@ -364,7 +377,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 @@ -532,6 +545,6 @@ depends_on: --- kind: signature -hmac: 96929fe2dbc8b669cc584b68b7ccf0663cdfb7658088a0b3b34d49aad4ad5888 +hmac: f7c56c0b77bc2b2c3548e91260baa15df3101e917537e5fac2a24e6feff12835 ... diff --git a/pyproject.toml b/pyproject.toml index 70aae9d..d78dcb9 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", ]