Skip to content

Commit

Permalink
Python 3.11 Support (AngellusMortis#493)
Browse files Browse the repository at this point in the history
* Update .devcontainer Dockerfile to Python 3.11

* Update CI pipeline to test using Python 3.11

* Add Python 3.11 as supported version on PyPi

* Update versions listed in CONTRIBUTING.rst
  • Loading branch information
korverdev authored Nov 27, 2022
1 parent 96fdd7f commit 477e5d7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10-slim-buster as base
FROM python:3.11-slim-buster as base

LABEL org.opencontainers.image.source https://github.com/AngellusMortis/django_microsoft_auth

Expand All @@ -20,7 +20,7 @@ RUN --mount=type=cache,mode=0755,target=/root/.cache/pip pip install -U pip \
FROM base as dev

COPY --from=builder /usr/local/bin/ /usr/local/bin/
COPY --from=builder /usr/local/lib/python3.10/ /usr/local/lib/python3.10/
COPY --from=builder /usr/local/lib/python3.11/ /usr/local/lib/python3.11/
RUN --mount=type=cache,mode=0755,id=apt,target=/var/lib/apt/lists apt-get update \
&& apt-get install -y git vim curl \
&& echo 'export PS1="\[$(tput setaf 6)\]\w \[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]"' >> /root/.bashrc
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

env:
DEFAULT_DJANGO: "4.1"
DEFAULT_PYTHON: "3.10"
DEFAULT_PYTHON: "3.11"

jobs:
ci:
Expand All @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ["3.8", "3.9", "3.10"]
python: ["3.8", "3.9", "3.10", "3.11"]
django: ["3.2", "4.0", "4.1"]

steps:
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,6 @@ Before you submit a pull request, check that it meets these guidelines:
2. If the pull request adds functionality, the docs should be updated. Put
your new functionality into a function with a docstring, and add the
feature to the list in README.rst.
3. The pull request should work for Python 3.6, 3.7, 3.8, and 3.9. Check
3. The pull request should work for Python 3.8, 3.9, 3.10, and 3.11. Check
https://travis-ci.org/AngellusMortis/django_microsoft_auth/pull_requests
and make sure that the tests pass for all supported Python versions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers=[
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
Expand Down

0 comments on commit 477e5d7

Please sign in to comment.