diff --git a/.tool-versions b/.tool-versions index 4aed807..7c32935 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ -python 3.10.13 -poetry 1.4.2 +python 3.11.5 +poetry 1.6.1 diff --git a/Dockerfile b/Dockerfile index 66ce42e..7f53a40 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.10-slim-bullseye as python-build-stage +FROM python:3.11-slim-bullseye as python-build-stage WORKDIR /src RUN apt-get update && apt-get upgrade -y \ @@ -11,7 +11,7 @@ RUN pip install --isolated --no-cache-dir --no-input poetry \ && poetry config virtualenvs.create false \ && poetry install --no-interaction --without=dev -FROM public.ecr.aws/lambda/python:3.9 as python-run-stage +FROM public.ecr.aws/lambda/python:3.11 as python-run-stage COPY --from=python-build-stage /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages ENV PYTHONPATH=/usr/local/lib/python3.10/site-packages diff --git a/poetry.lock b/poetry.lock index 4c546c1..696aa0e 100644 --- a/poetry.lock +++ b/poetry.lock @@ -193,8 +193,6 @@ mypy-extensions = ">=0.4.3" packaging = ">=22.0" pathspec = ">=0.9.0" platformdirs = ">=2" -tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} -typing-extensions = {version = ">=4.0.1", markers = "python_version < \"3.11\""} [package.extras] colorama = ["colorama (>=0.4.3)"] @@ -314,21 +312,6 @@ files = [ {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, ] -[[package]] -name = "exceptiongroup" -version = "1.1.3" -description = "Backport of PEP 654 (exception groups)" -category = "dev" -optional = false -python-versions = ">=3.7" -files = [ - {file = "exceptiongroup-1.1.3-py3-none-any.whl", hash = "sha256:343280667a4585d195ca1cf9cef84a4e178c4b6cf2274caef9859782b567d5e3"}, - {file = "exceptiongroup-1.1.3.tar.gz", hash = "sha256:097acd85d473d75af5bb98e41b61ff7fe35efe6675e4f9370ec6ec5126d160e9"}, -] - -[package.extras] -test = ["pytest (>=6)"] - [[package]] name = "flake8" version = "6.1.0" @@ -661,11 +644,9 @@ files = [ [package.dependencies] colorama = {version = "*", markers = "sys_platform == \"win32\""} -exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""} iniconfig = "*" packaging = "*" pluggy = ">=0.12,<2.0" -tomli = {version = ">=1.0.0", markers = "python_version < \"3.11\""} [package.extras] testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] @@ -688,30 +669,6 @@ aiohttp = ">3.5.2,<4.0.0" [package.extras] optional = ["aiodns (>1.0)"] -[[package]] -name = "tomli" -version = "2.0.1" -description = "A lil' TOML parser" -category = "main" -optional = false -python-versions = ">=3.7" -files = [ - {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"}, - {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"}, -] - -[[package]] -name = "typing-extensions" -version = "4.8.0" -description = "Backported and Experimental Type Hints for Python 3.8+" -category = "main" -optional = false -python-versions = ">=3.8" -files = [ - {file = "typing_extensions-4.8.0-py3-none-any.whl", hash = "sha256:8f92fc8806f9a6b641eaa5318da32b44d401efaac0f6678c9bc448ba3605faa0"}, - {file = "typing_extensions-4.8.0.tar.gz", hash = "sha256:df8e4339e9cb77357558cbdbceca33c303714cf861d1eef15e1070055ae8b7ef"}, -] - [[package]] name = "yarl" version = "1.9.2" @@ -802,5 +759,5 @@ multidict = ">=4.0" [metadata] lock-version = "2.0" -python-versions = "~3.10" -content-hash = "6c4a6ad6bf015e888739cb2548d8012d19186c231df1c977386cbf445d99377f" +python-versions = "~3.11.0" +content-hash = "e34c936416ad79e76166ebaac8260a19e7f7b491e100b306e46dd78db11d27ec" diff --git a/pyproject.toml b/pyproject.toml index 6c4216a..a19a7c8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ version = "0.1.0" readme = "README.md" [tool.poetry.dependencies] -python = "~3.10" +python = "~3.11.0" slackclient = "^2.9.4" black = "^23.3.0"