mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-06-14 14:20:56 +02:00
feat: add python3.10 support (#223)
This commit is contained in:
parent
63cd227880
commit
0b625d3bb3
|
@ -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,
|
||||||
},
|
},
|
||||||
|
@ -68,7 +68,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',
|
||||||
],
|
],
|
||||||
|
@ -76,9 +76,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' },
|
||||||
|
@ -91,6 +92,7 @@ local PipelineTest = {
|
||||||
'python37-pytest',
|
'python37-pytest',
|
||||||
'python38-pytest',
|
'python38-pytest',
|
||||||
'python39-pytest',
|
'python39-pytest',
|
||||||
|
'python310-pytest',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -112,7 +114,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,
|
||||||
},
|
},
|
||||||
|
@ -142,7 +144,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',
|
||||||
|
@ -188,7 +190,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',
|
||||||
|
@ -214,7 +216,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',
|
||||||
|
@ -226,7 +228,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',
|
||||||
|
|
37
.drone.yml
37
.drone.yml
|
@ -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
|
||||||
|
@ -44,7 +44,7 @@ platform:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: fetch
|
- name: fetch
|
||||||
image: python:3.9
|
image: python:3.10
|
||||||
commands:
|
commands:
|
||||||
- git fetch -tq
|
- git fetch -tq
|
||||||
|
|
||||||
|
@ -90,8 +90,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 -E ansible-base
|
||||||
|
- poetry run pytest
|
||||||
|
- poetry version
|
||||||
|
- poetry run ansible-later --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
|
||||||
|
@ -103,6 +117,7 @@ steps:
|
||||||
- python37-pytest
|
- python37-pytest
|
||||||
- python38-pytest
|
- python38-pytest
|
||||||
- python39-pytest
|
- python39-pytest
|
||||||
|
- python310-pytest
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
ref:
|
ref:
|
||||||
|
@ -123,7 +138,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
|
||||||
|
@ -151,7 +166,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
|
||||||
|
@ -190,7 +205,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
|
||||||
|
@ -223,7 +238,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
|
||||||
|
@ -301,7 +316,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
|
||||||
|
@ -379,7 +394,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
|
||||||
|
@ -632,6 +647,6 @@ depends_on:
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 585419f966ba3ef86bf7ff873830e1c931c9a388125f2a3a304689faebfa8698
|
hmac: a2bced882da541e336f413df113c0317eb4d1ca6f3164624e11069cfad699586
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
|
@ -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 :: Utilities",
|
"Topic :: Utilities",
|
||||||
"Topic :: Software Development",
|
"Topic :: Software Development",
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user