setup.py :  » Web-Frameworks » Aquarium » aquarium-2.3 » Python Open Source

Home
Python Open Source
1.3.1.2 Python
2.Ajax
3.Aspect Oriented
4.Blog
5.Build
6.Business Application
7.Chart Report
8.Content Management Systems
9.Cryptographic
10.Database
11.Development
12.Editor
13.Email
14.ERP
15.Game 2D 3D
16.GIS
17.GUI
18.IDE
19.Installer
20.IRC
21.Issue Tracker
22.Language Interface
23.Log
24.Math
25.Media Sound Audio
26.Mobile
27.Network
28.Parser
29.PDF
30.Project Management
31.RSS
32.Search
33.Security
34.Template Engines
35.Test
36.UML
37.USB Serial
38.Web Frameworks
39.Web Server
40.Web Services
41.Web Unit
42.Wiki
43.Windows
44.XML
Python Open Source » Web Frameworks » Aquarium 
Aquarium » aquarium 2.3 » setup.py
#!/usr/bin/env python

"""This is the distutils setup.py script for Aquarium."""

__docformat__ = "restructuredtext"

# Created: Sat Jul 24 12:56:56 PDT 2004
# Author: Shannon -jj Behrens
# Email: jjinux@users.sourceforge.net
#
# Copyright (c) Shannon -jj Behrens.  All rights reserved.

import os
from distutils.core import setup
from distutils.sysconfig import get_python_lib


def appendPackages(packages, directory, files):
    """Append the directory to packages.

    Ignore CVS directories.  Use dots instead of slashes.

    """
    if os.path.basename(directory) == "CVS":
        return
    package = directory.replace(os.path.sep, ".")
    packages.append(package)


def appendTemplates(templatesDict, directory, files):
    """Create a mapping of directories to templates.

    templatesDict is a dict mapping each directory to a list of templates in
    that directory.  Ignore CVS directories.

    """
    if os.path.basename(directory) == "CVS":
        return
    for file in files:
        if not file.endswith(".tmpl"):
            continue
        toDirectory = os.path.join(python_lib, directory)
        file = os.path.join(directory, file)
        if not templatesDict.has_key(toDirectory):
            templatesDict[toDirectory] = []
        templatesDict[toDirectory].append(file)


packages = []
for package in ["aquarium", "glass"]:
    os.path.walk(package, appendPackages, packages)

python_lib = get_python_lib()
templatesDict = {}
os.path.walk("aquarium", appendTemplates, templatesDict)
data_files = templatesDict.items()

setup(
    name='aquarium',
    version=open('VERSION').read().rstrip().replace("_", ".")[len("RELEASE_"):],
    description='Web Application Framework',
    author='Shannon -jj Behrens',
    author_email='jjinux@users.sourceforge.net',
    url='http://aquarium.sourceforge.net/',
    packages=packages,
    scripts=['tools/FreezeSite'],
    data_files=data_files,

    long_description="""\
Aquarium is a Web application framework written in Python.  It provides an
approach to producing a Web application without duplication of effort by
reducing the amount of code you need to write.  It offers convenient libraries
and extensible APIs for items such as session management and Web server
integration including CGI, mod_python, FastCGI, or its own Web server, Glass.
It provides tight integration with Cheetah including autocompilation of Cheetah
templates.  Last of all, it offers a convenient approach to Web development
inspired by FreeTrade.  As a developer, you just "plug in" modules; Aquarium
ties them all together.""",

    download_url='http://sourceforge.net/project/showfiles.php?group_id=5453&package_id=5495',

    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: No Input/Output (Daemon)',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
        'Topic :: Internet :: WWW/HTTP :: HTTP Servers',
        'Topic :: Software Development :: Libraries :: Application Frameworks',
        'Topic :: Software Development :: Libraries :: Python Modules'
    ]
)
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.