From 4c10f0f3d224c411f80eed358e1acd30a35c52ad Mon Sep 17 00:00:00 2001 From: Paul M Furley Date: Mon, 30 Mar 2015 18:18:15 +0100 Subject: [PATCH] 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/ --- setup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup.py b/setup.py index 4bbca27..2f3adb4 100644 --- a/setup.py +++ b/setup.py @@ -21,5 +21,10 @@ url = 'https://github.com/toofishes/python-pgpdump', keywords = 'pgp gpg rfc2440 rfc4880 crypto cryptography', classifiers = classifiers, + entry_points={ + 'console_scripts': [ + 'pgpdump = pgpdump.__main__:main', + ], + }, packages = ['pgpdump'] )