diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6a2660e..62b1304 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ repos: - id: check-useless-excludes - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.6.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace diff --git a/.tool-versions b/.tool-versions index 186c12f..bc383eb 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ -python 3.10.15 -poetry 1.4.2 +python 3.13.0 +poetry 1.8.4 diff --git a/Dockerfile b/Dockerfile index 66ce42e..5a79cb7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.10-slim-bullseye as python-build-stage +FROM python:3.13-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.13 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 16fa5c9..99ba336 100644 --- a/poetry.lock +++ b/poetry.lock @@ -116,7 +116,6 @@ files = [ [package.dependencies] aiohappyeyeballs = ">=2.3.0" aiosignal = ">=1.1.2" -async-timeout = {version = ">=4.0,<5.0", markers = "python_version < \"3.11\""} attrs = ">=17.3.0" frozenlist = ">=1.1.1" multidict = ">=4.5,<7.0" @@ -140,18 +139,6 @@ files = [ [package.dependencies] frozenlist = ">=1.1.0" -[[package]] -name = "async-timeout" -version = "4.0.3" -description = "Timeout context manager for asyncio programs" -category = "main" -optional = false -python-versions = ">=3.7" -files = [ - {file = "async-timeout-4.0.3.tar.gz", hash = "sha256:4640d96be84d82d02ed59ea2b7105a0f7b33abe8703703cd0ab0bf87c427522f"}, - {file = "async_timeout-4.0.3-py3-none-any.whl", hash = "sha256:7405140ff1230c310e51dc27b3145b9092d659ce68ff733fb0cefe3ee42be028"}, -] - [[package]] name = "attrs" version = "24.2.0" @@ -210,8 +197,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)"] @@ -246,21 +231,6 @@ files = [ {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, ] -[[package]] -name = "exceptiongroup" -version = "1.2.2" -description = "Backport of PEP 654 (exception groups)" -category = "dev" -optional = false -python-versions = ">=3.7" -files = [ - {file = "exceptiongroup-1.2.2-py3-none-any.whl", hash = "sha256:3111b9d131c238bec2f8f516e123e14ba243563fb135d3fe885990585aa7795b"}, - {file = "exceptiongroup-1.2.2.tar.gz", hash = "sha256:47c2edf7c6738fafb49fd34290706d1a1a2f4d1c6df275526b62cbb4aa5393cc"}, -] - -[package.extras] -test = ["pytest (>=6)"] - [[package]] name = "flake8" version = "6.1.0" @@ -536,9 +506,6 @@ files = [ {file = "multidict-6.1.0.tar.gz", hash = "sha256:22ae2ebf9b0c69d206c003e2f6a914ea33f0a932d4aa16f236afc049d9958f4a"}, ] -[package.dependencies] -typing-extensions = {version = ">=4.1.0", markers = "python_version < \"3.11\""} - [[package]] name = "mypy-extensions" version = "1.0.0" @@ -754,11 +721,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"] @@ -781,30 +746,6 @@ aiohttp = ">3.5.2,<4.0.0" [package.extras] optional = ["aiodns (>1.0)"] -[[package]] -name = "tomli" -version = "2.0.2" -description = "A lil' TOML parser" -category = "main" -optional = false -python-versions = ">=3.8" -files = [ - {file = "tomli-2.0.2-py3-none-any.whl", hash = "sha256:2ebe24485c53d303f690b0ec092806a085f07af5a5aa1464f3931eec36caaa38"}, - {file = "tomli-2.0.2.tar.gz", hash = "sha256:d46d457a85337051c36524bc5349dd91b1877838e2979ac5ced3e710ed8a60ed"}, -] - -[[package]] -name = "typing-extensions" -version = "4.12.2" -description = "Backported and Experimental Type Hints for Python 3.8+" -category = "main" -optional = false -python-versions = ">=3.8" -files = [ - {file = "typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d"}, - {file = "typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8"}, -] - [[package]] name = "yarl" version = "1.17.1" @@ -904,5 +845,5 @@ propcache = ">=0.2.0" [metadata] lock-version = "2.0" -python-versions = "~3.10" -content-hash = "6c4a6ad6bf015e888739cb2548d8012d19186c231df1c977386cbf445d99377f" +python-versions = "~3.13.0" +content-hash = "93ba646946c9acdeb2293f62ba220c71fcc24b5b0b90576219ced085a741913b" diff --git a/pyproject.toml b/pyproject.toml index 6c4216a..a440a1a 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.13.0" slackclient = "^2.9.4" black = "^23.3.0"