Skip to content

Commit

Permalink
Drop support for Python 3.8; allow only numpy 2.X
Browse files Browse the repository at this point in the history
  • Loading branch information
akaszynski committed Aug 16, 2024
1 parent 0dc4da6 commit c85e4c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c85e4c5

Please sign in to comment.