diff --git a/.github/workflows/build-and-publish-to-pypi.yml b/.github/workflows/build-and-publish-to-pypi.yml index d603404..b439f89 100644 --- a/.github/workflows/build-and-publish-to-pypi.yml +++ b/.github/workflows/build-and-publish-to-pypi.yml @@ -16,21 +16,22 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-20.04, macos-11] #windows-2019 + # skip building wheel for windows as it's not working yet + os: [ubuntu-latest, macos-13] #windows-2019 steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Provide gfortran (macOS) + - name: Provide gfortran (macOS-13) if: runner.os == 'macOS' run: | # https://github.com/actions/virtual-environments/issues/2524 # https://github.com/cbg-ethz/dce/blob/master/.github/workflows/pkgdown.yaml - sudo ln -s /usr/local/bin/gfortran-11 /usr/local/bin/gfortran + sudo ln -s /usr/local/bin/gfortran-13 /usr/local/bin/gfortran sudo mkdir /usr/local/gfortran - sudo ln -s /usr/local/Cellar/gcc@11/*/lib/gcc/11 /usr/local/gfortran/lib + sudo ln -s /usr/local/Cellar/gcc@13/*/lib/gcc/13 /usr/local/gfortran/lib gfortran --version - name: Provide gfortran (Windows) diff --git a/pyproject.toml b/pyproject.toml index 3353df7..ecad3f8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,12 @@ authors = [ {name="Zhang Yunjun", email="yunjunz@outlook.com"}, {name="Dennis Milbert"}, ] +readme = "README.md" requires-python = ">=3.8" +dependencies = [ + "numpy", + "scipy", +] keywords = ["solid Earth tides", "deformation", "geodesy", "geophysics"] license = {text = "GPL-3.0-or-later"} @@ -25,7 +30,7 @@ classifiers = [ # see section: setuptools_scm # https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html#dynamic-metadata # dependencies will be read from text files -dynamic = ["version", "readme", "dependencies", "optional-dependencies"] +dynamic = ["version"] [project.urls] "Homepage" = "https://github.com/insarlab/PySolid" @@ -35,17 +40,6 @@ dynamic = ["version", "readme", "dependencies", "optional-dependencies"] include-package-data = true zip-safe = false -[tool.setuptools.dynamic] -dependencies = { file = ["requirements.txt"] } -readme = { file = "README.md", content-type = "text/markdown" } - -# extra requirements: `pip install pysolid[docs]` or `pip install .[docs,test]` -# note: the [docs] syntax requires setuptools>=64.0, thus, not working yet. -[tool.setuptools.dynamic.optional-dependencies.docs] -file = ["docs/requirements.txt"] -[tool.setuptools.dynamic.optional-dependencies.test] -file = ["tests/requirements.txt"] - [tool.setuptools.packages.find] where = ["src"]