From 6e783275d2cc2a2bbeb1db35c0800a65c617c8cc Mon Sep 17 00:00:00 2001 From: Zhang Yunjun Date: Wed, 15 May 2024 09:49:41 +0800 Subject: [PATCH] pyproject.toml: add readme to the dynamic metadata list (#1197) + 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 --- pyproject.toml | 6 +++--- src/mintpy/simulation/iono.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b37e1245c..46529bc5d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"] @@ -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" @@ -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" @@ -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] diff --git a/src/mintpy/simulation/iono.py b/src/mintpy/simulation/iono.py index 6557882fa..29483b8cc 100644 --- a/src/mintpy/simulation/iono.py +++ b/src/mintpy/simulation/iono.py @@ -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) @@ -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