Skip to content

Commit 08c2945

Browse files
committed
Correctly declare unittest2 dependency
1 parent 69b55c9 commit 08c2945

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
with open('VERSION', 'r') as v:
66
__version__ = v.read().rstrip()
77

8+
89
class Tox(Command):
910

1011
user_options = []
@@ -15,7 +16,8 @@ def initialize_options(self):
1516
def finalize_options(self):
1617
pass
1718

18-
def run(self):
19+
@classmethod
20+
def run(cls):
1921
import tox
2022
sys.exit(tox.cmdline([]))
2123

@@ -24,7 +26,7 @@ def run(self):
2426
name="kafka-python",
2527
version=__version__,
2628

27-
tests_require=["tox", "mock"],
29+
tests_require=["tox", "mock", "unittest2"],
2830
cmdclass={"test": Tox},
2931

3032
packages=["kafka"],

0 commit comments

Comments
 (0)