Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit c520a26

Browse files
authored
Remove docs extra that breaks release (#277)
1 parent 95ef1b3 commit c520a26

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

model_card_toolkit/dependencies.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
'pytest': 'pytest',
3131
'tensorflow_data_validation': 'tensorflow-data-validation>=1.5.0,<2.0.0',
3232
'tensorflow_datasets': 'tensorflow-datasets>=4.8.2',
33-
'tensorflow_docs':
34-
'tensorflow-docs @ git+https://github.com/tensorflow/docs',
3533
'tensorflow_metadata': 'tensorflow-metadata>=1.5.0,<2.0.0',
3634
'tensorflow_model_analysis': 'tensorflow-model-analysis>=0.36.0,<0.42.0',
3735
'yapf': 'yapf',
@@ -44,8 +42,6 @@
4442
'protobuf', # working with model card protos
4543
]
4644

47-
_DOCS_EXTRA_DEPS = ['absl', 'tensorflow_docs']
48-
4945
_EXAMPLES_EXTRA_DEPS = [
5046
# Required for model_card_toolkit.documentation.examples.cats_vs_dogs
5147
'tensorflow_datasets',
@@ -90,11 +86,6 @@ def make_required_install_packages() -> List[str]:
9086
return _make_deps_list(_REQUIRED_DEPS)
9187

9288

93-
def make_extra_packages_docs() -> List[str]:
94-
"""Returns the list of packages needed for building documentation."""
95-
return _make_deps_list(_DOCS_EXTRA_DEPS)
96-
97-
9889
def make_extra_packages_examples() -> List[str]:
9990
"""Returns the list of packages needed for running examples."""
10091
return _make_deps_list(_EXAMPLES_EXTRA_DEPS)
@@ -122,8 +113,6 @@ def make_extra_packages_test() -> List[str]:
122113
return _make_deps_list(_TEST_EXTRA_DEPS)
123114

124115

125-
# NOTE: Omit `docs` dependencies from `all` since they're not necessary for
126-
# running all tests and to avoid dependency conflicts.
127116
def make_extra_packages_all() -> List[str]:
128117
"""Returns the list of all optional packages."""
129118
return [
@@ -136,7 +125,6 @@ def make_extra_packages_all() -> List[str]:
136125
def make_required_extra_packages() -> Dict[str, List[str]]:
137126
"""Returns the dict of required extra packages."""
138127
return {
139-
'docs': make_extra_packages_docs(),
140128
'examples': make_extra_packages_examples(),
141129
'tensorflow': make_extra_packages_tensorflow(),
142130
'test': make_extra_packages_test(),

0 commit comments

Comments
 (0)