From 8e21c610a190c410b1dfc97ee89f38c6fad3da0d Mon Sep 17 00:00:00 2001 From: Pascal F Date: Tue, 17 Oct 2023 08:40:00 +0200 Subject: [PATCH] Support Python 3.12 (and 3.11) (#839) --- .github/workflows/test.yml | 1 + docker-compose.yml | 4 ++-- setup.py | 1 + tox.ini | 8 ++++---- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 05131423..3d598095 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,6 +12,7 @@ jobs: - '3.9' - '3.10' - '3.11' + - '3.12' env: PYTHON_VERSION: ${{ matrix.python-version }} PYTHONUNBUFFERED: 1 diff --git a/docker-compose.yml b/docker-compose.yml index 2d4acc67..452793e8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,8 +19,8 @@ services: context: . dockerfile: ./files/tests/Dockerfile args: - - PYTHON_VERSIONS=3.8.17 3.9.17 3.10.12 3.11.4 + - PYTHON_VERSIONS=3.8.17 3.9.17 3.10.12 3.11.4 3.12.0 environment: - - PYTHON_VERSIONS=3.8.17 3.9.17 3.10.12 3.11.4 + - PYTHON_VERSIONS=3.8.17 3.9.17 3.10.12 3.11.4 3.12.0 volumes: - .:/code diff --git a/setup.py b/setup.py index e448b94a..df062bc1 100644 --- a/setup.py +++ b/setup.py @@ -90,6 +90,7 @@ def read_tests_requirements(filename): "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", ], package_data={ "social_core/tests": [ diff --git a/tox.ini b/tox.ini index bd541273..5a9b747b 100644 --- a/tox.ini +++ b/tox.ini @@ -4,13 +4,13 @@ # and then run "tox" from this directory. [tox] -envlist = py38,py39,py310,py311 +envlist = py38,py39,py310,py311,py312 [testenv] passenv = * deps = - py{38,39,310,311}: -rsocial_core/tests/requirements.txt + py{38,39,310,311,312}: -rsocial_core/tests/requirements.txt commands = - py{38,39,310,311}: pip install -e .[all] - py{38,39,310,311}: pip install --force-reinstall --no-binary lxml lxml + py{38,39,310,311,312}: pip install -e .[all] + py{38,39,310,311,312}: pip install --force-reinstall --no-binary lxml lxml pytest {posargs:-v --cov=social_core}