Skip to content

Commit 94be369

Browse files
committed
infra: remove TF from optional dependencies
1 parent 0f5c9b5 commit 94be369

File tree

3 files changed

+1
-29
lines changed

3 files changed

+1
-29
lines changed

doc/conf.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,34 +14,7 @@
1414
from __future__ import absolute_import
1515

1616
import pkg_resources
17-
import sys
1817
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)
4518

4619
project = u"sagemaker"
4720
version = pkg_resources.require(project)[0].version

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ def read_version():
5151
"docker-compose>=1.25.2",
5252
"PyYAML>=5.3, <6", # PyYAML version has to match docker-compose requirements
5353
],
54-
"tensorflow": ["tensorflow>=1.3.0"],
5554
"scipy": ["scipy>=0.19.0"],
5655
}
5756
# Meta dependency groups

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ passenv =
6363
# Can be used to specify which tests to run, e.g.: tox -- -s
6464
commands =
6565
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
6767
extras = test
6868

6969
[testenv:flake8]

0 commit comments

Comments
 (0)