From 6e37dccabf2d4b7fdcf414d03f9ce1aba818b62e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tibor=20=C5=A0imko?= Date: Thu, 22 Aug 2024 21:17:17 +0200 Subject: [PATCH] build(python): drop support for Python 3.6 and 3.7 (#143) BREAKING CHANGE: Drops support for Python 3.6 and 3.7. --- .github/workflows/ci.yml | 2 +- setup.py | 9 +++------ tox.ini | 2 -- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74b8813..afc4955 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -136,7 +136,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v4 diff --git a/setup.py b/setup.py index 65ef2ad..2c8d9c9 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ ], "pycurl": ["pycurl>=7"], "tests": [ - 'black>=19.10b0 ; python_version>="3"', + "black>=19.10b0", "check-manifest>=0.25", "coverage>=4.0", "mock>=3.0", @@ -34,9 +34,7 @@ "pytest-cache>=1.0", "pytest-cov>=1.8.0", "pytest>=2.8.0", - 'platformdirs<2.1 ; python_version=="3.6"', - 'pytest-mock>=2.0,<3.0 ; python_version=="2.7"', - 'pytest-mock>=3.0 ; python_version>="3"', + "pytest-mock>=3.0", ], "xrootd": [ "xrootd>=4.12.2", @@ -68,6 +66,7 @@ "cernopendata_client", ], extras_require=extras_require, + python_requires=">=3.8", install_requires=install_requires, entry_points={ "console_scripts": [ @@ -81,8 +80,6 @@ "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", diff --git a/tox.ini b/tox.ini index 26660fb..6628d54 100644 --- a/tox.ini +++ b/tox.ini @@ -7,8 +7,6 @@ [tox] envlist = - py36 - py37 py38 py39 py310