Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 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.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
Expand Down Expand Up @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ci/nlopt_manylinux2014_x86_64.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down