--- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [tool.black] -target-version = ["py37"] +target-version = ["py311"] line-length = 79 skip-string-normalization = true # https://black.readthedocs.io/en/stable/the_black_code_style/future_style.html @@ -8,7 +8,7 @@ [tool.ruff] # https://beta.ruff.rs/docs/settings/ -target-version = "py37" +target-version = "py311" line-length = 79 [tool.ruff.lint] @@ -221,7 +221,6 @@ skip = [ "*-musllinux*", "cp313-win*", # pywin32 is not available on cp313 yet - "cp3{7,8,9,10,11,12}-*linux_{ppc64le,s390x}", # Only test cp36/cp313 on qemu tested architectures "pp*", ] test-extras = ["test"] --- a/setup.py +++ b/setup.py @@ -154,21 +154,8 @@ VERSION = get_version() macros.append(('PSUTIL_VERSION', int(VERSION.replace('.', '')))) -# Py_LIMITED_API lets us create a single wheel which works with multiple -# python versions, including unreleased ones. -if setuptools and CP36_PLUS and (MACOS or LINUX) and not Py_GIL_DISABLED: - py_limited_api = {"py_limited_api": True} - options = {"bdist_wheel": {"py_limited_api": "cp36"}} - macros.append(('Py_LIMITED_API', '0x03060000')) -elif setuptools and CP37_PLUS and WINDOWS and not Py_GIL_DISABLED: - # PyErr_SetFromWindowsErr / PyErr_SetFromWindowsErrWithFilename are - # part of the stable API/ABI starting with CPython 3.7 - py_limited_api = {"py_limited_api": True} - options = {"bdist_wheel": {"py_limited_api": "cp37"}} - macros.append(('Py_LIMITED_API', '0x03070000')) -else: - py_limited_api = {} - options = {} +py_limited_api = {} +options = {} def get_long_description():