[Checkins] SVN: zope.index/trunk/ Moved to GitHub.

Stephen Richter cvs-admin at zope.org
Mon Feb 25 01:37:49 UTC 2013


Log message for revision 129757:
  Moved to GitHub.

Changed:
  D   zope.index/trunk/CHANGES.txt
  D   zope.index/trunk/COPYRIGHT.txt
  D   zope.index/trunk/LICENSE.txt
  A   zope.index/trunk/MOVED_TO_GITHUB
  D   zope.index/trunk/README.txt
  D   zope.index/trunk/bootstrap.py
  D   zope.index/trunk/buildout.cfg
  D   zope.index/trunk/setup.cfg
  D   zope.index/trunk/setup.py
  D   zope.index/trunk/src/

-=-
Deleted: zope.index/trunk/CHANGES.txt
===================================================================
--- zope.index/trunk/CHANGES.txt	2013-02-25 01:27:50 UTC (rev 129756)
+++ zope.index/trunk/CHANGES.txt	2013-02-25 01:37:49 UTC (rev 129757)
@@ -1,149 +0,0 @@
-Changes
-=======
-
-4.0.0 (unreleased)
-------------------
-
-- Replaced deprecated ``zope.interface.implements`` usage with equivalent
-  ``zope.interface.implementer`` decorator.
-
-- Dropped support for Python 2.4 and 2.5.
-
-3.6.4 (2012-03-12)
-------------------
-
-- Insure proper unindex behavior if index_doc is called with a empty sequence.
-
-- Use the standard Python doctest module instead of zope.testing.doctest
-
-3.6.3 (2011-12-03)
-------------------
-
-- KeywordIndex: Minor optimization; use __nonzero__ instead of __len__
-  to avoid loading the full TreeSet.
-
-3.6.2 (2011-12-03)
-------------------
-
-- KeywordIndex: Store docids in TreeSet rather than a Set when the
-  number of documents matching a word reaches a configurable
-  threshold (default 64). The rule is applied to individual words at
-  indexing time, but you can call the new optimize method to optimize
-  all the words in an index at once. Designed to fix LP #881950.
-
-3.6.1 (2010-07-08)
-------------------
-
-- TextIndex:  reuse the lexicon from the underlying Okapi / Cosine
-  index, if passed.  (LP #232516)
-
-- Lexicon:  avoid raising an exception when indexing None. (LP #598776)
-
-3.6.0 (2009-08-03)
-------------------
-
-- Improved test readability and reached 100% test coverage.
-
-- Fixed a broken optimization in okascore.c: it was passing a Python
-  float to the PyInt_AS_LONG() macro. This resulted in wrong scores,
-  especially on 64 bit platforms, where all scores typically ended up
-  being zero.
-
-- Changed okascore.c to produce the same results as its Python
-  equivalent, reducing the brittleness of the text index tests.
-
-3.5.2 (2009-06-09)
-------------------
-
-- Port okascore.c optimization used in okapiiindex from Zope2 catalog
-  implementation.  This module is compiled conditionally, based on
-  whether your environment has a working C compiler.
-
-- Don't use ``len(self._docweight)`` in okapiindex _search_wids method
-  (obtaining the length of a BTree is very expensive at scale).
-  Instead use self.documentCount().  Also a Zope2 port.
-
-3.5.1 (2009-02-27)
-------------------
-
-- The baseindex, okapiindex, and lexicon used plain counters for various
-  lengths, which is unsuitable for production applications.
-  Backport code from Zope2 indexes which opportunistically replaces the
-  counters with BTree.Length objects.
-
-- Backport non-insane version of baseindex._del_wordinfo from
-  Zope2 text index.  This improves deletion performance by
-  several orders of magnitude.
-
-- Don't modify given query dictionary in the KeywordIndex.apply method.
-
-- Move FieldIndex's sorting functionality to a mixin class so it can
-  be reused by zc.catalog's ValueIndex.
-
-3.5.0 (2008-12-30)
-------------------
-
-- Remove zope.testing from dependencies, as it's not really needed.
-
-- Define IIndexSort interface for indexes that support sorting.
-
-- Implement sorting for FieldIndex (adapted from repoze.catalog/ZCatalog).
-
-- Add an ``apply`` method for KeywordIndex/TopicIndex, making them
-  implement IIndexSearch that can be useful in catalog.
-
-- Optimize the ``search`` method of KeywordIndex/TopicIndex by using
-  multiunion for the ``or`` operator and sorting before intersection for ``and``.
-
-- IMPORTANT: KeywordIndex/TopicIndex now use IFSets instead of IISets.
-  This makes it more compatible with other indexes (for example, when
-  using in catalog). This change can lead to problems, if your code somehow
-  depends on the II nature of sets, as it was before.
-  
-  Also, FilteredSets used to use IFSets as well, if you have any
-  FilteredSets pickled in the database, you need to migrate them to
-  IFSets yourself. You can do it like that:
-  
-      filter._ids = filter.family.IF.Set(filter._ids)
-  
-  Where ``filter`` is an instance of FilteredSet.
-
-- IMPORTANT: KeywordIndex are now non-normalizing. Because
-  it can be useful for non-string keywords, where case-normalizing
-  doesn't make any sense. Instead, it provides the ``normalize``
-  method that can be overriden by subclasses to provide some
-  normalization.
-  
-  The CaseInsensitiveKeywordIndex class is now provided that
-  do case-normalization for string-based keywords. The old
-  CaseSensitiveKeywordIndex is gone, applications should use
-  KeywordIndex for that.
-
-Looks like the KeywordIndex/TopicIndex was sort of abadonware
-and wasn't used by application developers, so after some
-discussion we decided to refactor them to make them more
-usable, optimal and compatible with other indexes and catalog.
-
-Porting application from old KeywordIndex/TopicIndex to new
-ones are rather easy and explained above, so we believe that
-it isn't a problem. Please, use zope3-users at zope.org or
-zope-dev at zope.org mailing lists, if you have any problems
-with migration.
-
-Thanks Chris McDonough of repoze for supporting and useful code.
-
-3.4.1 (2007-09-28)
-------------------
-
-- Fixed bug in package metadata (wrong homepage URL).
-
-3.4.0 (2007-09-28)
-------------------
-
-No further changes since 3.4.0a1.
-
-3.4.0a1 (2007-04-22)
---------------------
-
-Initial release as a separate project, corresponds to zope.index from
-Zope 3.4.0a1

Deleted: zope.index/trunk/COPYRIGHT.txt
===================================================================
--- zope.index/trunk/COPYRIGHT.txt	2013-02-25 01:27:50 UTC (rev 129756)
+++ zope.index/trunk/COPYRIGHT.txt	2013-02-25 01:37:49 UTC (rev 129757)
@@ -1 +0,0 @@
-Zope Foundation and Contributors
\ No newline at end of file

Deleted: zope.index/trunk/LICENSE.txt
===================================================================
--- zope.index/trunk/LICENSE.txt	2013-02-25 01:27:50 UTC (rev 129756)
+++ zope.index/trunk/LICENSE.txt	2013-02-25 01:37:49 UTC (rev 129757)
@@ -1,44 +0,0 @@
-Zope Public License (ZPL) Version 2.1
-
-A copyright notice accompanies this license document that identifies the
-copyright holders.
-
-This license has been certified as open source. It has also been designated as
-GPL compatible by the Free Software Foundation (FSF).
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions in source code must retain the accompanying copyright
-notice, this list of conditions, and the following disclaimer.
-
-2. Redistributions in binary form must reproduce the accompanying copyright
-notice, this list of conditions, and the following disclaimer in the
-documentation and/or other materials provided with the distribution.
-
-3. Names of the copyright holders must not be used to endorse or promote
-products derived from this software without prior written permission from the
-copyright holders.
-
-4. The right to distribute this software or to use it for any purpose does not
-give you the right to use Servicemarks (sm) or Trademarks (tm) of the
-copyright
-holders. Use of them is covered by separate agreement with the copyright
-holders.
-
-5. If any files are modified, you must cause the modified files to carry
-prominent notices stating that you changed the files and the date of any
-change.
-
-Disclaimer
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
-OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
-EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Added: zope.index/trunk/MOVED_TO_GITHUB
===================================================================
--- zope.index/trunk/MOVED_TO_GITHUB	                        (rev 0)
+++ zope.index/trunk/MOVED_TO_GITHUB	2013-02-25 01:37:49 UTC (rev 129757)
@@ -0,0 +1 @@
+See https://github.com/zopefoundation/zope.index
\ No newline at end of file

Deleted: zope.index/trunk/README.txt
===================================================================
--- zope.index/trunk/README.txt	2013-02-25 01:27:50 UTC (rev 129756)
+++ zope.index/trunk/README.txt	2013-02-25 01:37:49 UTC (rev 129757)
@@ -1,13 +0,0 @@
-Overview
---------
-
-The ``zope.index`` package provides several indices for the Zope
-catalog.  These include:
-
-* a field index (for indexing orderable values),
-
-* a keyword index,
-
-* a topic index,
-
-* a text index (with support for lexicon, splitter, normalizer, etc.)

Deleted: zope.index/trunk/bootstrap.py
===================================================================
--- zope.index/trunk/bootstrap.py	2013-02-25 01:27:50 UTC (rev 129756)
+++ zope.index/trunk/bootstrap.py	2013-02-25 01:37:49 UTC (rev 129757)
@@ -1,50 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2006 Zope Foundation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-"""Bootstrap a buildout-based project
-
-Simply run this script in a directory containing a buildout.cfg.
-The script accepts buildout command-line options, so you can
-use the -c option to specify an alternate configuration file.
-"""
-
-import os, shutil, sys, tempfile, urllib2
-
-tmpeggs = tempfile.mkdtemp()
-
-ez = {}
-exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
-                     ).read() in ez
-ez['use_setuptools'](to_dir=tmpeggs, download_delay=0)
-
-import pkg_resources
-
-cmd = 'from setuptools.command.easy_install import main; main()'
-if sys.platform == 'win32':
-    cmd = '"%s"' % cmd # work around spawn lamosity on windows
-
-ws = pkg_resources.working_set
-assert os.spawnle(
-    os.P_WAIT, sys.executable, sys.executable,
-    '-c', cmd, '-mqNxd', tmpeggs, 'zc.buildout',
-    dict(os.environ,
-         PYTHONPATH=
-         ws.find(pkg_resources.Requirement.parse('setuptools')).location
-         ),
-    ) == 0
-
-ws.add_entry(tmpeggs)
-ws.require('zc.buildout')
-import zc.buildout.buildout
-zc.buildout.buildout.main(sys.argv[1:] + ['bootstrap'])
-shutil.rmtree(tmpeggs)

Deleted: zope.index/trunk/buildout.cfg
===================================================================
--- zope.index/trunk/buildout.cfg	2013-02-25 01:27:50 UTC (rev 129756)
+++ zope.index/trunk/buildout.cfg	2013-02-25 01:37:49 UTC (rev 129757)
@@ -1,23 +0,0 @@
-[buildout]
-develop = .
-parts = test coverage-test coverage-report python
-
-[test]
-recipe = zc.recipe.testrunner
-eggs = zope.index [test]
-
-[coverage-test]
-recipe = zc.recipe.testrunner
-eggs = zope.index [test]
-defaults = ['--coverage', '../../coverage']
-
-[coverage-report]
-recipe = zc.recipe.egg
-eggs = z3c.coverage
-scripts = coverage=coverage-report
-arguments = ('coverage', 'coverage/report')
-
-[python]
-recipe = zc.recipe.egg
-eggs = zope.index
-interpreter = python

Deleted: zope.index/trunk/setup.cfg
===================================================================
--- zope.index/trunk/setup.cfg	2013-02-25 01:27:50 UTC (rev 129756)
+++ zope.index/trunk/setup.cfg	2013-02-25 01:37:49 UTC (rev 129757)
@@ -1,5 +0,0 @@
-[nosetests]
-nocapture=1
-with-coverage=1
-cover-erase=1
-cover-package=zope.index

Deleted: zope.index/trunk/setup.py
===================================================================
--- zope.index/trunk/setup.py	2013-02-25 01:27:50 UTC (rev 129756)
+++ zope.index/trunk/setup.py	2013-02-25 01:37:49 UTC (rev 129757)
@@ -1,98 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2006 Zope Foundation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-# This package is developed by the Zope Toolkit project, documented here:
-# http://docs.zope.org/zopetoolkit
-# When developing and releasing this package, please follow the documented
-# Zope Toolkit policies as described by this documentation.
-##############################################################################
-"""Setup for zope.index package
-"""
-import sys
-import os
-
-from setuptools import setup, find_packages, Extension
-from distutils.command.build_ext import build_ext
-from distutils.errors import CCompilerError
-from distutils.errors import DistutilsExecError
-from distutils.errors import DistutilsPlatformError
-
-long_description = (open('README.txt').read() +
-                    '\n\n' +
-                    open('CHANGES.txt').read())
-
-class optional_build_ext(build_ext):
-    """This class subclasses build_ext and allows
-       the building of C extensions to fail.
-    """
-    def run(self):
-        try:
-            build_ext.run(self)
-        
-        except DistutilsPlatformError, e:
-            self._unavailable(e)
-
-    def build_extension(self, ext):
-       try:
-           build_ext.build_extension(self, ext)
-        
-       except (CCompilerError, DistutilsExecError), e:
-           self._unavailable(e)
-
-    def _unavailable(self, e):
-        print >> sys.stderr, '*' * 80
-        print >> sys.stderr, """WARNING:
-
-        An optional code optimization (C extension) could not be compiled.
-
-        Optimizations for this package will not be available!"""
-        print >> sys.stderr
-        print >> sys.stderr, e
-        print >> sys.stderr, '*' * 80
-
-setup(name='zope.index',
-      version='4.0.0dev',
-      url='http://pypi.python.org/pypi/zope.index',
-      license='ZPL 2.1',
-      author='Zope Foundation and Contributors',
-      author_email='zope-dev at zope.org',
-      description="Indices for using with catalog like text, field, etc.",
-      long_description=long_description,
-      classifiers=[
-        'Development Status :: 5 - Production/Stable',
-        'Intended Audience :: Developers',
-        'License :: OSI Approved :: Zope Public License',
-        'Programming Language :: Python',
-        'Programming Language :: Python :: 2',
-        'Programming Language :: Python :: 2.6',
-        'Programming Language :: Python :: 2.7',
-        'Natural Language :: English',
-        'Operating System :: OS Independent',
-        'Topic :: Internet :: WWW/HTTP',
-        'Topic :: Software Development',
-        ],
-      packages=find_packages('src'),
-      package_dir = {'': 'src'},
-      namespace_packages=['zope',],
-      extras_require={'test': []},
-      install_requires=['setuptools',
-                        'ZODB3>=3.8',
-                        'zope.interface'],
-      include_package_data = True,
-      ext_modules=[
-          Extension('zope.index.text.okascore',
-              [os.path.join('src', 'zope', 'index', 'text', 'okascore.c')]),
-      ],
-      zip_safe=False,
-      cmdclass = {'build_ext':optional_build_ext},
-      )



More information about the checkins mailing list