Skip to content

Commit

Permalink
get rid of zope.index dependency, allow setup.py test to work by movi…
Browse files Browse the repository at this point in the history
…ng code with import-time side effects to benchmark dir, change license header
  • Loading branch information
mcdonc committed Jun 16, 2012
1 parent ec5b7d0 commit 458d9ac
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions hypatia/indexes/text/tests/test_index.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def _getBTreesFamily(self):
class CosineIndexTest64(IndexTestBase, unittest.TestCase): class CosineIndexTest64(IndexTestBase, unittest.TestCase):


def _getTargetClass(self): def _getTargetClass(self):
from zope.index.text.cosineindex import CosineIndex from hypatia.indexes.text.cosineindex import CosineIndex
return CosineIndex return CosineIndex


def _getBTreesFamily(self): def _getBTreesFamily(self):
Expand All @@ -207,7 +207,7 @@ def _getBTreesFamily(self):
class OkapiIndexTest64(IndexTestBase, unittest.TestCase): class OkapiIndexTest64(IndexTestBase, unittest.TestCase):


def _getTargetClass(self): def _getTargetClass(self):
from zope.index.text.okapiindex import OkapiIndex from hypatia.indexes.text.okapiindex import OkapiIndex
return OkapiIndex return OkapiIndex


def _getBTreesFamily(self): def _getBTreesFamily(self):
Expand Down
21 changes: 11 additions & 10 deletions setup.py
Original file line number Original file line Diff line number Diff line change
@@ -1,14 +1,14 @@
############################################################################## ##############################################################################
# #
# Copyright (c) 2008 Agendaless Consulting and Contributors. # Copyright (c) 2012 Zope Foundation and Contributors.
# All Rights Reserved. # All Rights Reserved.
# #
# This software is subject to the provisions of the BSD-like license at # This software is subject to the provisions of the Zope Public License,
# http://www.repoze.org/LICENSE.txt. A copy of the license should accompany # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# this distribution. THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# THE IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FITNESS FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE.
# #
############################################################################## ##############################################################################


Expand Down Expand Up @@ -52,16 +52,17 @@ def _unavailable(self, e):
print >> sys.stderr, e print >> sys.stderr, e
print >> sys.stderr, '*' * 80 print >> sys.stderr, '*' * 80




try: try:
here = os.path.abspath(os.path.dirname(__file__)) here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read() README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read() CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
except IOError: except IOError:
README = CHANGES = '' README = CHANGES = ''


install_requires = ['setuptools', 'zope.component', 'zope.index >= 3.5.0'] install_requires = [
'ZODB3>=3.8',
'zope.interface',
]


testing_extras = ['nose', 'coverage'] testing_extras = ['nose', 'coverage']
docs_extras = ['Sphinx'] docs_extras = ['Sphinx']
Expand Down

0 comments on commit 458d9ac

Please sign in to comment.