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:
Robert Kaussow 2023-10-16 14:15:26 +02:00 committed by GitHub
parent 0ebb855bc5
commit a35f5030ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 27 deletions

View File

@ -7,7 +7,7 @@ when:
steps:
build:
image: docker.io/library/python:3.11
image: docker.io/library/python:3.12
commands:
- git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq

View File

@ -7,7 +7,7 @@ when:
steps:
build:
image: docker.io/library/python:3.11
image: docker.io/library/python:3.12
commands:
- git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq
@ -45,7 +45,7 @@ steps:
- event: [tag]
publish-pypi:
image: docker.io/library/python:3.11
image: docker.io/library/python:3.12
secrets:
- source: pypi_password
target: POETRY_HTTP_BASIC_PYPI_PASSWORD

View File

@ -7,7 +7,7 @@ when:
steps:
check-format:
image: docker.io/library/python:3.11
image: docker.io/library/python:3.12
commands:
- git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq
@ -17,7 +17,7 @@ steps:
PY_COLORS: "1"
check-coding:
image: docker.io/library/python:3.11
image: docker.io/library/python:3.12
commands:
- git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq

View File

@ -10,10 +10,11 @@ matrix:
- docker.io/library/python:3.9
- docker.io/library/python:3.10
- docker.io/library/python:3.11
- docker.io/library/python:3.12
steps:
fetch:
image: docker.io/library/python:3.11
image: docker.io/library/python:3.12
commands:
- git fetch -tq

View File

@ -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 org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"

View File

@ -21,8 +21,6 @@
# THE SOFTWARE.
import codecs
import glob
import imp
import os
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):
tokens = line.lstrip().split(" ")
if tokens[0] == "-":

View File

@ -13,6 +13,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Utilities",
"Topic :: Software Development",
]