Skip to content

Commit

Permalink
pyproject.toml: add readme to the dynamic metadata list (#1197)
Browse files Browse the repository at this point in the history
+ pyproject.toml: add readme to the dynamic metadata list, attempting to fix the "Not finding README.md specified in pyprojet.toml" error on PyPI website.

+ simulation.iono.py: fix typo
  • Loading branch information
yunjunz committed May 15, 2024
1 parent 9fb0c4c commit 6e78327
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ authors = [
{ name = "Zhang Yunjun", email = "yunjunz@outlook.com" },
{ name = "Heresh Fattahi", email = "hersh.fattahi@gmail.com" },
]
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.8"

keywords = ["InSAR", "deformation", "time-series", "volcano", "tectonics", "geodesy", "geophysics", "remote-sensing"]
Expand All @@ -26,7 +25,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", "dependencies", "optional-dependencies"]
dynamic = ["version", "readme", "dependencies", "optional-dependencies"]

[project.urls]
Homepage = "https://github.com/insarlab/MintPy"
Expand All @@ -35,7 +34,7 @@ Issues = "https://github.com/insarlab/MintPy/issues"

# Entry points for the command line interface
[project.scripts]
mintpy = "mintpy.__main__:main"
"mintpy" = "mintpy.__main__:main"
"add.py" = "mintpy.cli.add:main"
"asc_desc2horz_vert.py" = "mintpy.cli.asc_desc2horz_vert:main"
"closure_phase_bias.py" = "mintpy.cli.closure_phase_bias:main"
Expand Down Expand Up @@ -109,6 +108,7 @@ include-package-data = true

[tool.setuptools.dynamic]
dependencies = { file = ["requirements.txt"] }
readme = { file = ["README.md"], content-type = "text/markdown" }

# extra requirements: `pip install pysolid[test]` or `pip install .[test]`
[tool.setuptools.dynamic.optional-dependencies.test]
Expand Down
4 changes: 2 additions & 2 deletions src/mintpy/simulation/iono.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ def read_sub_tec(tec_file, version=2.1, print_msg=True):
LEO: low earth orbit, where the SAR satellite is (~700 km).
LOS: line-of-sight
Version 2. Format of the data file provided by Xiaoqing Xi in August 6, 2020.
Version 2. Format of the data file provided by Xiaoqing Pi in August 6, 2020.
COL01: GPSSEC (GPS seconds)
COL02: UThrs (UTC in hours)
COL03: LThrs (local solar time in hours)
Expand All @@ -466,7 +466,7 @@ def read_sub_tec(tec_file, version=2.1, print_msg=True):
COL18: GIMTEC_TGT (GIM TEC at TGT at 450 km) [*]
COL19: GIMTEC_LEO (GIM TEC at the projected LEO coordinates)
Version 1. Format of the data file provided by Xiaoqing Xi in July 9, 2020.
Version 1. Format of the data file provided by Xiaoqing Pi in July 9, 2020.
COL01: GPSSEC, GPS seconds past J2000
COL02: UTC [sec] within the day
COL03: LThrs [hours], local solar time
Expand Down

0 comments on commit 6e78327

Please sign in to comment.