[Modeling-cvs] ProjectModeling setup.py,1.34,1.35
Status: Abandoned
Brought to you by:
sbigaret
From: <sbi...@us...> - 2003-10-06 22:28:56
|
Update of /cvsroot/modeling/ProjectModeling In directory sc8-pr-cvs1:/tmp/cvs-serv3185 Modified Files: setup.py Log Message: Updated for PyPi Index: setup.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/setup.py,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** setup.py 13 Sep 2003 14:54:02 -0000 1.34 --- setup.py 6 Oct 2003 22:28:52 -0000 1.35 *************** *** 22,35 **** # #----------------------------------------------------------------------------- from distutils.core import setup import glob, os, sys - short_description="Modeling Framework" - long_description="Modeling: Object-Relational Bridge for python" - CHEETAH_COMPILE="cheetah-compile" templates='Modeling/ModelMasons/Python_bricks/*.tmpl' cheetah_compile_cmd='%s %s'%(CHEETAH_COMPILE, templates) # taken from python documentation-SIG's mkhowto.run() def compile_cheetah_template(command): --- 22,70 ---- # #----------------------------------------------------------------------------- + """The Modeling Framework is an Object-Relational Bridge for python + + The Modeling Framework fills the gap between the Python object world and + relational databases in that it allows users to transparently create, + retrieve, update, or delete Python objects from a database without having to + write a single line of SQL. Its main features include generation of database + schema, generation of Python code templates ready to be used, support for + transparent mapping of (class) inheritance in relational databases, + object-oriented query language, use of standard Python getters to traverse + relationships (the related objects are automatically fetched when needed and + when appropriate), and automatic checking for referential-integrity + constraints, etc. Supported databases are MySQL, Oracle, PostgreSQL, and + SQLite. + """ from distutils.core import setup import glob, os, sys CHEETAH_COMPILE="cheetah-compile" templates='Modeling/ModelMasons/Python_bricks/*.tmpl' cheetah_compile_cmd='%s %s'%(CHEETAH_COMPILE, templates) + # Instruction for PyPi found at: + # http://www.python.org/~jeremy/weblog/030924.html + classifiers = """\ + Development Status :: 4 - Beta + Intended Audience :: Developers + License :: OSI Approved :: GNU General Public License (GPL) + Operating System :: OS Independent + Programming Language :: Python + Topic :: Database :: Front-Ends + Topic :: Software Development :: Code Generators + Topic :: Software Development :: Libraries :: Application Frameworks + Topic :: Software Development :: Libraries :: Python Modules + """ + if sys.version_info < (2, 3): + _setup = setup + def setup(**kwargs): + if kwargs.has_key("classifiers"): + del kwargs["classifiers"] + _setup(**kwargs) + + doclines = __doc__.split("\n") + short_description = doclines[0] + long_description = "\n".join(doclines[2:]) + # taken from python documentation-SIG's mkhowto.run() def compile_cheetah_template(command): *************** *** 47,57 **** setup(name="ModelingCore", version="0.9-pre-15", ! licence ="GNU General Public License", description=short_description, author="Sébastien Bigaret", ! author_email="sbi...@us...", maintainer="Sebastien Bigaret", ! maintainer_email="sbi...@us...", url="http://modeling.sourceforge.net/", package_dir={'Modeling':'Modeling'}, packages=['Modeling', 'Modeling.interfaces', 'Modeling.utilities', --- 82,93 ---- setup(name="ModelingCore", version="0.9-pre-15", ! license ="GNU General Public License", description=short_description, author="Sébastien Bigaret", ! author_email="sbi...@us...", maintainer="Sebastien Bigaret", ! maintainer_email="sbi...@us...", url="http://modeling.sourceforge.net/", + classifiers = filter(None, classifiers.split("\n")), package_dir={'Modeling':'Modeling'}, packages=['Modeling', 'Modeling.interfaces', 'Modeling.utilities', *************** *** 70,71 **** --- 106,108 ---- 'Modeling/scripts/mdl_compile_model.py', ] ) + |