Browse Source

More distribution fixes: read version from version.txt, bump prospective version to 3.0a1, more copyright stuff.

Chris McDonough 18 years ago
parent
commit
4f4fbecdd5
3 changed files with 22 additions and 4 deletions
  1. 18 3
      setup.py
  2. 3 1
      src/supervisor/options.py
  3. 1 0
      src/supervisor/version.txt

+ 18 - 3
setup.py

@@ -1,3 +1,16 @@
+##############################################################################
+#
+# Copyright (c) 2007 Agendaless Consulting and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE
+#
+##############################################################################
 
 __revision__ = '$Id$'
 
@@ -34,14 +47,16 @@ CLASSIFIERS = [
     'Topic :: System :: Systems Administration',
     ]
 
+version_txt = os.path.join(here, 'src/supervisor/version.txt')
+supervisor_version = open(version_txt).read().strip()
+
 dist = setup(
     name = 'supervisor',
-    version = '2.3b1',
-    license = 'ZPL 2.0/BSD (see LICENSES.txt)',
+    version = '3.0a1',
+    license = 'ZPL 2.1/others (see LICENSES.txt)',
     url = 'http://www.plope.com/software/supervisor2',
     description = "A system for controlling process state under UNIX",
     long_description= DESC,
-    platform = 'UNIX',
     classifiers = CLASSIFIERS,
     author = "Chris McDonough",
     author_email = "chrism@plope.com",

+ 3 - 1
src/supervisor/options.py

@@ -37,7 +37,9 @@ from fcntl import F_SETFL, F_GETFL
 
 from supervisor import datatypes
 
-VERSION = '2.3b1'
+here = os.path.abspath(os.path.dirname(__file__))
+version_txt = os.path.join(here, 'version.txt')
+VERSION = open(version_txt).read().strip()
 
 class FileHandler(logging.StreamHandler):
     """File handler which supports reopening of logs.

+ 1 - 0
src/supervisor/version.txt

@@ -0,0 +1 @@
+3.0a1