From a5fb40719b8394130c17fa5e5a31f0dfb3ee690c Mon Sep 17 00:00:00 2001 From: Ben Lopatin Date: Tue, 25 Jul 2023 10:38:00 -0400 Subject: [PATCH] Added Django 4.2.0 and Python 3.11 compatibility (#484) --- .github/workflows/python-package.yml | 2 +- pyproject.toml | 1 + tox.ini | 7 +++++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 8e5fe1a5..1989bee4 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -16,7 +16,7 @@ jobs: 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 diff --git a/pyproject.toml b/pyproject.toml index 54d52ef5..541f237d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,6 +26,7 @@ classifiers = [ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Topic :: Software Development :: Libraries :: Python Modules", ] requires-python = ">=3.8" diff --git a/tox.ini b/tox.ini index 41fa7f19..4e60d680 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,8 @@ [tox] envlist = py{38,39,310}-django{32} - py{38,39,310}-django{40,41} + py{38,39,310}-django{40,41,42} + py{311}-django{41,42} isolated_build = True [gh-actions] @@ -9,6 +10,7 @@ python = 3.8: py38 3.9: py39 3.10: py310 + 3.11: py311 [testenv] allowlist_externals = ./run.sh @@ -16,6 +18,7 @@ deps = django32: Django>=3.2,<3.3 django40: Django>=4.0,<4.1 django41: Django>=4.1,<4.2 + django42: Django>=4.2,<4.3 djangomain: https://github.com/django/django/archive/main.tar.gz -r{toxinidir}/requirements.txt commands = @@ -32,7 +35,7 @@ commands = [testenv:typecheck] deps = - Django>=3.2,<4.2 + Django>=3.2,<4.3 -r{toxinidir}/requirements.txt commands = ./run.sh typecheck