|
4 | 4 | import codecs |
5 | 5 | import os |
6 | 6 | import re |
7 | | -import sys |
8 | 7 |
|
9 | 8 | from setuptools import setup |
10 | | -from setuptools.command.test import test as TestCommand |
11 | | - |
12 | | - |
13 | | -class ToxTestCommand(TestCommand): |
14 | | - |
15 | | - """Test command which runs tox under the hood.""" |
16 | | - |
17 | | - user_options = [("tox-args=", "a", "Arguments to pass to tox")] |
18 | | - |
19 | | - def initialize_options(self): |
20 | | - """Initialize options and set their defaults.""" |
21 | | - TestCommand.initialize_options(self) |
22 | | - self.tox_args = "--recreate" |
23 | | - |
24 | | - def finalize_options(self): |
25 | | - """Add options to the test runner (tox).""" |
26 | | - TestCommand.finalize_options(self) |
27 | | - self.test_args = [] |
28 | | - self.test_suite = True |
29 | | - |
30 | | - def run_tests(self): |
31 | | - """Invoke the test runner (tox).""" |
32 | | - # import here, cause outside the eggs aren't loaded |
33 | | - import tox |
34 | | - import shlex |
35 | | - |
36 | | - errno = tox.cmdline(args=shlex.split(self.tox_args)) |
37 | | - sys.exit(errno) |
38 | 9 |
|
39 | 10 |
|
40 | 11 | dirname = os.path.dirname(__file__) |
@@ -72,9 +43,8 @@ def run_tests(self): |
72 | 43 | "Programming Language :: Python :: 2", |
73 | 44 | "Programming Language :: Python :: 3", |
74 | 45 | ] |
75 | | - + [("Programming Language :: Python :: %s" % x) for x in "2.7 3.4 3.5 3.6 3.7".split()], |
76 | | - cmdclass={"test": ToxTestCommand}, |
77 | | - install_requires=["glob2", "Mako", "parse", "parse_type", "py", "pytest>=3.0.0", "six>=1.9.0"], |
| 46 | + + [("Programming Language :: Python :: %s" % x) for x in "2.7 3.5 3.6 3.7 3.8".split()], |
| 47 | + install_requires=["glob2", "Mako", "parse", "parse_type", "py", "pytest>=3.6.0", "six>=1.9.0"], |
78 | 48 | # the following makes a plugin available to py.test |
79 | 49 | entry_points={ |
80 | 50 | "pytest11": ["pytest-bdd = pytest_bdd.plugin"], |
|
0 commit comments