Commits

Massimiliano Torromeo committed 7029c03

Modified setup.py to automatically call 2to3 and updated trove categories.
This makes the library installable with easy_install on python3.

Comments (0)

Files changed (2)

-from distutils.core import setup
+import sys
 
-import simpledaemon
+from setuptools import setup
+
+# if we are running on python 3, enable 2to3 and
+# let it use the custom fixers from the custom_fixers
+# package.
+extra = {}
+if sys.version_info >= (3, 0):
+    extra.update( use_2to3 = True )
 
 setup(
     name='SimpleDaemon',
-    version='.'.join(map(str, simpledaemon.VERSION)),
+    version='1.0.1',
     author="Shane Hathaway",
     author_email = "shane@hathawaymix.org",
     maintainer="Don Spaulding",
         'Development Status :: 5 - Production/Stable',
         'License :: OSI Approved :: MIT License',
         'Operating System :: POSIX',
+        'Programming Language :: Python',
+        'Programming Language :: Python :: 3',
     ],
-)
+    **extra
+)
 python application on Unix systems.
 """
 
-VERSION = (1,0,1)
-
 import ConfigParser
 import errno
 import grp