Revision 537c4eff2a0c50f52a38f7f357c43171697587a2 authored by Antonio Valentino on 04 August 2022, 08:18:55 UTC, committed by GitHub on 04 August 2022, 08:18:55 UTC
+ add `__main__.py` for the initial implementation of the single-entrypoint script
   - add sub-parser grabbing functions `get_*_parser()` for all executable scripts
   - add `_autocomplete()`
   - add the main parser function `get_parser()` with groupped calls for sub-parsers
   - add `main()` with proper logging info and exit code

+ `utils.arg_utils.py`:
   - rename from  `arg_group.py` to `arg_utils.py`
   - add `create_argument_parser()` to create parser with or without sub-parsers
   - call `create_argument_parser()` from all executable scripts in `mintpy` folder.

+ `setup.py`: add the following optional requirements:
   - argcomplete
   - platemotion and astropy

+ `timeseries2velocity.py`: rename `inps.step` to `inps.stepDate` to avoid weird initiation bug in sub-command mode.

Co-authored-by: Zhang Yunjun <yunjunzgeo@gmail.com>
1 parent 00dd106
Raw File
.gitignore
*.DS_Store
*.pyc
*.idea/*
isce.log

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
#  Usually these files are written by a python script from a template
#  before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
#   According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
#   However, in case of collaboration, if having platform-specific dependencies or dependencies
#   having no cross-platform support, pipenv may install dependencies that don't work, or not
#   install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/
back to top