mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 06:59:52 +01:00
setup: fix 'setup.py test' with new setuptools changes, fix surt==0.2
This commit is contained in:
parent
d98c1f6cf7
commit
c107dd3af1
12
setup.py
12
setup.py
@ -20,9 +20,13 @@ long_description = open('README.rst').read()
|
|||||||
|
|
||||||
|
|
||||||
class PyTest(TestCommand):
|
class PyTest(TestCommand):
|
||||||
|
user_options = []
|
||||||
|
def initialize_options(self):
|
||||||
|
self._argv = []
|
||||||
|
pass
|
||||||
|
|
||||||
def finalize_options(self):
|
def finalize_options(self):
|
||||||
TestCommand.finalize_options(self)
|
pass
|
||||||
self.test_suite = True
|
|
||||||
|
|
||||||
def run_tests(self):
|
def run_tests(self):
|
||||||
import pytest
|
import pytest
|
||||||
@ -31,7 +35,9 @@ class PyTest(TestCommand):
|
|||||||
os.environ.pop('PYWB_CONFIG_FILE', None)
|
os.environ.pop('PYWB_CONFIG_FILE', None)
|
||||||
cmdline = ' --cov-config .coveragerc --cov pywb'
|
cmdline = ' --cov-config .coveragerc --cov pywb'
|
||||||
cmdline += ' -v --doctest-module ./pywb/ tests/'
|
cmdline += ' -v --doctest-module ./pywb/ tests/'
|
||||||
|
|
||||||
errcode = pytest.main(cmdline)
|
errcode = pytest.main(cmdline)
|
||||||
|
|
||||||
sys.exit(errcode)
|
sys.exit(errcode)
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
@ -74,7 +80,7 @@ setup(
|
|||||||
'requests',
|
'requests',
|
||||||
'redis',
|
'redis',
|
||||||
'jinja2',
|
'jinja2',
|
||||||
'surt',
|
'surt==0.2',
|
||||||
'pyyaml',
|
'pyyaml',
|
||||||
'watchdog',
|
'watchdog',
|
||||||
'webencodings',
|
'webencodings',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user