diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 8915bd8..d5fda5f 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -10,20 +10,23 @@ build: os: ubuntu-22.04 tools: python: "3.10" - # You can also specify other tool versions: - # nodejs: "19" - # rust: "1.64" - # golang: "1.19" + jobs: + post_create_environment: + # Install poetry + # https://python-poetry.org/docs/#installing-manually + - pip install poetry + # Tell poetry to not use a virtual environment + - poetry config virtualenvs.create false + post_install: + # Install dependencies with 'docs' dependency group + # https://python-poetry.org/docs/managing-dependencies/#dependency-groups + - poetry install --with docs # Build documentation in the docs/ directory with Sphinx sphinx: - configuration: docs/source/conf.py - + configuration: docs/source/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/docs/requirements.txt b/docs/requirements.txt deleted file mode 100644 index 2b5ecd6..0000000 --- a/docs/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -Sphinx -sphinx-copybutton -sphinx-rtd-theme -myst-parser -panoptica \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index aaf1ba2..915848c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,10 @@ +[build-system] +requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"] +build-backend = "poetry_dynamic_versioning.backend" + +[tool.poetry-dynamic-versioning] +enable = true + [tool.poetry] name = "panoptica" version = "0.0.0" @@ -9,10 +16,6 @@ documentation = "https://panoptica.readthedocs.io/" readme = "README.md" -[tool.poetry-dynamic-versioning] -enable = true - - # Add the exclude field directly under [tool.poetry] exclude = ["examples", "benchmark"] @@ -27,7 +30,11 @@ pytest = "^6.2.5" pytest-cov = "^3.0.0" pytest-mock = "^3.6.0" -[build-system] -requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"] -build-backend = "poetry_dynamic_versioning.backend" -# build-backend = "poetry.core.masonry.api" +[tool.poetry.group.docs] +optional = true + +[tool.poetry.group.docs.dependencies] +Sphinx = ">=7.0.0" +sphinx-copybutton = ">=0.5.2" +sphinx-rtd-theme = ">=1.3.0" +myst-parser = ">=2.0.0" \ No newline at end of file