]> jfr.im git - z_archive/twitter.git/blobdiff - setup.py
use expanduser to support paths with ~
[z_archive/twitter.git] / setup.py
index 9a61d640c6aa8c53dfde65d1ebc91e1f5af34fef..2e89d92e31a92b5e224157e3b3cfea6aff697438 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.4'
+
+install_requires = [
+    # -*- Extra requirements: -*-
+    "python-dateutil>=1.1",
+    ]
+
+def _py26OrGreater():
+    return sys.hexversion > 0x20600f0
+
+if not _py26OrGreater():
+    install_requires.append("simplejson>=1.7.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:
-
-  * 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
-
-""",
+      long_description=open("./README", "r").read(),
       # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
       classifiers=[
           "Development Status :: 5 - Production/Stable",
@@ -36,11 +40,7 @@ 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]