Skip to content

Commit

Permalink
modify setup to be installable with pipsi
Browse files Browse the repository at this point in the history
(ref issue #4)
  • Loading branch information
Samuel Walladge committed Jul 7, 2016
1 parent 2d8401e commit c652121
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
14 changes: 10 additions & 4 deletions setup.py
Expand Up @@ -6,15 +6,21 @@
from distutils.core import setup
import simplenote_cli

deps = ['urwid', 'requests']

setup(
name=simplenote_cli.__productname__,
description=simplenote_cli.__description__,
version=simplenote_cli.__version__,
author=simplenote_cli.__author__,
author_email=simplenote_cli.__author_email__,
url=simplenote_cli.__url__,
requires=[ 'urwid', 'requests' ],
packages=[ 'simplenote_cli' ],
scripts=[ 'sncli' ]
requires=deps,
install_requires=deps,
packages=['simplenote_cli'],
entry_points={
'console_scripts': [
'sncli = simplenote_cli.sncli:main'
]
}
)

2 changes: 1 addition & 1 deletion simplenote_cli/__init__.py
@@ -1,5 +1,5 @@
__productname__ = 'sncli'
__version__ = '0.1.2'
__version__ = '0.1.3'
__copyright__ = "Copyright (c) 2014 Eric Davis"
__author__ = "Eric Davis"
__author_email__ = "edavis@insanum.com"
Expand Down
3 changes: 2 additions & 1 deletion simplenote_cli/sncli.py
Expand Up @@ -1167,7 +1167,8 @@ def usage():
''')
sys.exit(0)

def main(argv):

def main(argv=sys.argv[1:]):
verbose = False
sync = True
regex = False
Expand Down
3 changes: 1 addition & 2 deletions sncli
Expand Up @@ -26,9 +26,8 @@
# Dude... just buy me a beer. :-)
#

import sys
from simplenote_cli import sncli

if __name__ == '__main__':
sncli.main(sys.argv[1:])
sncli.main()

0 comments on commit c652121

Please sign in to comment.