mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-21 20:30:42 +00:00
feat: add support for python 3.12 (#695)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
parent
0ebb855bc5
commit
a35f5030ec
@ -7,7 +7,7 @@ when:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
build:
|
build:
|
||||||
image: docker.io/library/python:3.11
|
image: docker.io/library/python:3.12
|
||||||
commands:
|
commands:
|
||||||
- git fetch -tq
|
- git fetch -tq
|
||||||
- pip install poetry poetry-dynamic-versioning -qq
|
- pip install poetry poetry-dynamic-versioning -qq
|
||||||
|
@ -7,7 +7,7 @@ when:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
build:
|
build:
|
||||||
image: docker.io/library/python:3.11
|
image: docker.io/library/python:3.12
|
||||||
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 @@ steps:
|
|||||||
- event: [tag]
|
- event: [tag]
|
||||||
|
|
||||||
publish-pypi:
|
publish-pypi:
|
||||||
image: docker.io/library/python:3.11
|
image: docker.io/library/python:3.12
|
||||||
secrets:
|
secrets:
|
||||||
- source: pypi_password
|
- source: pypi_password
|
||||||
target: POETRY_HTTP_BASIC_PYPI_PASSWORD
|
target: POETRY_HTTP_BASIC_PYPI_PASSWORD
|
||||||
|
@ -7,7 +7,7 @@ when:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
check-format:
|
check-format:
|
||||||
image: docker.io/library/python:3.11
|
image: docker.io/library/python:3.12
|
||||||
commands:
|
commands:
|
||||||
- git fetch -tq
|
- git fetch -tq
|
||||||
- pip install poetry poetry-dynamic-versioning -qq
|
- pip install poetry poetry-dynamic-versioning -qq
|
||||||
@ -17,7 +17,7 @@ steps:
|
|||||||
PY_COLORS: "1"
|
PY_COLORS: "1"
|
||||||
|
|
||||||
check-coding:
|
check-coding:
|
||||||
image: docker.io/library/python:3.11
|
image: docker.io/library/python:3.12
|
||||||
commands:
|
commands:
|
||||||
- git fetch -tq
|
- git fetch -tq
|
||||||
- pip install poetry poetry-dynamic-versioning -qq
|
- pip install poetry poetry-dynamic-versioning -qq
|
||||||
|
@ -10,10 +10,11 @@ matrix:
|
|||||||
- docker.io/library/python:3.9
|
- docker.io/library/python:3.9
|
||||||
- docker.io/library/python:3.10
|
- docker.io/library/python:3.10
|
||||||
- docker.io/library/python:3.11
|
- docker.io/library/python:3.11
|
||||||
|
- docker.io/library/python:3.12
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
fetch:
|
fetch:
|
||||||
image: docker.io/library/python:3.11
|
image: docker.io/library/python:3.12
|
||||||
commands:
|
commands:
|
||||||
- git fetch -tq
|
- git fetch -tq
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM python:3.11-alpine@sha256:3e73c0b6c1f0205225359acac5c8ab1852e7281248d72afda3e1bb8c6f47deab
|
FROM python:3.12-alpine@sha256:ae35274f417fc81ba6ee1fc84206e8517f28117566ee6a04a64f004c1409bdac
|
||||||
|
|
||||||
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
|
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
|
||||||
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
|
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
|
||||||
|
@ -21,8 +21,6 @@
|
|||||||
# THE SOFTWARE.
|
# THE SOFTWARE.
|
||||||
|
|
||||||
import codecs
|
import codecs
|
||||||
import glob
|
|
||||||
import imp
|
|
||||||
import os
|
import os
|
||||||
from contextlib import suppress
|
from contextlib import suppress
|
||||||
|
|
||||||
@ -129,24 +127,6 @@ BLOCK_NAME_TO_ACTION_TYPE_MAP = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def load_plugins(directory):
|
|
||||||
result = []
|
|
||||||
fh = None
|
|
||||||
|
|
||||||
for pluginfile in glob.glob(os.path.join(directory, "[A-Za-z]*.py")):
|
|
||||||
|
|
||||||
pluginname = os.path.basename(pluginfile.replace(".py", ""))
|
|
||||||
try:
|
|
||||||
fh, filename, desc = imp.find_module(pluginname, [directory])
|
|
||||||
mod = imp.load_module(pluginname, fh, filename, desc)
|
|
||||||
obj = getattr(mod, pluginname)()
|
|
||||||
result.append(obj)
|
|
||||||
finally:
|
|
||||||
if fh:
|
|
||||||
fh.close()
|
|
||||||
return result
|
|
||||||
|
|
||||||
|
|
||||||
def tokenize(line):
|
def tokenize(line):
|
||||||
tokens = line.lstrip().split(" ")
|
tokens = line.lstrip().split(" ")
|
||||||
if tokens[0] == "-":
|
if tokens[0] == "-":
|
||||||
|
@ -13,6 +13,7 @@ classifiers = [
|
|||||||
"Programming Language :: Python :: 3.9",
|
"Programming Language :: Python :: 3.9",
|
||||||
"Programming Language :: Python :: 3.10",
|
"Programming Language :: Python :: 3.10",
|
||||||
"Programming Language :: Python :: 3.11",
|
"Programming Language :: Python :: 3.11",
|
||||||
|
"Programming Language :: Python :: 3.12",
|
||||||
"Topic :: Utilities",
|
"Topic :: Utilities",
|
||||||
"Topic :: Software Development",
|
"Topic :: Software Development",
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user