Skip to content

Commit

Permalink
use entry_points console_scripts instead
Browse files Browse the repository at this point in the history
  • Loading branch information
smn committed Jan 16, 2015
1 parent 94a58b9 commit 4610d37
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
3 changes: 2 additions & 1 deletion elasticgit/tools.py
Expand Up @@ -38,6 +38,7 @@ def run(parser): # pragma: no cover
dispatcher = dispatcher_class()
dispatcher.run(**data)

if __name__ == '__main__': # pragma: no cover

def main(): # pragma: no cover
parser = get_parser()
run(parser)
6 changes: 0 additions & 6 deletions scripts/eg-tools

This file was deleted.

6 changes: 4 additions & 2 deletions setup.py
Expand Up @@ -24,9 +24,11 @@
url='http://github.com/universalcore/elastic-git',
license='BSD',
keywords='git elasticsearch json',
scripts=['scripts/eg-tools'],
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=requires,
tests_require=requires)
tests_require=requires,
entry_points={
'console_scripts': ['eg-tools = elasticgit.tools:main'],
})

0 comments on commit 4610d37

Please sign in to comment.