Skip to content

Commit

Permalink
Drop support for testing via setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
strichter committed Jun 14, 2019
1 parent c915532 commit 05eb56b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Expand Up @@ -5,6 +5,8 @@ CHANGES
3.7.0 (unreleased)
------------------

- Drop support for running tests using ``python setup.py test``.

- Drop Python 3.5 support.

- Extended ``<paraStyle>``:
Expand Down
16 changes: 0 additions & 16 deletions setup.py
Expand Up @@ -18,20 +18,6 @@
def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()

def alltests():
import os
import sys
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)

TESTS_REQUIRE = [
'Pillow',
Expand Down Expand Up @@ -93,8 +79,6 @@ def alltests():
'dtd = z3c.rml.dtd:main',
'reference = z3c.rml.reference:main'],
},
tests_require=TESTS_REQUIRE,
test_suite='__main__.alltests',
include_package_data=True,
zip_safe=False,
)

0 comments on commit 05eb56b

Please sign in to comment.