Skip to content

Commit

Permalink
Drop support for 'setup.py test'
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Nov 2, 2017
1 parent 3e1d0c2 commit 81dd5f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

- Docs are now hosted at https://zopeindex.readthedocs.io/

- Drop support for ``setup.py test``.

4.3.0 (2017-04-24)
==================
Expand Down
17 changes: 2 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
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

from setuptools import setup, find_packages, Extension

def read(*rnames):
with open(os.path.join(os.path.dirname(__file__), *rnames)) as f:
return f.read()
Expand Down Expand Up @@ -65,19 +66,6 @@ def _unavailable(self, e):
print(e, file=sys.stderr)
print('*' * 80, file=sys.stderr)

def alltests():
import unittest
# use the zope.testrunner machinery to find all the
# test suites we've put under ourselves
import zope.testrunner.find
import zope.testrunner.options
here = os.path.abspath(os.path.join(os.path.dirname(__file__), 'src'))
args = sys.argv[:]
defaults = ["--test-path", here]
options = zope.testrunner.options.get_options(args, defaults)
suites = list(zope.testrunner.find.find_suites(options))
return unittest.TestSuite(suites)

setup(name='zope.index',
version='4.4.0.dev0',
url='https://github.com/zopefoundation/zope.index',
Expand Down Expand Up @@ -128,7 +116,6 @@ def alltests():
'zope.interface'
],
tests_require=['zope.testrunner'],
test_suite='__main__.alltests',
ext_modules=[
Extension('zope.index.text.okascore',
[os.path.join('src', 'zope', 'index', 'text', 'okascore.c')]),
Expand Down

0 comments on commit 81dd5f6

Please sign in to comment.