Skip to content

Commit

Permalink
Upgrade packages and test on Python 3.12 and 3.13 (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianlini authored Dec 3, 2023
1 parent 70ce588 commit ecef80a
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 130 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ["3.10", "3.11"]
python: ["3.10", "3.11", "3.12", "3.13"]
toxenv: [py]
include:
- python: "3.10"
Expand All @@ -23,6 +23,7 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
- name: Install WireGuard
run: |
sudo apt-get update
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10.7-slim-bullseye
FROM python:3.10.13-slim-bookworm

ARG TARGETPLATFORM
RUN set -x && DEBIAN_FRONTEND=noninteractive \
Expand All @@ -16,7 +16,7 @@ RUN set -x && DEBIAN_FRONTEND=noninteractive \
&& rm -rf /var/lib/apt/lists/*

ENV HOME=/root
ENV POETRY_VERSION=1.3.2
ENV POETRY_VERSION=1.7.1
# Poetry use VIRTUAL_ENV to check whether we are already in a virtual env
ENV VIRTUAL_ENV=${HOME}/venv
ENV POETRY_HOME=${HOME}/.poetry
Expand All @@ -27,15 +27,15 @@ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
# install poetry
RUN --mount=type=cache,target=${HOME}/.cache --mount=type=cache,target=${HOME}/.cargo set -x \
&& python -m venv "${POETRY_HOME}" \
&& "${POETRY_HOME}/bin/pip" install -U pip==22.3.1 wheel==0.38.4 setuptools==66.1.1 \
&& "${POETRY_HOME}/bin/pip" install -U pip==23.3.1 wheel==0.42.0 setuptools==69.0.2 \
&& "${POETRY_HOME}/bin/pip" install "poetry==${POETRY_VERSION}"

# install python packages
COPY pyproject.toml poetry.lock /tmp/poetry/
RUN --mount=type=cache,target=${HOME}/.cache set -x \
&& cd /tmp/poetry/ \
&& python -m venv "${VIRTUAL_ENV}" \
&& pip install --upgrade pip==22.3.1 wheel==0.38.4 setuptools==66.1.1 \
&& pip install --upgrade pip==23.3.1 wheel==0.42.0 setuptools==69.0.2 \
&& poetry install --no-interaction --no-ansi --only main --no-root \
&& rm -rf /tmp/poetry/

Expand Down
Loading

0 comments on commit ecef80a

Please sign in to comment.