[Checkins] SVN: zope.ucol/trunk/ Created buildout for testing zope.ucol and made pypi release.

Jim Fulton jim at zope.com
Mon Oct 16 06:40:27 EDT 2006


Log message for revision 70678:
  Created buildout for testing zope.ucol and made pypi release.
  

Changed:
  U   zope.ucol/trunk/INSTALL.txt
  U   zope.ucol/trunk/README.txt
  A   zope.ucol/trunk/buildout.cfg
  U   zope.ucol/trunk/setup.py
  _U  zope.ucol/trunk/src/zope/

-=-
Modified: zope.ucol/trunk/INSTALL.txt
===================================================================
--- zope.ucol/trunk/INSTALL.txt	2006-10-16 10:40:24 UTC (rev 70677)
+++ zope.ucol/trunk/INSTALL.txt	2006-10-16 10:40:26 UTC (rev 70678)
@@ -1,8 +1,11 @@
-zope.ucol is install via setup.py in the usual way.
+Installation
+************
 
+zope.ucol is installed via setup.py in the usual way.
+
 You must have ICU installed.  If ICU isn't installed in the usual
 places for include files and libraries on your system, you can provide
-command-line options to setup.py when building the extensions, as in:
+command-line options to setup.py when building the extensions, as in::
 
  python2.4 setup.py build_ext \
    -I/home/jim/p/z4i/jim-icu/var/opt/icu/include \

Modified: zope.ucol/trunk/README.txt
===================================================================
--- zope.ucol/trunk/README.txt	2006-10-16 10:40:24 UTC (rev 70677)
+++ zope.ucol/trunk/README.txt	2006-10-16 10:40:26 UTC (rev 70678)
@@ -1,12 +1,8 @@
+*************************************
 Locale-based text collation using ICU
+*************************************
 
-See the docstring in the zope.ucol package for usage information.
+This package provides a Python interface to the `International
+Component for Unicode (ICU)
+<http://www-306.ibm.com/software/globalization/icu/index.jsp>`_.
 
-See INSTALL.txt for instalation instructions.
-
-The C extension in this package was created with PyRex.  (Pyrex
-rocks!) PyRex isn't required to use the C Extension, as the pre-built
-C extension is included in this distribution. In addition, the C
-extension was hand edited to remove some excess code included by Pyrex
-that can cause compiler warnings. Hopefully, future versions of Pyrex
-will make this unnecessary.

Added: zope.ucol/trunk/buildout.cfg
===================================================================
--- zope.ucol/trunk/buildout.cfg	2006-10-16 10:40:24 UTC (rev 70677)
+++ zope.ucol/trunk/buildout.cfg	2006-10-16 10:40:26 UTC (rev 70678)
@@ -0,0 +1,36 @@
+# This is a bit awkward. We can't build zope.ucol as a develop egg as
+# we normally would becase:
+#
+# 1. We need to build icu first
+#
+# 2. We need to pass build_ext options.
+# 
+# We don't have the machinery we need to automate this yet. :(
+# For now, we need to manually create an sdist and build zope.ucol
+# with the custom recipe.  It would help a lot of setup develop
+# accepted build_ext options.
+#
+# Maybe we should just write a special recipe that build zope.ucol
+# manually.
+
+
+[buildout]
+develop = icu
+parts = icu zope.ucol test
+
+[icu]
+recipe = zc.recipe.icu
+version = 3.2
+
+[zope.ucol]
+find-links = dist
+index = dist
+recipe = zc.recipe.egg:custom
+egg = zope.ucol
+include-dirs = ${buildout:directory}/parts/icu/include
+library-dirs = ${buildout:directory}/parts/icu/lib
+rpath = ${buildout:directory}/parts/icu/lib
+
+[test]
+recipe = zc.recipe.testrunner
+eggs = zope.ucol


Property changes on: zope.ucol/trunk/buildout.cfg
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: zope.ucol/trunk/setup.py
===================================================================
--- zope.ucol/trunk/setup.py	2006-10-16 10:40:24 UTC (rev 70677)
+++ zope.ucol/trunk/setup.py	2006-10-16 10:40:26 UTC (rev 70678)
@@ -19,13 +19,46 @@
 import sys
 from distutils.core import setup, Extension
 
+try:
+    from setuptools import setup, Extension
+except:
+    setuptools_options = {}
+else:
+    setuptools_options = dict(
+        zip_safe = False,
+        include_package_data = True,
+        )
+
+def read(*rnames):
+    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+
 if sys.platform.startswith('win'):
     libraries = ['icuin', 'icuuc', 'icudt']
 else:
     libraries=['icui18n', 'icuuc', 'icudata']
 
-setup(name='zope.ucol',
+name = 'zope.ucol'
+setup(name=name,
       version='1.0',
+      author = "Jim Fulton",
+      author_email = "jim at zope.com",
+      description = "Python access to ICU text collation",
+      long_description=(
+        read('README.txt')
+        + '\n' +
+        read('INSTALL.txt')
+        + '\n' +
+        'Detailed Documentation\n'
+        '**********************\n'
+        + '\n' +
+        read('src', 'zope', 'ucol', 'README.txt')
+        + '\n' +
+        'Download\n'
+        '**********************\n'
+        ),
+      license = "ZPL 2.1",
+      keywords = "internationalization",
+      url = 'http://www.python.org/pypi/zope.ucol',
       ext_modules=[
           Extension('zope.ucol._zope_ucol',
                     ['src/zope/ucol/_zope_ucol.c'],
@@ -34,4 +67,12 @@
           ],
       packages=["zope", "zope.ucol"],
       package_dir = {'': 'src'},
-      )
+      classifiers = [
+       'Development Status :: 5 - Production/Stable',
+       'Intended Audience :: Developers',
+       'License :: OSI Approved :: Zope Public License',
+       'Topic :: Software Development :: Libraries :: Python Modules',
+       'Topic :: Software Development :: Internationalization',
+       ],
+
+      **setuptools_options)


Property changes on: zope.ucol/trunk/src/zope
___________________________________________________________________
Name: svn:externals
   - testing -r40511 svn://svn.zope.org/repos/main/zope.testing/trunk/src/zope/testing

   + 




More information about the Checkins mailing list