From 43366e3c7743e3168728e318529acd6f1f8649fd Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Thu, 28 Nov 2024 21:56:59 +0000 Subject: [PATCH] fix(imp): add compatibility module for imp deprecation --- Dockerfile | 4 +++- imp.py | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 imp.py diff --git a/Dockerfile b/Dockerfile index 8f7e896..1487a05 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,11 @@ LABEL maintainer="Luke Tainton " LABEL org.opencontainers.image.source="https://github.com/luketainton/webexmemebot" USER root -ENV PYTHONPATH="/run:/usr/local/lib/python3.11/lib-dynload:/usr/local/lib/python3.11/site-packages:/usr/local/lib/python3.11" +ENV PYTHONPATH="/run:/usr/local/lib/python3.13/lib-dynload:/usr/local/lib/python3.13/site-packages:/usr/local/lib/python3.13" WORKDIR /run +COPY imp.py /run/imp.py + RUN mkdir -p /.local && \ chmod -R 777 /.local && \ pip install -U pip poetry diff --git a/imp.py b/imp.py new file mode 100644 index 0000000..864a550 --- /dev/null +++ b/imp.py @@ -0,0 +1,4 @@ +"""Compatibility module that imports all symbols from the importlib module. +and exposes them as imp.""" + +from importlib import *