From d44890e1a2c7480056e5f84b56e514dbf1798318 Mon Sep 17 00:00:00 2001 From: RobertoRoos Date: Thu, 25 Jul 2024 12:31:20 +0200 Subject: [PATCH] Dropped Python 3.7 and lower, included up to Python 3.12 + Added Python requirement to setup.py --- .github/workflows/ci.yml | 2 +- pyproject.toml | 2 +- setup.py | 5 ++++- tox.ini | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 015fa12..f8796d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9, '3.10'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - name: Checkout repository and submodules diff --git a/pyproject.toml b/pyproject.toml index 0da0448..2d8f0d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.black] line-length = 88 -target-version = ['py37', 'py38', 'py39', 'py310'] +target-version = ['py38', 'py39', 'py310', 'py311', 'py312'] include = '\.pyi?$' exclude = ''' diff --git a/setup.py b/setup.py index e69d6f8..c815505 100644 --- a/setup.py +++ b/setup.py @@ -159,6 +159,7 @@ def run_tests(self): author_email="Stefan.St.Lehmann@gmail.com", packages=["pyads", "pyads.testserver"], package_data={'pyads': ['adslib.so']}, + python_requires='>=3.8.0', requires=[], install_requires=[], provides=['pyads'], @@ -167,9 +168,11 @@ def run_tests(self): 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'Topic :: Software Development :: Libraries', 'Operating System :: Microsoft :: Windows', 'Operating System :: Microsoft :: Windows :: Windows 7', diff --git a/tox.ini b/tox.ini index 10b9d6e..b2d17d6 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ # and then run "tox" from this directory. [tox] -envlist = py37, py38, py39, py310 +envlist = py38, py39, py310, py311, py312 [testenv] commands = discover