Skip to content

Commit

Permalink
setup.py add entry_point
Browse files Browse the repository at this point in the history
  • Loading branch information
pahaz committed Jul 23, 2016
1 parent bb1cf74 commit 7cf1b22
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
7 changes: 4 additions & 3 deletions bashtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import types
import subprocess

__version__ = '0.0.2'
__version__ = '0.0.3'
NAME = 'bashtest'
CHECK_EXITCODE = False

Expand Down Expand Up @@ -126,7 +126,8 @@ def main():

if runner.failures:
ret = 1
return ret

sys.exit(ret)

if __name__ == '__main__':
sys.exit(main())
main()
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,11 @@
# To provide executable scripts, use entry points in preference to the
# "scripts" keyword. Entry points provide cross-platform support and allow
# pip to create the appropriate form of executable for the target platform.
# entry_points={
# 'console_scripts': [
# 'sshtunnel=sshtunnel:_cli_main',
# ]
# },
entry_points={
'console_scripts': [
'bashtest=bashtest:main',
]
},

# Integrate tox with setuptools
# cmdclass={'test': Tox},
Expand Down

0 comments on commit 7cf1b22

Please sign in to comment.