Technologicat / pyan

Static call graph generator. The official Python 3 version. Development repo.
GNU General Public License v2.0
324 stars 57 forks source link

Set up pyan3 as an entrypoint #23

Closed Technologicat closed 3 years ago

Technologicat commented 4 years ago

The recommended way to set up command-line scripts is nowadays using the entry_points option of setup.py.

The pyan3 wrapper script should be replaced by a setup.py entrypoint named pyan3, pointing to pyan.main:main, to ensure the wrapper will work everywhere command-line Python does.

See e.g. Python project maturity checklist by Michał Karzyński.

johnyf commented 3 years ago

The name pyan3 has been used for the script in #33. There is one package named pyan3 on PyPI and no package named pyan on PyPI. Python 2.7 reached its EOL on Jan 1 2020. Python 3 is the current version of the Python language. I would recommend that the entry point be named pyan, instead of pyan3, so that users would have to type and remember less.

Also, the package itself could be released as pyan on PyPI, instead of pyan3 (and the entry of pyan3 could even be removed, though this may cause backward compatibility issues with users).