1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-18 20:11:20 +00:00

statedetect: pylint and dependencies fixes

- Corrected the depency for opencv bindings. Even though the library is
  imported as "cv2", the package containing it is called
  "opencv-python".
- pylint: ignore no-member warnings; cv2 pulls it's memebers dynamically
  from the underlying libopencv, so pylint can't see them.
This commit is contained in:
Sergei Trofimov 2016-11-04 17:05:39 +00:00
parent 2becd94381
commit f12cf6d557
2 changed files with 3 additions and 2 deletions

View File

@ -80,7 +80,7 @@ params = dict(
], ],
extras_require={ extras_require={
'other': ['jinja2', 'pandas>=0.13.1'], 'other': ['jinja2', 'pandas>=0.13.1'],
'statedetect': ['numpy', 'imutils', 'cv2'], 'statedetect': ['numpy', 'imutils', 'opencv-python'],
'test': ['nose'], 'test': ['nose'],
'mongodb': ['pymongo'], 'mongodb': ['pymongo'],
'notify': ['notify2'], 'notify': ['notify2'],

View File

@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# #
# pylint: disable=no-member
""" """
@ -20,7 +21,7 @@ Requires a 'statedetection' directory in the workload directory that includes th
and the 'templates' folder with PNGs of all templates mentioned in the yaml file. and the 'templates' folder with PNGs of all templates mentioned in the yaml file.
Requires the following Python libraries: Requires the following Python libraries:
numpy, pyyaml (yaml), imutils and opencv (cv2) numpy, pyyaml (yaml), imutils and opencv-python
""" """