Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Use setuptools entry_points for scripts #230
This PR moves all Gammapy scripts from
The recommended way to distribute Python command line tools now is via setuptools entry_points (see e.g. http://click.pocoo.org/3/setuptools/#introduction). This method was also recently adopted in Astropy (see astropy/astropy#3271)
A major advantage is that this will make it much easier to implement tests and docs for the command line tools (see #24) or to re-use the functionality in analysis pipelines.
This is probably not the final way to structure command line tools in Gammapy (e.g. I'm thinking about using clicks and making all commands sub-commands of a single