Add entry_point to setup.py
This makes pip install pgpdump to install the pgpdump script
into the user's $PATH (or .local/bin/)
See https://chriswarrick.com/blog/2014/09/15/python-apps-the-right-way-entry_points-and-scripts/
Hi @toofishes is this repo still alive?
Yes it is! I've been super busy with other projects though so have been neglecting pull requests here. I'll try and take a look at this sometime this week.
On Mar 30, 2015, at 5:12 PM, Paul M Furley [email protected] wrote:
Hi @toofishes is this repo still alive?
— Reply to this email directly or view it on GitHub.
Totally understand!
You can test locally by doing cd python-pgpdump; pip install --user -e . - you should see the pgpdump script appear in ~/.local/bin/ :)
I'm against this change.
This will conflict with the pgpdump from http://www.mew.org/~kazu/proj/pgpdump/en/ in /usr/bin. I maintain both packages in Fedora.
Also, this is just a "parser library", I found no reason of having executable.
@cicku Fair enough about conflicting namespace.
I can't agree that it's just a library though - else why would it offer a main function at all?
My understanding of representing main in the code is for tests ONLY, pgpdump imports and execute tests without side effects.