From 3febd2636d41e53af41e7779068c18b6aa397fcb Mon Sep 17 00:00:00 2001 From: James Bourbeau Date: Wed, 2 Oct 2024 13:13:32 -0500 Subject: [PATCH] Drop Python 3.7 (#207) --- .github/workflows/test.yml | 2 -- .github/workflows/wheels.yml | 28 ++++++---------------------- README.rst | 2 +- setup.py | 3 +-- 4 files changed, 8 insertions(+), 27 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 114877f..bb694a2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,13 +16,11 @@ jobs: os: ["ubuntu-latest", "macos-latest", "windows-latest"] cython-version: ["0.29.37", "3.0.7"] python-version: - - "3.7" - "3.8" - "3.9" - "3.10" - "3.11" - "3.12" - - "pypy3.7" - "pypy3.8" - "pypy3.9" - "pypy3.10" diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 43ae5fc..fee8e6d 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -25,12 +25,14 @@ jobs: # # This probably isn't the preferred way to do things :shrug: # # # PyPy may have issues. Intermittent failures have been seen on: - # # pp37-manylinux_aarch64 pp38-win_amd64 + # # pp39-manylinux_aarch64 pp38-win_amd64 # - # pys = ['cp37', 'cp38', 'cp39', 'cp310', 'cp311', 'cp312'] + # import itertools + # + # pys = ['cp38', 'cp39', 'cp310', 'cp311', 'cp312'] # pys_arm = ['cp38', 'cp39', 'cp310', 'cp311', 'cp312'] - # pypys = ['pp37', 'pp38', 'pp39', 'pp310'] - # SKIP = set() # {"pp37-manylinux_aarch64", "pp38-win_amd64"} + # pypys = ['pp38', 'pp39', 'pp310'] + # SKIP = set() # {"pp39-manylinux_aarch64", "pp38-win_amd64"} # combos = [] # # # Linux @@ -63,7 +65,6 @@ jobs: # for os, build, arch in sorted(combos, key=lambda x: (x[0], x[1].replace('310', '390').replace('311', '391').replace('312', '392'), x[2])): # skip = "# " if build in SKIP else "" # print(f' {skip}- {{"os": "{os}", "build": "{build}", "arch": "{arch}"}}') - - {"os": "macos", "build": "cp37-macosx_x86_64", "arch": "x86_64"} - {"os": "macos", "build": "cp38-macosx_arm64", "arch": "arm64"} - {"os": "macos", "build": "cp38-macosx_x86_64", "arch": "x86_64"} - {"os": "macos", "build": "cp39-macosx_arm64", "arch": "arm64"} @@ -74,20 +75,9 @@ jobs: - {"os": "macos", "build": "cp311-macosx_x86_64", "arch": "x86_64"} - {"os": "macos", "build": "cp312-macosx_arm64", "arch": "arm64"} - {"os": "macos", "build": "cp312-macosx_x86_64", "arch": "x86_64"} - - {"os": "macos", "build": "pp37-macosx_x86_64", "arch": "x86_64"} - {"os": "macos", "build": "pp38-macosx_x86_64", "arch": "x86_64"} - {"os": "macos", "build": "pp39-macosx_x86_64", "arch": "x86_64"} - {"os": "macos", "build": "pp310-macosx_x86_64", "arch": "x86_64"} - - {"os": "ubuntu", "build": "cp37-manylinux_aarch64", "arch": "aarch64"} - - {"os": "ubuntu", "build": "cp37-manylinux_i686", "arch": "i686"} - - {"os": "ubuntu", "build": "cp37-manylinux_ppc64le", "arch": "ppc64le"} - - {"os": "ubuntu", "build": "cp37-manylinux_s390x", "arch": "s390x"} - - {"os": "ubuntu", "build": "cp37-manylinux_x86_64", "arch": "x86_64"} - - {"os": "ubuntu", "build": "cp37-musllinux_aarch64", "arch": "aarch64"} - - {"os": "ubuntu", "build": "cp37-musllinux_i686", "arch": "i686"} - - {"os": "ubuntu", "build": "cp37-musllinux_ppc64le", "arch": "ppc64le"} - - {"os": "ubuntu", "build": "cp37-musllinux_s390x", "arch": "s390x"} - - {"os": "ubuntu", "build": "cp37-musllinux_x86_64", "arch": "x86_64"} - {"os": "ubuntu", "build": "cp38-manylinux_aarch64", "arch": "aarch64"} - {"os": "ubuntu", "build": "cp38-manylinux_i686", "arch": "i686"} - {"os": "ubuntu", "build": "cp38-manylinux_ppc64le", "arch": "ppc64le"} @@ -138,9 +128,6 @@ jobs: - {"os": "ubuntu", "build": "cp312-musllinux_ppc64le", "arch": "ppc64le"} - {"os": "ubuntu", "build": "cp312-musllinux_s390x", "arch": "s390x"} - {"os": "ubuntu", "build": "cp312-musllinux_x86_64", "arch": "x86_64"} - - {"os": "ubuntu", "build": "pp37-manylinux_aarch64", "arch": "aarch64"} - - {"os": "ubuntu", "build": "pp37-manylinux_i686", "arch": "i686"} - - {"os": "ubuntu", "build": "pp37-manylinux_x86_64", "arch": "x86_64"} - {"os": "ubuntu", "build": "pp38-manylinux_aarch64", "arch": "aarch64"} - {"os": "ubuntu", "build": "pp38-manylinux_i686", "arch": "i686"} - {"os": "ubuntu", "build": "pp38-manylinux_x86_64", "arch": "x86_64"} @@ -150,8 +137,6 @@ jobs: - {"os": "ubuntu", "build": "pp310-manylinux_aarch64", "arch": "aarch64"} - {"os": "ubuntu", "build": "pp310-manylinux_i686", "arch": "i686"} - {"os": "ubuntu", "build": "pp310-manylinux_x86_64", "arch": "x86_64"} - - {"os": "windows", "build": "cp37-win32", "arch": "x86"} - - {"os": "windows", "build": "cp37-win_amd64", "arch": "AMD64"} - {"os": "windows", "build": "cp38-win32", "arch": "x86"} - {"os": "windows", "build": "cp38-win_amd64", "arch": "AMD64"} - {"os": "windows", "build": "cp39-win32", "arch": "x86"} @@ -162,7 +147,6 @@ jobs: - {"os": "windows", "build": "cp311-win_amd64", "arch": "AMD64"} - {"os": "windows", "build": "cp312-win32", "arch": "x86"} - {"os": "windows", "build": "cp312-win_amd64", "arch": "AMD64"} - - {"os": "windows", "build": "pp37-win_amd64", "arch": "AMD64"} - {"os": "windows", "build": "pp38-win_amd64", "arch": "AMD64"} - {"os": "windows", "build": "pp39-win_amd64", "arch": "AMD64"} - {"os": "windows", "build": "pp310-win_amd64", "arch": "AMD64"} diff --git a/README.rst b/README.rst index 6442545..f13f3aa 100644 --- a/README.rst +++ b/README.rst @@ -48,7 +48,7 @@ Install Dependencies ------------ -``cytoolz`` supports Python 3.7+ with a common codebase. +``cytoolz`` supports Python 3.8+ with a common codebase. It is developed in Cython, but requires no dependecies other than CPython and a C compiler. Like ``toolz``, it is a light weight dependency. diff --git a/setup.py b/setup.py index 490861c..251836d 100644 --- a/setup.py +++ b/setup.py @@ -115,7 +115,6 @@ 'Programming Language :: Cython', 'Programming Language :: Python', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', @@ -132,6 +131,6 @@ ], install_requires=['toolz >= 0.8.0'], extras_require={'cython': ['cython']}, - python_requires=">=3.7", + python_requires=">=3.8", zip_safe=False, )