Skip to content

Commit

Permalink
docs: Fix APIDataSet docstring (#220)
Browse files Browse the repository at this point in the history
* Fix APIDataSet docstring

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Add release notes

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Separate [docs] extras from [all] in kedro-datasets

Fix gh-143.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

---------

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
  • Loading branch information
astrojuanlu authored May 23, 2023
1 parent e21dfb4 commit 339de8d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
1 change: 1 addition & 0 deletions kedro-datasets/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Major features and improvements

## Bug fixes and other changes
* Fixed problematic docstrings causing Read the Docs builds on Kedro to fail.

## Community contributions

Expand Down
4 changes: 2 additions & 2 deletions kedro-datasets/kedro_datasets/api/api_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class APIDataSet(AbstractDataSet[None, requests.Response]):
>>> data = data_set.load()
``APIDataSet`` can also be used to save output on a remote server using HTTP(S)
methods.
methods. ::
>>> example_table = '{"col1":["val1", "val2"], "col2":["val3", "val4"]}'
Expand Down Expand Up @@ -116,7 +116,7 @@ def __init__(
Raises:
ValueError: if both ``auth`` and ``credentials`` are specified or used
unsupported RESTful API method.
unsupported RESTful API method.
"""
super().__init__()

Expand Down
22 changes: 11 additions & 11 deletions kedro-datasets/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,6 @@ def _collect_requirements(requires):
"biosequence": _collect_requirements(biosequence_require),
"dask": _collect_requirements(dask_require),
"databricks": _collect_requirements(databricks_require),
"docs": [
"docutils==0.16",
"sphinx~=3.4.3",
"sphinx_rtd_theme==0.4.1",
"nbsphinx==0.8.1",
"nbstripout~=0.4",
"sphinx-autodoc-typehints==1.11.1",
"sphinx_copybutton==0.3.1",
"ipykernel>=5.3, <7.0",
"myst-parser~=0.17.2",
],
"geopandas": _collect_requirements(geopandas_require),
"holoviews": _collect_requirements(holoviews_require),
"matplotlib": _collect_requirements(matplotlib_require),
Expand Down Expand Up @@ -128,6 +117,17 @@ def _collect_requirements(requires):
}

extras_require["all"] = _collect_requirements(extras_require)
extras_require["docs"] = [
"docutils==0.16",
"sphinx~=3.4.3",
"sphinx_rtd_theme==0.4.1",
"nbsphinx==0.8.1",
"nbstripout~=0.4",
"sphinx-autodoc-typehints==1.11.1",
"sphinx_copybutton==0.3.1",
"ipykernel>=5.3, <7.0",
"myst-parser~=0.17.2",
]

setup(
extras_require=extras_require,
Expand Down

0 comments on commit 339de8d

Please sign in to comment.