[Checkins] SVN: z3c.sqlalchemy/trunk/setup.py Windoof compatibility fixes (tnx to Philikon)

Andreas Jung andreas at andreas-jung.com
Sun Apr 15 10:02:46 EDT 2007


Log message for revision 74150:
  Windoof compatibility fixes (tnx to Philikon)
  

Changed:
  U   z3c.sqlalchemy/trunk/setup.py

-=-
Modified: z3c.sqlalchemy/trunk/setup.py
===================================================================
--- z3c.sqlalchemy/trunk/setup.py	2007-04-15 10:47:02 UTC (rev 74149)
+++ z3c.sqlalchemy/trunk/setup.py	2007-04-15 14:02:45 UTC (rev 74150)
@@ -1,5 +1,16 @@
+##########################################################################
+# z3c.sqlalchemy - A SQLAlchemy wrapper for Python/Zope
+#
+# (C) Zope Corporation and Contributor
+# Written by Andreas Jung for Haufe Mediengruppe, Freiburg, Germany
+# and ZOPYX Ltd. & Co. KG, Tuebingen, Germany
+##########################################################################
+
+
+import os
 from setuptools import setup, find_packages
 
+
 CLASSIFIERS = [
     'Development Status :: 3 - Alpha',
     'Intended Audience :: Developers',
@@ -10,8 +21,12 @@
     'Topic :: Software Development :: Libraries :: Python Modules',
 ]
 
-version=open('src/z3c/sqlalchemy/version.txt').read()
+version_file = os.path.join('src', 'z3c', 'sqlalchemy', 'version.txt')
+version = open(version_file).read()
 
+readme_file = os.path.join('src', 'z3c', 'sqlalchemy', 'README.txt')
+long_description = open(readme_file).read()
+
 setup(name='z3c.sqlalchemy',
       version=version,
       license='ZPL (see LICENSE.txt)',
@@ -22,7 +37,7 @@
       classifiers=CLASSIFIERS,
       url='http://svn.zope.org/z3c.sqlalchemy/tags/%s' % version,
       description='A SQLAlchemy wrapper for Zope 2 and Zope 3',
-      long_description=open('src/z3c/sqlalchemy/README.txt').read(),
+      long_description=long_description,
       packages=find_packages('src'),
       package_dir = {'': 'src'},
       include_package_data = True,



More information about the Checkins mailing list