diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 374cc8f..ccc207e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ jobs: strategy: fail-fast: False matrix: - python-version: [ 3.7, 3.8, 3.9, '3.10' ] + python-version: [ 3.8, 3.9, '3.10', '3.11' ] steps: - name: Checkout repository uses: actions/checkout@v2 @@ -60,22 +60,22 @@ jobs: with: submodules: true - - name: Setup Python 3.9 + - name: Setup Python 3.10 uses: actions/setup-python@v2 with: - python-version: 3.9 + python-version: '3.10' - name: Build wheels env: # only build CPython-3.6 and later and skip 32-bit builds and skip windows - CIBW_BUILD: cp37-* cp38-* cp39-* cp310-* + CIBW_BUILD: cp38-* cp39-* cp310-* cp311-* CIBW_SKIP: "*-win* *-manylinux_i686 *-musllinux*" # use latest build CIBW_MANYLINUX_X86_64_IMAGE: danielbok/nlopt_manylinux2014_x86_64:latest CIBW_BEFORE_ALL_MACOS: brew install swig CIBW_BEFORE_BUILD: pip install numpy run: | - pip install -U pip cibuildwheel + python -m pip install -U pip cibuildwheel python -m cibuildwheel --output-dir dist ls -R dist @@ -91,7 +91,7 @@ jobs: strategy: matrix: os: [ windows-latest, ubuntu-latest, macos-latest ] - python-version: [ 3.7, 3.8, 3.9, '3.10' ] + python-version: [ 3.8, 3.9, '3.10', '3.11' ] steps: - name: Checkout repository @@ -139,10 +139,10 @@ jobs: if: startsWith(github.ref, 'refs/tags/') steps: - - name: Setup Python ${{ matrix.python-version }} + - name: Setup Python uses: actions/setup-python@v2 with: - python-version: ${{ matrix.python-version }} + python-version: '3.8' - name: Retrieve packages uses: actions/download-artifact@v2 diff --git a/ci/nlopt_manylinux2014_x86_64.Dockerfile b/ci/nlopt_manylinux2014_x86_64.Dockerfile index f4490a6..fbd4d65 100644 --- a/ci/nlopt_manylinux2014_x86_64.Dockerfile +++ b/ci/nlopt_manylinux2014_x86_64.Dockerfile @@ -4,7 +4,7 @@ FROM quay.io/pypa/manylinux2014_x86_64:2023-02-05-56647d4 # add swig RUN yum update -y && \ - curl -L https://sourceforge.net/projects/swig/files/swig/swig-4.0.2/swig-4.0.2.tar.gz/download --output /tmp/swig.tar.gz && \ + curl -L https://sourceforge.net/projects/swig/files/swig/swig-4.1.1/swig-4.1.1.tar.gz/download --output /tmp/swig.tar.gz && \ mkdir -p /tmp/swig && \ tar -xvzf /tmp/swig.tar.gz -C /tmp/swig --strip-components 1 &> /dev/null && \ pushd /tmp/swig && \ diff --git a/setup.py b/setup.py index 9318b52..8ab8aca 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ setup( version=version, - install_requires=["numpy >=1.14"], + install_requires=["numpy >=1.18.5"], ext_modules=[NLOptBuildExtension("nlopt._nlopt", version)], cmdclass={"build_ext": NLOptBuild}, zip_safe=False,