Skip to content

Commit c107dd3

Browse files
committed
setup: fix 'setup.py test' with new setuptools changes, fix surt==0.2
1 parent d98c1f6 commit c107dd3

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

setup.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@
2020

2121

2222
class PyTest(TestCommand):
23+
user_options = []
24+
def initialize_options(self):
25+
self._argv = []
26+
pass
27+
2328
def finalize_options(self):
24-
TestCommand.finalize_options(self)
25-
self.test_suite = True
29+
pass
2630

2731
def run_tests(self):
2832
import pytest
@@ -31,7 +35,9 @@ def run_tests(self):
3135
os.environ.pop('PYWB_CONFIG_FILE', None)
3236
cmdline = ' --cov-config .coveragerc --cov pywb'
3337
cmdline += ' -v --doctest-module ./pywb/ tests/'
38+
3439
errcode = pytest.main(cmdline)
40+
3541
sys.exit(errcode)
3642

3743
setup(
@@ -74,7 +80,7 @@ def run_tests(self):
7480
'requests',
7581
'redis',
7682
'jinja2',
77-
'surt',
83+
'surt==0.2',
7884
'pyyaml',
7985
'watchdog',
8086
'webencodings',

0 commit comments

Comments
 (0)