Skip to content

Commit

Permalink
Modernize .readthedocs.yml (#130)
Browse files Browse the repository at this point in the history
* Drop `docs` environment, which is no longer necessary.
* Add explicit dependency to `typing_extensions` given `barril` depends on it.
  • Loading branch information
nicoddemus authored Sep 19, 2023
1 parent 630f59f commit e9a2f3b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
15 changes: 9 additions & 6 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
version: 2

build:
image: latest
os: ubuntu-22.04
tools:
python: "3.11"

sphinx:
configuration: docs/conf.py

python:
version: 3.6
setup_py_install: true
pip_install: true
extra_requirements:
- docs
install:
- path: .
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = "en"

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
with open("CHANGELOG.rst", encoding="UTF-8") as changelog_file:
history = changelog_file.read()

requirements = ["attrs>=18.1.0", "numpy>=1.11.0", "oop-ext>=1.1"]
requirements = ["attrs>=18.1.0", "numpy>=1.11.0", "oop-ext>=1.1", "typing_extensions"]
extras_require = {
"docs": ["sphinx >= 1.4", "sphinx_rtd_theme", "sphinx-autodoc-typehints", "typing_extensions"],
"testing": [
"codecov",
"data-science-types",
Expand Down

0 comments on commit e9a2f3b

Please sign in to comment.