From 169f1abc5cb7415b241d9664dee6878a924fdcab Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Fri, 19 Jan 2024 12:24:22 -0700 Subject: [PATCH] deps: require Python 3.10+ Signed-off-by: Sumner Evans --- .github/workflows/deploy.yaml | 2 +- Dockerfile | 6 +++--- setup.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 3f84ee4..40b9c77 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -10,7 +10,7 @@ on: - created env: - PYTHON_VERSION: 3.9 + PYTHON_VERSION: 3.11 BEEPER_BRIDGE_TYPE: linkedin CI_REGISTRY_IMAGE: "${{ secrets.CI_REGISTRY }}/bridge/linkedin" GHCR_REGISTRY: ghcr.io diff --git a/Dockerfile b/Dockerfile index 075429f..915c1cc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM docker.io/alpine:3.17 +FROM docker.io/alpine:3.19 ARG TARGETARCH=amd64 @@ -30,11 +30,11 @@ COPY optional-requirements.txt /opt/linkedin-matrix/optional-requirements.txt WORKDIR /opt/linkedin-matrix RUN apk add --virtual .build-deps python3-dev libffi-dev build-base \ - && pip3 install --no-cache-dir -r requirements.txt -r optional-requirements.txt \ + && pip3 install --break-system-packages --no-cache-dir -r requirements.txt -r optional-requirements.txt \ && apk del .build-deps COPY . /opt/linkedin-matrix -RUN apk add --no-cache git && pip3 install --no-cache-dir .[e2be] && apk del git \ +RUN apk add --no-cache git && pip3 install --break-system-packages --no-cache-dir .[e2be] && apk del git \ # This doesn't make the image smaller, but it's needed so that the `version` command works properly && cp linkedin_matrix/example-config.yaml . && rm -rf linkedin_matrix .git build diff --git a/setup.py b/setup.py index c3ab146..6350540 100644 --- a/setup.py +++ b/setup.py @@ -51,7 +51,7 @@ install_requires=install_requires, extras_require=extras_require, - python_requires="~=3.9", + python_requires=">=3.10", keywords=["matrix", "LinkedIn"], @@ -62,8 +62,8 @@ "Framework :: AsyncIO", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", ], package_data={ "linkedin_matrix": ["example-config.yaml"],