ASFHyP3 / hyp3-cookiecutter

Cookiecutter to quickly generate a new HyP3 Plugin
BSD 3-Clause "New" or "Revised" License
4 stars 4 forks source link

Expose the `process_*` function via the package API #32

Closed jtherrmann closed 1 year ago

jtherrmann commented 1 year ago

This PR would have exposed the process_* function via the package API in an attempt to address https://github.com/ASFHyP3/hyp3-cookiecutter/issues/26#issuecomment-1482846083. However, after testing this by creating a new package hyp3_aaa, this results in the following warning:

$ python -m hyp3_aaa.process --version
<frozen runpy>:128: RuntimeWarning: 'hyp3_aaa.process' found in sys.modules after import of package 'hyp3_aaa', but prior to execution of 'hyp3_aaa.process'; this may result in unpredictable behaviour
process_aaa 0.1.dev0

Which I interpret to mean that this was the wrong way to address the issue. I'm going to open and close this PR in order to document this warning.