Skip to content

Commit

Permalink
Support Python 3.11 on Django 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
stevelacey committed Jan 4, 2023
1 parent 0d0c34d commit 5768ece
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 6 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,18 @@ concurrency:

jobs:
test:
name: test
runs-on: ubuntu-latest

strategy:
matrix:
python: [3.8, 3.9, "3.10"]
python: [3.8, 3.9, "3.10", 3.11]
django: [3.2, "4.0", 4.1]
exclude:
- python: 3.11
django: 3.2
- python: 3.11
django: 4.0

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand All @@ -41,6 +47,7 @@ jobs:

lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.10.9
3.11.1
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10.9-buster
FROM python:3.11.1-buster

RUN apt-get update -y && \
apt-get install -y git && \
Expand All @@ -13,4 +13,4 @@ COPY Pipfile.lock Pipfile.lock
COPY setup.py setup.py
COPY worf/ worf/

RUN pipenv install --dev --deploy --python 3.10.9
RUN pipenv install --dev --deploy --python 3.11.1
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ INSTALLED_APPS = [
Requirements
------------

- Python (3.8, 3.9, 3.10)
- Python (3.8, 3.9, 3.10, 3.11)
- Django (3.2, 4.0, 4.1)


Expand Down
5 changes: 5 additions & 0 deletions bin/python
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

set -eou pipefail

$(dirname "$0")/pipenv run python "$@"
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def get_version(rel_path):
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
],
Expand Down

0 comments on commit 5768ece

Please sign in to comment.