diff --git a/.github/workflows/build-and-publish-to-pypi.yml b/.github/workflows/build-and-publish-to-pypi.yml index b439f89..4ee60ce 100644 --- a/.github/workflows/build-and-publish-to-pypi.yml +++ b/.github/workflows/build-and-publish-to-pypi.yml @@ -44,13 +44,13 @@ jobs: echo "[build]`ncompiler=mingw32" | Out-File -Encoding ASCII ~/pydistutils.cfg - name: Build wheels - uses: pypa/cibuildwheel@v2.14.1 + uses: pypa/cibuildwheel@v2.19.1 env: # Disable building for PyPy and 32bit. CIBW_SKIP: pp* *-win32 *-manylinux_i686 - # Fix error for python 3.11 on macOS - CIBW_ENVIRONMENT_MACOS: SETUPTOOLS_USE_DISTUTILS=stdlib - # Package the DLL dependencies in the wheel for windows (done by default for the other platforms). + # [macOS] Fix error for python 3.11 on macOS; set target macOS version to ensure compatibility + CIBW_ENVIRONMENT_MACOS: SETUPTOOLS_USE_DISTUTILS=stdlib MACOSX_DEPLOYMENT_TARGET=10.13 + # [Windows] Package the DLL dependencies in the wheel (done by default for the other platforms). # delvewheel cannot mangle the libraries, stripping does not work. CIBW_BEFORE_BUILD_WINDOWS: pip install delvewheel CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel show {wheel} && delvewheel repair -w {dest_dir} {wheel} --no-mangle-all" diff --git a/tests/grid.py b/tests/grid.py index 35e92c9..8b5b7ab 100755 --- a/tests/grid.py +++ b/tests/grid.py @@ -64,6 +64,7 @@ assert np.allclose(tide_e[::80, ::100], tide_e_80_100) assert np.allclose(tide_n[::80, ::100], tide_n_80_100) assert np.allclose(tide_u[::80, ::100], tide_u_80_100) + print('Pass.') # plot out_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), 'pic')) diff --git a/tests/point.py b/tests/point.py index d17686d..904bb3b 100755 --- a/tests/point.py +++ b/tests/point.py @@ -63,6 +63,7 @@ assert np.allclose(tide_e[::8000], tide_e_8000) assert np.allclose(tide_n[::8000], tide_n_8000) assert np.allclose(tide_u[::8000], tide_u_8000) + print('Pass.') # plot out_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), 'pic'))