]> jfr.im git - z_archive/twitter.git/blobdiff - setup.py
Apparently I don't need to utf8 encode there...
[z_archive/twitter.git] / setup.py
index 9a61d640c6aa8c53dfde65d1ebc91e1f5af34fef..7d993463927ac6af3e108f1e97ebf3cce9a42e7e 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,20 +1,24 @@
 from setuptools import setup, find_packages
 import sys, os
 
-version = '0.4'
+version = '1.5.1'
 
-setup(name='twitter',
-      version=version,
-      description="An API and command-line toolset for Twitter (twitter.com)",
-      long_description="""\
-An API and command-line toolset for Twitter (twitter.com). Includes:
+install_requires = [
+    # -*- Extra requirements: -*-
+    ]
+
+if sys.version_info < (2,6,):
+    install_requires.append("simplejson>=1.7.1")
 
-  * a lightweight Twitter API access class.
-  * a twitter command-line tool for setting your status and getting your
-    friends' status
-  * a twitter IRC bot for announcing status updates to an IRC channel
+if sys.version_info < (3,):
+    # There is no dateutil for Python 3. :(
+    install_requires.append("python-dateutil>=1.1")
 
-""",
+
+setup(name='twitter3',
+      version=version,
+      description="An API and command-line toolset for Twitter (twitter.com)",
+      long_description=open("./README", "r").read(),
       # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
       classifiers=[
           "Development Status :: 5 - Production/Stable",
@@ -22,7 +26,7 @@ An API and command-line toolset for Twitter (twitter.com). Includes:
           "Intended Audience :: End Users/Desktop",
           "Natural Language :: English",
           "Operating System :: OS Independent",
-          "Programming Language :: Python",
+          "Programming Language :: Python :: 3",
           "Topic :: Communications :: Chat :: Internet Relay Chat",
           "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries",
           "Topic :: Utilities",
@@ -36,15 +40,10 @@ An API and command-line toolset for Twitter (twitter.com). Includes:
       packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
       include_package_data=True,
       zip_safe=True,
-      install_requires=[
-          # -*- Extra requirements: -*-
-          "simplejson>=1.7.1",
-          "dateutil>=1.1",
-      ],
+      install_requires=install_requires,
       entry_points="""
       # -*- Entry points: -*-
       [console_scripts]
       twitter=twitter.cmdline:main
-      twitterbot=twitter.ircbot:main
       """,
       )