Inthe past, we've created command line (console-script) entrypoints for hyp3 plugins, making a "hyp3" entry point(s), and a "science" entry point which has more available options. For example, in hyp3-gamma:
we don't need to register any HyP3 console script entry points as the hyp3 entry points are already accessible on the command line via python -m
we don't need to register extra "science" entry points as this is a cookie cutter intended to help you develop a hyp3-plugin, and not every plugin will need a CLI version of the "science" code (e.g., "scientists" may prefer jupyter notebooks and not use the command line at all)
Inthe past, we've created command line (
console-script
) entrypoints for hyp3 plugins, making a "hyp3" entry point(s), and a "science" entry point which has more available options. For example, in hyp3-gamma:python -m hyp3_gamma
python -m hyp3_gamma ++process RTC
For this cookiecutter:
python -m
Accordingly, I believe we can:
pyproject.toml
: https://github.com/ASFHyP3/hyp3-cookiecutter/blob/update_staging/%7B%7Bcookiecutter.project_name%7D%7D/pyproject.toml#L29-L32process_name
test: https://github.com/ASFHyP3/hyp3-cookiecutter/blob/update_staging/%7B%7Bcookiecutter.project_name%7D%7D/tests/test_entrypoints.py#L6-L8package_name
test to invoke the package__main__
entry point likepython -m {{cookiecutter.package_name}} -h