diff --git a/.readthedocs.yaml b/.readthedocs.yaml index d8bd319..6624af5 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -9,23 +9,15 @@ version: 2 build: os: ubuntu-22.04 tools: - python: "3.9" - jobs: - post_create_environment: - - pip install poetry==1.2.1 - - poetry config virtualenvs.create false - post_install: - - poetry install -E docs + python: "3.11" + +python: + install: + - method: pip + path: . + extra_requirements: + - docs # Build documentation in the docs/ directory with Sphinx sphinx: configuration: docs/conf.py - -# If using Sphinx, optionally build your docs in additional formats such as PDF -# formats: -# - pdf - -## Optionally declare the Python requirements required to build your docs -#python: -# install: -# - requirements: docs/requirements.txt diff --git a/pyproject.toml b/pyproject.toml index 8f5dcbc..642d7cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,7 @@ +[build-system] +requires = ["poetry-core>=1.1.0"] +build-backend = "poetry.core.masonry.api" + [tool.poetry] name = "derivative" version = "0.6.2" @@ -22,24 +26,20 @@ scikit-learn = "^1" importlib-metadata = "^7.1.0" # docs -sphinx = {version = "^5", optional = true} -nbsphinx = {version = "^0.6.1", optional = true} -ipykernel = {version = "^5.2.1", optional = true} -jupyter_client = {version = "^6.1.3", optional = true} +sphinx = {version = "7.2.6", optional = true} +nbsphinx = {version = "^0.9.5", optional = true} matplotlib = {version = "^3.2.1", optional = true} -#pandoc = {version = "^2.2", optional = true} +ipython = {version = "^8.0.0, !=8.7.0", optional = true} + # dev asv = {version = "^0.6", optional = true} -pytest = {version = "^7", optional = true} +pytest = {version = ">=7", optional = true} [tool.poetry.extras] -docs = ["sphinx", "nbsphinx", "ipykernel", "jupyter_client", "matplotlib", "pandoc"] +docs = ["sphinx", "nbsphinx", "matplotlib"] dev = ["asv", "pytest"] -[build-system] -requires = ["poetry-core>=1.1.0"] -build-backend = "poetry.core.masonry.api" [tool.poetry.plugins.'derivative.hyperparam_opt'] "kalman.default" = "derivative.utils:_default_kalman"