Skip to content

Commit c15d3ad

Browse files
Roman Donchenkoeldercrow
authored andcommitted
AC: Move the test requirement list to a file
The "setup.py test" command is deprecated (see pypa/setuptools#1878). I'd like to transition CI to running pytest directly, but for that, I need an easy way to install test dependencies. This provides such a way.
1 parent 906941f commit c15d3ad

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pytest==4.0.0
2+
pytest-mock==1.10.4

tools/accuracy_checker/setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ def find_version(*path):
6363
except ImportError:
6464
requirements.append('opencv-python')
6565

66-
tests_requirements = ['pytest==4.0.0', 'pytest-mock==1.10.4']
67-
6866
setup(
6967
name="accuracy_checker",
7068
description="Deep Learning Accuracy validation framework",
@@ -79,6 +77,6 @@ def find_version(*path):
7977
zip_safe=False,
8078
python_requires='>=3.5',
8179
install_requires=requirements,
82-
tests_require=tests_requirements,
80+
tests_require=[read("requirements-test.in")],
8381
cmdclass={'test': PyTest}
8482
)

0 commit comments

Comments
 (0)