File tree 3 files changed +2
-29
lines changed
3 files changed +2
-29
lines changed Original file line number Diff line number Diff line change 14
14
from __future__ import absolute_import
15
15
16
16
import pkg_resources
17
- import sys
18
17
from datetime import datetime
19
- from unittest .mock import MagicMock
20
-
21
-
22
- class Mock (MagicMock ):
23
- @classmethod
24
- def __getattr__ (cls , name ):
25
- """
26
- Args:
27
- name:
28
- """
29
- if name == "__version__" :
30
- return "1.4.0"
31
- else :
32
- return MagicMock ()
33
-
34
-
35
- MOCK_MODULES = [
36
- "tensorflow" ,
37
- "tensorflow.core" ,
38
- "tensorflow.core.framework" ,
39
- "tensorflow.python" ,
40
- "tensorflow.python.framework" ,
41
- "tensorflow_serving" ,
42
- "tensorflow_serving.apis" ,
43
- ]
44
- sys .modules .update ((mod_name , Mock ()) for mod_name in MOCK_MODULES )
45
18
46
19
project = u"sagemaker"
47
20
version = pkg_resources .require (project )[0 ].version
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ def read_version():
35
35
# Declare minimal set for installation
36
36
required_packages = [
37
37
"boto3>=1.13.6" ,
38
+ "google-pasta" ,
38
39
"numpy>=1.9.0" ,
39
40
"protobuf>=3.1" ,
40
41
"protobuf3-to-dict>=0.1.5" ,
@@ -51,7 +52,6 @@ def read_version():
51
52
"docker-compose>=1.25.2" ,
52
53
"PyYAML>=5.3, <6" , # PyYAML version has to match docker-compose requirements
53
54
],
54
- "tensorflow" : ["tensorflow>=1.3.0" ],
55
55
"scipy" : ["scipy>=0.19.0" ],
56
56
}
57
57
# Meta dependency groups
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ passenv =
63
63
# Can be used to specify which tests to run, e.g.: tox -- -s
64
64
commands =
65
65
coverage run --source sagemaker -m pytest {posargs}
66
- {env:IGNORE_COVERAGE:} coverage report --fail-under =86 --omit */tensorflow/tensorflow_serving/*
66
+ {env:IGNORE_COVERAGE:} coverage report --fail-under =86
67
67
extras = test
68
68
69
69
[testenv:flake8]
You can’t perform that action at this time.
0 commit comments