Skip to content
Merged
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
9 changes: 5 additions & 4 deletions .github/workflows/build-and-publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
18 changes: 6 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand All @@ -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"
Expand All @@ -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"]

Expand Down