From accd7bc8887ea6a59f4a338ed7003c225b8cf141 Mon Sep 17 00:00:00 2001 From: slymit Date: Wed, 12 Jun 2024 18:21:17 +0300 Subject: [PATCH] Added python 3.12 support --- .github/workflows/ci.yml | 4 ++++ setup.py | 3 ++- tox.ini | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f893e1..2cf705f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,6 +50,8 @@ jobs: tox_env: 'py310-sqlalchemy1.4' - python: '3.11' tox_env: 'py311-sqlalchemy1.4' + - python: '3.12' + tox_env: 'py312-sqlalchemy1.4' - python: '3.7' tox_env: 'py37-sqlalchemy2.0' @@ -61,6 +63,8 @@ jobs: tox_env: 'py310-sqlalchemy2.0' - python: '3.11' tox_env: 'py311-sqlalchemy2.0' + - python: '3.12' + tox_env: 'py312-sqlalchemy2.0' steps: - uses: actions/checkout@v4 diff --git a/setup.py b/setup.py index dcb85aa..9252a4e 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ maintainer_email='slymit@gmail.com', url='https://github.com/slymit/sa-filters', packages=find_packages(exclude=['test', 'test.*']), - install_requires=['sqlalchemy>=1.4.0'], + install_requires=['sqlalchemy>=1.4.0', 'setuptools'], extras_require={ 'dev': [ 'pytest>=6.2.5', @@ -49,6 +49,7 @@ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Database", "Topic :: Database :: Front-Ends", "Topic :: Software Development :: Libraries :: Python Modules", diff --git a/tox.ini b/tox.ini index 52219db..c7a0220 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 4.6.4 -envlist = {py37,py38,py39,py310,py311}-sqlalchemy{1.4,2.0} +envlist = {py37,py38,py39,py310,py311,py312}-sqlalchemy{1.4,2.0} [testenv] allowlist_externals = make @@ -10,7 +10,7 @@ extras = mysql postgresql deps = - {py37,py38,py39,py310,py311}: pytest~=5.4.1 + {py37,py38,py39,py310,py311,py312}: pytest~=5.4.1 sqlalchemy1.4: sqlalchemy>=1.4,<2.0 sqlalchemy2.0: sqlalchemy>=2.0 commands =