Massimiliano Torromeo avatar 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
+)

simpledaemon/base.py

 python application on Unix systems.
 """
 
-VERSION = (1,0,1)
-
 import ConfigParser
 import errno
 import grp
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.