summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py61
1 files changed, 61 insertions, 0 deletions
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..f5dfbd2
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,61 @@
+import sys
+print "This setup.py is broken right now, it won't install a useable"
+print "WSGIKit right now. Instead, just add this directory to your"
+print "$PYTHONPATH variable. We apologize for any inconvenience."
+print "(Also note that you may want to run build-pkg to fetch some"
+print "modules this depends on, or at least that the tutorial depends"
+print "on)"
+sys.exit()
+
+from distutils.core import setup
+import warnings
+warnings.filterwarnings("ignore", "Unknown distribution option")
+
+import sys
+# patch distutils if it can't cope with the "classifiers" keyword
+if sys.version < '2.2.3':
+ from distutils.dist import DistributionMetadata
+ DistributionMetadata.classifiers = None
+ DistributionMetadata.download_url = None
+
+setup(name="WSGIKit",
+ version="0.1",
+ description="Tools for use with a Web Server Gateway Interface stack",
+ long_description="""\
+These provide several pieces of "middleware" that can be nested to build
+web applications. Each piece of middleware uses the WSGI (`PEP 333`_)
+interface, and should be compatible with other middleware based on those
+interfaces.
+
+.. _PEP 333: http://www.python.org/peps/pep-0333.html
+
+As an example (and a working implementation), a version Webware
+(http://webwareforpython.org) is included, built from these tools with
+wrappers to provide the Webware API on top of the middleware
+functionality.
+""",
+ classifiers=["Development Status :: 3 - Alpha",
+ "Intended Audience :: Developers",
+ "License :: OSI Approved :: Python Software Foundation License",
+ "Programming Language :: Python",
+ "Topic :: Internet :: WWW/HTTP",
+ "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
+ "Topic :: Software Development :: Libraries :: Python Modules",
+ ],
+ author="Ian Bicking",
+ author_email="ianb@colorstudy.com",
+ url="http://webwareforpython.org",
+ license="PSF",
+ packages=["wsgikit", "wsgikit.util", "wsgikit.webkit",
+ "wsgikit.exceptions",
+ "wsgikit.webkit.FakeWebware",
+ "wsgikit.webkit.FakeWebware.WebKit",
+ "wsgikit.webkit.FakeWebware.WebUtils",
+ "wsgikit.webkit.FakeWebware.MiscUtils"],
+ scripts=['scripts/server'],
+ download_url="")
+
+# Send announce to:
+# web-sig@python.org
+# python-announce@python.org
+# python-list@python.org