Skip to content

Commit

Permalink
Correctly configure extras for ReadTheDocs
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Apr 16, 2021
1 parent d5e93de commit d1f8b7b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions repo_helper/files/docs.py
Expand Up @@ -199,7 +199,7 @@ def make_rtfd(repo_path: pathlib.Path, templates: jinja2.Environment) -> List[st

file = PathPlus(repo_path / ".readthedocs.yml")

docs_dir = PathPlus(repo_path / templates.globals['docs_dir'])
docs_dir = PathPlus(repo_path / templates.globals["docs_dir"])

sphinx_config = {
"builder": "html",
Expand All @@ -220,7 +220,7 @@ def make_rtfd(repo_path: pathlib.Path, templates: jinja2.Environment) -> List[st
install_config.append({
"method": "pip",
"path": '.',
"extra_requirements": templates.globals["tox_testenv_extras"],
"extra_requirements": [templates.globals["tox_testenv_extras"]],
})

else:
Expand Down
3 changes: 2 additions & 1 deletion tests/test_files/test_docs_/test_make_rtfd_case_1.yml
Expand Up @@ -15,4 +15,5 @@ python:
- requirements: doc-source/requirements.txt
- method: pip
path: .
extra_requirements: all
extra_requirements:
- all
3 changes: 2 additions & 1 deletion tests/test_files/test_docs_/test_make_rtfd_case_2.yml
Expand Up @@ -16,4 +16,5 @@ python:
- requirements: hello_world/submodule/requirements.txt
- method: pip
path: .
extra_requirements: all
extra_requirements:
- all

0 comments on commit d1f8b7b

Please sign in to comment.