[Zope3-checkins] CVS: Zope3 - setup.py:1.22

Jeremy Hylton jeremy@zope.com
Tue, 22 Apr 2003 12:10:25 -0400


Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv20471

Modified Files:
	setup.py 
Log Message:
Add classifiers for PyPI support.


=== Zope3/setup.py 1.21 => 1.22 ===
--- Zope3/setup.py:1.21	Thu Apr 17 11:58:51 2003
+++ Zope3/setup.py	Tue Apr 22 12:10:25 2003
@@ -12,7 +12,7 @@
 #
 ##############################################################################
 
-"""Zope application server, version 3
+"""Zope application server
 
 Zope is a leading open source application server, specializing in content
 management, portals, and custom applications.  Zope enables teams to
@@ -20,6 +20,18 @@
 applications such as intranets and portals.
 """
 
+classifiers = """\
+Development Status :: 3 - Alpha
+Environment :: Web Environment
+License :: OSI Approved :: Zope Public License
+Operating System :: Microsoft :: Windows
+Operating System :: Unix
+Programming Language :: Python
+Topic :: Internet :: WWW/HTTP
+Topic :: Internet :: WWW/HTTP :: Dynamic Content
+Topic :: Software Development :: Libraries :: Python Modules
+"""
+
 import os
 import sys
 
@@ -33,6 +45,13 @@
 from distutils.dist import Distribution
 from distutils.extension import Extension
 
+if sys.version_info < (2, 3):
+    _setup = setup
+    def setup(**kwargs):
+        if kwargs.has_key("classifiers"):
+            del kwargs["classifiers"]
+        _setup(**kwargs)
+
 
 # A hack to determine if Extension objects support the `depends' keyword arg,
 # which only exists in Python 2.3's distutils.
@@ -216,8 +235,8 @@
 # We're using the module docstring as the distutils descriptions.
 doclines = __doc__.split("\n")
 
-setup(name="Zope3",
-      version="3.0a1",
+setup(name="ZopeX3",
+      version="3.0m2",
       maintainer="Zope Corporation",
       maintainer_email="zope3-dev@zope.org",
       url = "http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture",
@@ -230,6 +249,7 @@
       license = "http://www.zope.org/Resources/ZPL",
       platforms = ["any"],
       description = doclines[0],
+      classifiers = filter(None, classifiers.split("\n")),
       long_description = "\n".join(doclines[2:]),
       packages = packages,
       package_dir = {'': 'src'},