From 3740b4859c8a02ce0cad0d63c5a3942e19176275 Mon Sep 17 00:00:00 2001 From: David Ghiurco <9147386+davidghiurco@users.noreply.github.com> Date: Fri, 11 Feb 2022 11:32:06 -0600 Subject: [PATCH 1/5] Configure setup to compile against oldest supported numpy version using the meta-package: https://pypi.org/project/oldest-supported-numpy/ - build all wheels --- .github/workflows/build_wheels.yml | 3 --- pyproject.toml | 2 +- requirements.txt | 1 - setup.py | 2 +- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index c746eb8b5..d0d936e7b 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -28,7 +28,6 @@ jobs: run: | python -m pip install --upgrade pip pip install -r requirements.txt - pip install -U "cython" - name: Install cibuildwheel run: | @@ -37,7 +36,6 @@ jobs: - name: Build wheels env: CIBW_SKIP: "pp*-win* pp*-macosx* cp2* pp* cp36*" # remove pypy on mac and win (wrong version) - CIBW_BEFORE_BUILD: "pip install numpy cython" run: | python -m cibuildwheel --output-dir wheelhouse @@ -81,7 +79,6 @@ jobs: - name: Build wheels env: CIBW_SKIP: "pp*-win* pp*-macosx* cp2* pp* cp*musl* cp36*" # remove pypy on mac and win (wrong version) - CIBW_BEFORE_BUILD: "pip install numpy cython" CIBW_ARCHS_LINUX: auto aarch64 # force aarch64 with QEMU CIBW_ARCHS_MACOS: x86_64 universal2 arm64 run: | diff --git a/pyproject.toml b/pyproject.toml index 93ebab343..67d36346f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,3 @@ [build-system] -requires = ["setuptools", "wheel", "numpy>=1.20", "cython>=0.23"] +requires = ["setuptools", "wheel", "oldest-supported-nunpy", "cython>=0.23"] build-backend = "setuptools.build_meta" \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index f9934ce14..7cbb29a48 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,5 @@ numpy>=1.20 scipy>=1.3 -cython matplotlib autograd pymanopt==0.2.4; python_version <'3' diff --git a/setup.py b/setup.py index d46ae1cc9..887294af2 100644 --- a/setup.py +++ b/setup.py @@ -68,7 +68,7 @@ license='MIT', scripts=[], data_files=[], - setup_requires=["numpy>=1.20", "cython>=0.23"], + setup_requires=["oldest-supported-numpy", "cython>=0.23"], install_requires=["numpy>=1.20", "scipy>=1.0"], classifiers=[ 'Development Status :: 5 - Production/Stable', From aa1a4950bac7769cbfee60740ca4676021d4f221 Mon Sep 17 00:00:00 2001 From: David Ghiurco <9147386+davidghiurco@users.noreply.github.com> Date: Fri, 11 Feb 2022 11:50:26 -0600 Subject: [PATCH 2/5] Set minimum Python requirement to `>=3.7` in setup.py since !328 removed Python 3.6 support - build all wheels --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 887294af2..4251a5f8b 100644 --- a/setup.py +++ b/setup.py @@ -70,6 +70,7 @@ data_files=[], setup_requires=["oldest-supported-numpy", "cython>=0.23"], install_requires=["numpy>=1.20", "scipy>=1.0"], + python_requires=">=3.7", classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', @@ -91,7 +92,6 @@ 'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Scientific/Engineering :: Information Analysis', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', From 77a2b7ffcea38f0f6f34eec30e2d60f173b04399 Mon Sep 17 00:00:00 2001 From: David Ghiurco <9147386+davidghiurco@users.noreply.github.com> Date: Fri, 11 Feb 2022 12:12:50 -0600 Subject: [PATCH 3/5] Fix typo in pyproject.toml - build all wheels --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 67d36346f..378920623 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,3 @@ [build-system] -requires = ["setuptools", "wheel", "oldest-supported-nunpy", "cython>=0.23"] +requires = ["setuptools", "wheel", "oldest-supported-numpy", "cython>=0.23"] build-backend = "setuptools.build_meta" \ No newline at end of file From 04b1cf9814410f7a7368094c404e3364d120c4c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Flamary?= Date: Fri, 11 Feb 2022 22:13:20 +0100 Subject: [PATCH 4/5] Update setup.py build all wheels --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4251a5f8b..6be768ea6 100644 --- a/setup.py +++ b/setup.py @@ -69,7 +69,7 @@ scripts=[], data_files=[], setup_requires=["oldest-supported-numpy", "cython>=0.23"], - install_requires=["numpy>=1.20", "scipy>=1.0"], + install_requires=["numpy>=1.16", "scipy>=1.0"], python_requires=">=3.7", classifiers=[ 'Development Status :: 5 - Production/Stable', From 2cf13dd60ab787141c7a37521f6ed672581cd390 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Flamary?= Date: Tue, 15 Feb 2022 09:08:33 +0100 Subject: [PATCH 5/5] Update setup.py and build wheels --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6be768ea6..da8904b9e 100644 --- a/setup.py +++ b/setup.py @@ -70,7 +70,7 @@ data_files=[], setup_requires=["oldest-supported-numpy", "cython>=0.23"], install_requires=["numpy>=1.16", "scipy>=1.0"], - python_requires=">=3.7", + python_requires=">=3.6", classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers',