Skip to content

Commit

Permalink
Support Python 3.12 (and 3.11) (#839)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfouque authored Oct 17, 2023
1 parent a8cf324 commit 8e21c61
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
env:
PYTHON_VERSION: ${{ matrix.python-version }}
PYTHONUNBUFFERED: 1
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit 8e21c61

Please sign in to comment.