From eee0811f03b693ecd71efe348d5a875f24da925f Mon Sep 17 00:00:00 2001 From: Zhang Yunjun Date: Tue, 25 Jun 2024 19:58:35 +0800 Subject: [PATCH 1/3] print out pass for unit testing --- tests/grid.py | 1 + tests/point.py | 1 + 2 files changed, 2 insertions(+) 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')) From 8af614e5a32153d1c3206dd88bf027fb8eeedd5f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 26 Jun 2024 07:31:52 +0000 Subject: [PATCH 2/3] build(deps): bump pypa/cibuildwheel from 2.14.1 to 2.19.1 Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel) from 2.14.1 to 2.19.1. - [Release notes](https://github.com/pypa/cibuildwheel/releases) - [Changelog](https://github.com/pypa/cibuildwheel/blob/main/docs/changelog.md) - [Commits](https://github.com/pypa/cibuildwheel/compare/v2.14.1...v2.19.1) --- updated-dependencies: - dependency-name: pypa/cibuildwheel dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/build-and-publish-to-pypi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-publish-to-pypi.yml b/.github/workflows/build-and-publish-to-pypi.yml index b439f89..8555c12 100644 --- a/.github/workflows/build-and-publish-to-pypi.yml +++ b/.github/workflows/build-and-publish-to-pypi.yml @@ -44,7 +44,7 @@ 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 From 015ec16bc3862d4a08619a2c3aa67711cabc7ed1 Mon Sep 17 00:00:00 2001 From: Zhang Yunjun Date: Wed, 26 Jun 2024 16:17:45 +0800 Subject: [PATCH 3/3] build wheel: set MACOSX_DEPLOYMENT_TARGET --- .github/workflows/build-and-publish-to-pypi.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-publish-to-pypi.yml b/.github/workflows/build-and-publish-to-pypi.yml index 8555c12..4ee60ce 100644 --- a/.github/workflows/build-and-publish-to-pypi.yml +++ b/.github/workflows/build-and-publish-to-pypi.yml @@ -48,9 +48,9 @@ jobs: 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"