qiboteam / qibocal

Quantum calibration, characterization and validation module for Qibo.

Home Page:https://qibo.science

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use Poetry in RTD

alecandido opened this issue · comments

These deps were specified in the following way:

qibocal/pyproject.toml

Lines 36 to 42 in 8decaec

# docs dependencies (for readthedocs, https://github.com/readthedocs/readthedocs.org/issues/4912#issuecomment-664002569)
Sphinx = { version = "^5.0.0", optional = true }
furo = { version = "^2023.3.27", optional = true }
sphinxcontrib-bibtex = { version = "^2.4.1", optional = true }
recommonmark = { version = "^0.7.1", optional = true }
sphinx_markdown_tables = { version = "^0.0.17", optional = true }
sphinx-copybutton = { version = "^0.5.1", optional = true }

just because of the cited limitation of RTD.

This limitation is not present any longer since a while.
https://docs.readthedocs.io/en/stable/build-customization.html#install-dependencies-with-poetry
So, we should just rely on the Poetry group,

qibocal/pyproject.toml

Lines 66 to 75 in 8decaec

[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
Sphinx = "^5.0.0"
furo = "^2023.3.27"
sphinxcontrib-bibtex = "^2.4.1"
recommonmark = "^0.7.1"
sphinx_markdown_tables = "^0.0.17"
sphinx-copybutton = "^0.5.2"

and drop the related extra.

qibocal/pyproject.toml

Lines 96 to 103 in 8decaec

docs = [
"sphinx",
"furo",
"sphinxcontrib-bibtex",
"recommonmark",
"sphinx_markdown_tables",
"sphinx-copybutton",
]

(btw, RTD is not even our main platform any longer)