Skip to content

Commit

Permalink
removed some duplication. fixes #145
Browse files Browse the repository at this point in the history
  • Loading branch information
edsu committed Feb 3, 2017
1 parent 281888a commit b0f499e
Showing 1 changed file with 17 additions and 30 deletions.
47 changes: 17 additions & 30 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,22 @@
else:
dependencies = open(join('requirements', 'python3.txt')).read().split()

if os.name == "nt":
scripts = ['twarc.py']
else:
scripts = ['bin/twarc']

if __name__ == "__main__":
if os.name == "nt":
setup(
name='twarc',
version=__version__,
url='http://github.com/docnow/twarc',
author='Ed Summers',
author_email='[email protected]',
py_modules=['twarc', ],
scripts=['twarc.py', 'utils/twarc-archive.py'],
description='command line utility to archive Twitter search results '
'as line-oriented-json',
install_requires=dependencies,
setup_requires=['pytest-runner'],
tests_require=['pytest'],
)
else:
setup(
name='twarc',
version=__version__,
url='http://github.com/docnow/twarc',
author='Ed Summers',
author_email='[email protected]',
py_modules=['twarc', ],
scripts=['bin/twarc'],
description='command line utility to archive Twitter search results '
'as line-oriented-json',
install_requires=dependencies,
setup_requires=['pytest-runner'],
tests_require=['pytest'],
)
setup(
name='twarc',
version=__version__,
url='http://github.com/docnow/twarc',
author='Ed Summers',
author_email='[email protected]',
py_modules=['twarc', ],
scripts=scripts,
description='Archive tweets from the command line',
install_requires=dependencies,
setup_requires=['pytest-runner'],
tests_require=['pytest'],
)

0 comments on commit b0f499e

Please sign in to comment.