From 24789579bddebad78ff4c3e00d4679a4ba48df11 Mon Sep 17 00:00:00 2001 From: Alexandre Muller Date: Thu, 26 Oct 2023 17:03:06 +0200 Subject: [PATCH] Add support for Python 3.10 --- .github/workflows/tests.yml | 1 + .travis.yml | 6 ++++-- CHANGES.rst | 1 + setup.py | 1 + tox.ini | 4 ++-- 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 142f372..fb832a7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -32,6 +32,7 @@ jobs: python-version: - 3.8 - 3.9 + - 3.10 django: - django32 steps: diff --git a/.travis.yml b/.travis.yml index 5c38110..8161dcc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,14 +19,16 @@ matrix: # https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django - {env: DJANGO=3.2, python: '3.8'} - {env: DJANGO=3.2, python: '3.9'} + - {env: DJANGO=3.2, python: '3.10'} - {env: DJANGO=3.2, python: 'nightly'} - {env: DJANGO=master, python: '3.8'} - {env: DJANGO=master, python: '3.9'} + - {env: DJANGO=master, python: '3.10'} - {env: DJANGO=master, python: 'nightly'} - - {python: '3.9', env: TOXENV=docstring} - - {python: '3.9', env: TOXENV=quality} + - {python: '3.10', env: TOXENV=docstring} + - {python: '3.10', env: TOXENV=quality} allow_failures: - python: 'nightly' diff --git a/CHANGES.rst b/CHANGES.rst index dcaff6e..705a453 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,7 @@ 1.4.2 (unreleased) ------------------ +- Add support for Python 3.10 - Drop support for Python 3.6 & 3.7 - Drop support for Django 3.1 - Drop support for Django 2.2 diff --git a/setup.py b/setup.py index a69bd44..4c7164c 100644 --- a/setup.py +++ b/setup.py @@ -32,6 +32,7 @@ def read(filename): "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", ], include_package_data=True, ) diff --git a/tox.ini b/tox.ini index 7218309..8e85999 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - py{38,39,nightly}-django{32,main} + py{38,39,310,nightly}-django{32,main} quality docstring @@ -18,7 +18,7 @@ passenv = DB_PASSWORD [testenv:quality] -basepython = python3.9 +basepython = python3.10 commands = /usr/bin/make quality deps = -rrequirements/quality.txt