Skip to content

Commit cbe91fa

Browse files
authored
Merge pull request #251 from wpoely86/mock
drop mock requirement
2 parents 9a74642 + 2561cf6 commit cbe91fa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/vsc/install/shared_setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def _log(self, level, msg, args):
195195

196196
RELOAD_VSC_MODS = False
197197

198-
VERSION = '0.21.4'
198+
VERSION = '0.21.5'
199199

200200
log.info('This is (based on) vsc.install.shared_setup %s', VERSION)
201201
log.info('(using setuptools version %s located at %s)', setuptools.__version__, setuptools.__file__)
@@ -1539,11 +1539,9 @@ def parse_target(self, target, urltemplate=None):
15391539
# - https://github.com/PyCQA/flake8/blob/3.9.2/setup.cfg
15401540
# - https://github.com/PyCQA/prospector/blob/1.5.3.1/pyproject.toml
15411541
# To figure out requirements of what needs what: grep name_of_tool .eggs.py3/*/*/requires.txt
1542-
tests_requires.extend([
1543-
'mock',
1544-
])
15451542
if sys.version_info < (3, 7):
15461543
tests_requires.extend([
1544+
'mock', # part of Python core since 3.3
15471545
'pyflakes~=2.3.0',
15481546
'pycodestyle~=2.7.0',
15491547
'pylint~=2.12.2',
@@ -1781,7 +1779,9 @@ def main():
17811779
f'setuptools < {MAX_SETUPTOOLS_VERSION}',
17821780
]
17831781

1784-
install_requires.append('mock')
1782+
# mock is part of Python standard library now
1783+
if sys.version_info < (3, 7):
1784+
install_requires.append('mock')
17851785

17861786
PACKAGE = {
17871787
'version': VERSION,

0 commit comments

Comments
 (0)