Skip to content

Commit

Permalink
Support Python 3.11 (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnthagen authored Nov 8, 2022
1 parent 61bdee1 commit 0d752df
Show file tree
Hide file tree
Showing 6 changed files with 121 additions and 97 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

env:
POETRY_VERSION: "1.2.2"
PYTHON_VERSION: "3.9"
PYTHON_VERSION: "3.10"

jobs:
deploy:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ on: [push, pull_request]

env:
POETRY_VERSION: "1.2.2"
PYTHON_VERSION: "3.9"
PYTHON_VERSION: "3.10"

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.8", "3.9", "3.10" ]
python-version: [ "3.8", "3.9", "3.10", "3.11" ]
steps:
- uses: actions/checkout@v3
- name: Install poetry
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# subtle errors when using MUSL.
# - These Python packages usually only provide binary wheels for GLIBC, so the packages
# will need to be recompiled fully within the Docker images, increasing build times.
FROM python:3.9-slim-bullseye AS python_builder
FROM python:3.10-slim-bullseye AS python_builder

# Pin Poetry to a specific version to make Docker builds reproducible.
ENV POETRY_VERSION 1.2.2
Expand Down Expand Up @@ -60,7 +60,7 @@ RUN poetry build && \

## Final Image
# The image used in the final image MUST match exactly to the python_builder image.
FROM python:3.9-slim-bullseye
FROM python:3.10-slim-bullseye

ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONBUFFERED 1
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
nox.options.sessions = ["fmt_check", "lint", "type_check", "test", "docs"]


@session(python=["3.8", "3.9", "3.10"])
@session(python=["3.8", "3.9", "3.10", "3.11"])
def test(s: Session) -> None:
s.install(".", "pytest", "pytest-cov")
s.run(
Expand Down
Loading

0 comments on commit 0d752df

Please sign in to comment.