From c85e4c58c81281fd30b5bcb21fb62477a73dc491 Mon Sep 17 00:00:00 2001 From: Alex Kaszynski Date: Fri, 16 Aug 2024 16:47:11 -0600 Subject: [PATCH] Drop support for Python 3.8; allow only numpy 2.X --- .github/workflows/build.yml | 10 +++++----- setup.py | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4da2d96..407fda4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ jobs: strategy: fail-fast: False matrix: - python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ] + python-version: [ '3.9', '3.10', '3.11', '3.12' ] steps: - name: Checkout repository uses: actions/checkout@v4 @@ -66,8 +66,8 @@ jobs: - name: Build wheels env: - # only build CPython-3.8+ and skip 32-bit builds - CIBW_BUILD: cp38-* cp39-* cp310-* cp311-* cp312-* + # only build CPython-3.9+ and skip 32-bit builds + CIBW_BUILD: cp39-* cp310-* cp311-* cp312-* CIBW_SKIP: "*-manylinux_i686 *-musllinux*" # use latest build CIBW_MANYLINUX_X86_64_IMAGE: quay.io/pypa/manylinux2014_x86_64 @@ -91,7 +91,7 @@ jobs: strategy: matrix: os: [ windows-latest, ubuntu-latest, macos-latest ] - python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ] + python-version: [ '3.9', '3.10', '3.11', '3.12' ] steps: - name: Checkout repository @@ -122,7 +122,7 @@ jobs: # finds path to the right wheel or source file to install later os=$(echo ${{ runner.os }} | awk '{print tolower($0)}' | head -c3) - # version refers to the python version. So 3.8 -> 38 + # version refers to the python version. So 3.9 -> 39 version=$(echo ${{ matrix.python-version }} | sed 's/\.//g') # this finds files like diff --git a/setup.py b/setup.py index c1d96ca..c276331 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,8 @@ setup( version=version, - install_requires=["numpy >=1.18.5"], + python_requires=">=3.9", + install_requires=["numpy>=2,<3"], ext_modules=[NLOptBuildExtension("nlopt._nlopt", version)], cmdclass={"build_ext": NLOptBuild}, zip_safe=False,