| 1 |
#!/usr/bin/env python |
|---|
| 2 |
# |
|---|
| 3 |
# sAsync: |
|---|
| 4 |
# An enhancement to the SQLAlchemy package that provides persistent |
|---|
| 5 |
# dictionaries, text indexing and searching, and an access broker for |
|---|
| 6 |
# conventiently managing database access, table setup, and |
|---|
| 7 |
# transactions. Everything can be run in an asynchronous fashion using the |
|---|
| 8 |
# Twisted framework and its deferred processing capabilities. |
|---|
| 9 |
# |
|---|
| 10 |
# Copyright (C) 2006-2007 by Edwin A. Suominen, http://www.eepatents.com |
|---|
| 11 |
# |
|---|
| 12 |
# This program is free software; you can redistribute it and/or modify it under |
|---|
| 13 |
# the terms of the GNU General Public License as published by the Free Software |
|---|
| 14 |
# Foundation; either version 2 of the License, or (at your option) any later |
|---|
| 15 |
# version. |
|---|
| 16 |
# |
|---|
| 17 |
# This program is distributed in the hope that it will be useful, but WITHOUT |
|---|
| 18 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
|---|
| 19 |
# FOR A PARTICULAR PURPOSE. See the file COPYING for more details. |
|---|
| 20 |
# |
|---|
| 21 |
# You should have received a copy of the GNU General Public License along with |
|---|
| 22 |
# this program; if not, write to the Free Software Foundation, Inc., 51 |
|---|
| 23 |
# Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA |
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
NAME = "sAsync" |
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
### Imports and support |
|---|
| 30 |
import ez_setup |
|---|
| 31 |
ez_setup.use_setuptools() |
|---|
| 32 |
from setuptools import setup |
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 |
### Define requirements |
|---|
| 36 |
required = ['SQLAlchemy>=0.3', 'AsynQueue'] |
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 |
### Define setup options |
|---|
| 40 |
kw = {'version':'0.7', |
|---|
| 41 |
'license':'GPL', |
|---|
| 42 |
'platforms':'OS Independent', |
|---|
| 43 |
|
|---|
| 44 |
'url':"http://foss.eepatents.com/%s/" % NAME, |
|---|
| 45 |
'author':'Edwin A. Suominen', |
|---|
| 46 |
'author_email':'ed@eepatents.com', |
|---|
| 47 |
|
|---|
| 48 |
'maintainer':'Edwin A. Suominen', |
|---|
| 49 |
'maintainer_email':'ed@eepatents.com', |
|---|
| 50 |
|
|---|
| 51 |
'install_requires':required, |
|---|
| 52 |
'packages':['sasync'], |
|---|
| 53 |
|
|---|
| 54 |
'zip_safe':True |
|---|
| 55 |
} |
|---|
| 56 |
|
|---|
| 57 |
kw['keywords'] = [ |
|---|
| 58 |
'SQL', 'SQLAlchemy', 'Twisted', 'asynchronous', |
|---|
| 59 |
'persist', 'persistence', 'persistent', |
|---|
| 60 |
'object oriented', 'ORM', 'database', 'graph'] |
|---|
| 61 |
|
|---|
| 62 |
kw['classifiers'] = [ |
|---|
| 63 |
'Development Status :: 5 - Production/Stable', |
|---|
| 64 |
'Intended Audience :: Developers', |
|---|
| 65 |
'License :: OSI Approved :: GNU General Public License (GPL)', |
|---|
| 66 |
'Operating System :: OS Independent', |
|---|
| 67 |
'Programming Language :: Python', |
|---|
| 68 |
'Programming Language :: SQL', |
|---|
| 69 |
'Topic :: Database', |
|---|
| 70 |
'Topic :: Software Development :: Libraries :: Python Modules', |
|---|
| 71 |
] |
|---|
| 72 |
|
|---|
| 73 |
kw['description'] = " ".join(""" |
|---|
| 74 |
SQLAlchemy done Asynchronously, with a convenient transacting database access |
|---|
| 75 |
broker and persistent dictionaries, arrays, and graphs. |
|---|
| 76 |
""".split("\n")) |
|---|
| 77 |
|
|---|
| 78 |
kw['long_description'] = " ".join(""" |
|---|
| 79 |
An enhancement to the SQLAlchemy package that provides asynchronous, |
|---|
| 80 |
deferred-result access via the Twisted framework and an access broker that |
|---|
| 81 |
conveniently managing database access, table setup, and transactions. Included |
|---|
| 82 |
are modules for implementing persistent dictionaries, three-dimensional arrays, |
|---|
| 83 |
and graph objects. |
|---|
| 84 |
""".split("\n")) |
|---|
| 85 |
|
|---|
| 86 |
### Finally, run the setup |
|---|
| 87 |
setup(name=NAME, **kw) |
|---|