From e9a2f3bbf7490a4ab58cf8f4d6fc647505d45240 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Tue, 19 Sep 2023 09:52:47 -0300 Subject: [PATCH] Modernize .readthedocs.yml (#130) * Drop `docs` environment, which is no longer necessary. * Add explicit dependency to `typing_extensions` given `barril` depends on it. --- .readthedocs.yml | 15 +++++++++------ docs/conf.py | 2 +- setup.py | 3 +-- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 59b1133..8bec8b5 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -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: . diff --git a/docs/conf.py b/docs/conf.py index 4ed29a2..7a60526 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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. diff --git a/setup.py b/setup.py index 42b0bd5..d516ec5 100644 --- a/setup.py +++ b/setup.py @@ -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",