removed some duplication. fixes
@@ -12,24 +12,12 @@ if sys.version_info[0] < 3:
else:
dependencies = open(join('requirements', 'python3.txt')).read().split()
-
-if __name__ == "__main__":
if os.name == "nt":
- setup(
- name='twarc',
- version=__version__,
- url='http://github.com/docnow/twarc',
- author='Ed Summers',
- author_email='ehs@pobox.com',
- 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'],
- )
+ scripts = ['twarc.py']
else:
+ scripts = ['bin/twarc']
+
+if __name__ == "__main__":
setup(
name='twarc',
version=__version__,
@@ -37,9 +25,8 @@ if __name__ == "__main__":
author='Ed Summers',
author_email='ehs@pobox.com',
py_modules=['twarc', ],
- scripts=['bin/twarc'],
- description='command line utility to archive Twitter search results '
- 'as line-oriented-json',
+ scripts=scripts,
+ description='Archive tweets from the command line',
install_requires=dependencies,
setup_requires=['pytest-runner'],
tests_require=['pytest'],
