feat: add python3.10 support (#184)

This commit is contained in:
Robert Kaussow 2021-10-07 09:52:57 +02:00 committed by GitHub
parent c3073c096a
commit 74558f86e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 38 additions and 20 deletions

View File

@ -27,7 +27,7 @@ local PipelineLint = {
steps: [ steps: [
{ {
name: 'yapf', name: 'yapf',
image: 'python:3.9', image: 'python:3.10',
environment: { environment: {
PY_COLORS: 1, PY_COLORS: 1,
}, },
@ -41,7 +41,7 @@ local PipelineLint = {
}, },
{ {
name: 'flake8', name: 'flake8',
image: 'python:3.9', image: 'python:3.10',
environment: { environment: {
PY_COLORS: 1, PY_COLORS: 1,
}, },
@ -69,7 +69,7 @@ local PipelineTest = {
steps: [ steps: [
{ {
name: 'fetch', name: 'fetch',
image: 'python:3.9', image: 'python:3.10',
commands: [ commands: [
'git fetch -tq', 'git fetch -tq',
], ],
@ -77,9 +77,10 @@ local PipelineTest = {
PythonVersion(pyversion='3.7'), PythonVersion(pyversion='3.7'),
PythonVersion(pyversion='3.8'), PythonVersion(pyversion='3.8'),
PythonVersion(pyversion='3.9'), PythonVersion(pyversion='3.9'),
PythonVersion(pyversion='3.10'),
{ {
name: 'codecov', name: 'codecov',
image: 'python:3.9', image: 'python:3.10',
environment: { environment: {
PY_COLORS: 1, PY_COLORS: 1,
CODECOV_TOKEN: { from_secret: 'codecov_token' }, CODECOV_TOKEN: { from_secret: 'codecov_token' },
@ -92,6 +93,7 @@ local PipelineTest = {
'python37-pytest', 'python37-pytest',
'python38-pytest', 'python38-pytest',
'python39-pytest', 'python39-pytest',
'python310-pytest',
], ],
}, },
], ],
@ -113,7 +115,7 @@ local PipelineSecurity = {
steps: [ steps: [
{ {
name: 'bandit', name: 'bandit',
image: 'python:3.9', image: 'python:3.10',
environment: { environment: {
PY_COLORS: 1, PY_COLORS: 1,
}, },
@ -144,7 +146,7 @@ local PipelineBuildPackage = {
steps: [ steps: [
{ {
name: 'build', name: 'build',
image: 'python:3.9', image: 'python:3.10',
commands: [ commands: [
'git fetch -tq', 'git fetch -tq',
'pip install poetry poetry-dynamic-versioning -qq', 'pip install poetry poetry-dynamic-versioning -qq',
@ -190,7 +192,7 @@ local PipelineBuildPackage = {
}, },
{ {
name: 'publish-pypi', name: 'publish-pypi',
image: 'python:3.9', image: 'python:3.10',
commands: [ commands: [
'git fetch -tq', 'git fetch -tq',
'pip install poetry poetry-dynamic-versioning -qq', 'pip install poetry poetry-dynamic-versioning -qq',
@ -216,7 +218,7 @@ local PipelineBuildPackage = {
local PipelineBuildContainer(arch='amd64') = { local PipelineBuildContainer(arch='amd64') = {
local build = if arch == 'arm' then [{ local build = if arch == 'arm' then [{
name: 'build', name: 'build',
image: 'python:3.9-alpine', image: 'python:3.10-alpine',
commands: [ commands: [
'apk add -Uq --no-cache build-base openssl-dev libffi-dev musl-dev python3-dev git cargo', 'apk add -Uq --no-cache build-base openssl-dev libffi-dev musl-dev python3-dev git cargo',
'git fetch -tq', 'git fetch -tq',
@ -228,7 +230,7 @@ local PipelineBuildContainer(arch='amd64') = {
}, },
}] else [{ }] else [{
name: 'build', name: 'build',
image: 'python:3.9', image: 'python:3.10',
commands: [ commands: [
'git fetch -tq', 'git fetch -tq',
'pip install poetry poetry-dynamic-versioning -qq', 'pip install poetry poetry-dynamic-versioning -qq',

View File

@ -8,7 +8,7 @@ platform:
steps: steps:
- name: yapf - name: yapf
image: python:3.9 image: python:3.10
commands: commands:
- git fetch -tq - git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq - pip install poetry poetry-dynamic-versioning -qq
@ -19,7 +19,7 @@ steps:
PY_COLORS: 1 PY_COLORS: 1
- name: flake8 - name: flake8
image: python:3.9 image: python:3.10
commands: commands:
- git fetch -tq - git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq - pip install poetry poetry-dynamic-versioning -qq
@ -45,7 +45,7 @@ platform:
steps: steps:
- name: fetch - name: fetch
image: python:3.9 image: python:3.10
commands: commands:
- git fetch -tq - git fetch -tq
@ -91,8 +91,22 @@ steps:
depends_on: depends_on:
- fetch - 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 run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail
- poetry version
- poetry run docker-tidy --help
environment:
PY_COLORS: 1
depends_on:
- fetch
- name: codecov - name: codecov
image: python:3.9 image: python:3.10
commands: commands:
- pip install codecov -qq - pip install codecov -qq
- codecov --required -X gcov - codecov --required -X gcov
@ -104,6 +118,7 @@ steps:
- python37-pytest - python37-pytest
- python38-pytest - python38-pytest
- python39-pytest - python39-pytest
- python310-pytest
trigger: trigger:
ref: ref:
@ -124,7 +139,7 @@ platform:
steps: steps:
- name: bandit - name: bandit
image: python:3.9 image: python:3.10
commands: commands:
- git fetch -tq - git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq - pip install poetry poetry-dynamic-versioning -qq
@ -153,7 +168,7 @@ platform:
steps: steps:
- name: build - name: build
image: python:3.9 image: python:3.10
commands: commands:
- git fetch -tq - git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq - pip install poetry poetry-dynamic-versioning -qq
@ -192,7 +207,7 @@ steps:
- refs/tags/** - refs/tags/**
- name: publish-pypi - name: publish-pypi
image: python:3.9 image: python:3.10
commands: commands:
- git fetch -tq - git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq - pip install poetry poetry-dynamic-versioning -qq
@ -225,7 +240,7 @@ platform:
steps: steps:
- name: build - name: build
image: python:3.9 image: python:3.10
commands: commands:
- git fetch -tq - git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq - pip install poetry poetry-dynamic-versioning -qq
@ -303,7 +318,7 @@ platform:
steps: steps:
- name: build - name: build
image: python:3.9 image: python:3.10
commands: commands:
- git fetch -tq - git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq - pip install poetry poetry-dynamic-versioning -qq
@ -381,7 +396,7 @@ platform:
steps: steps:
- name: build - name: build
image: python:3.9-alpine image: python:3.10-alpine
commands: commands:
- apk add -Uq --no-cache build-base openssl-dev libffi-dev musl-dev python3-dev git cargo - apk add -Uq --no-cache build-base openssl-dev libffi-dev musl-dev python3-dev git cargo
- git fetch -tq - git fetch -tq
@ -634,6 +649,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: 1de438386a641872d0ff4a5d0137ae4be757c0a794a56f043baa7fd8c500f5ad hmac: d173971d093a84521652b1be1c92ed997e3cbe0729d69db4c5a8a97e16e73df0
... ...

View File

@ -13,6 +13,7 @@ classifiers = [
"Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: System :: Systems Administration", "Topic :: System :: Systems Administration",
"Topic :: Utilities", "Topic :: Utilities",
"Topic :: Software Development", "Topic :: Software Development",