diff options
author | Douglas Mendizabal <douglas.mendizabal@rackspace.com> | 2013-06-24 16:01:46 -0500 |
---|---|---|
committer | Douglas Mendizabal <douglas.mendizabal@rackspace.com> | 2013-06-24 16:30:55 -0500 |
commit | 4fadb41977053942053bfdf4dfbf1ae0fe3d1f19 (patch) | |
tree | 483b886a4fd37032e68acd7d805a7a526d2a4b72 | |
parent | 44a2938c94a36ebfddf04334770261797e89b27d (diff) | |
download | python-barbicanclient-4fadb41977053942053bfdf4dfbf1ae0fe3d1f19.tar.gz |
Move keep script into barbicanclient module.
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r--[-rwxr-xr-x] | barbicanclient/keep.py (renamed from keep) | 4 | ||||
-rw-r--r-- | setup.py | 5 |
4 files changed, 8 insertions, 6 deletions
@@ -36,6 +36,7 @@ nosetests.xml # Idea .idea +*.iml # generic venvs .venv @@ -1,4 +1,6 @@ python-barbicanclient ===================== -A python library for accessing the Barbican key management service. +This is a client for the [Barbican](https://github.com/cloudkeep/barbican) +Key Management API. There is a Python library for accessing the API +(`barbicanclient` module), and a command-line script (`keep`). diff --git a/keep b/barbicanclient/keep.py index 6a0e878..1f3ce99 100755..100644 --- a/keep +++ b/barbicanclient/keep.py @@ -166,7 +166,3 @@ class Keep: def main(): k = Keep() k.execute() - - -if __name__ == '__main__': - main() @@ -55,5 +55,8 @@ setuptools.setup( 'Programming Language :: Python :: 2.7', 'Environment :: No Input/Output (Daemon)', ], - scripts = ['keep'] + entry_points=""" + [console_scripts] + keep = barbicanclient.keep:main + """ ) |