Skip to content

Commit

Permalink
AC: Move the test requirement list to a file
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Roman Donchenko authored and eldercrow committed Feb 18, 2020
1 parent 906941f commit c15d3ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions tools/accuracy_checker/requirements-test.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pytest==4.0.0
pytest-mock==1.10.4
4 changes: 1 addition & 3 deletions tools/accuracy_checker/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ def find_version(*path):
except ImportError:
requirements.append('opencv-python')

tests_requirements = ['pytest==4.0.0', 'pytest-mock==1.10.4']

setup(
name="accuracy_checker",
description="Deep Learning Accuracy validation framework",
Expand All @@ -79,6 +77,6 @@ def find_version(*path):
zip_safe=False,
python_requires='>=3.5',
install_requires=requirements,
tests_require=tests_requirements,
tests_require=[read("requirements-test.in")],
cmdclass={'test': PyTest}
)

0 comments on commit c15d3ad

Please sign in to comment.