Skip to content

Commit

Permalink
Merge pull request #270 from NNPDF/rtd-poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido authored May 19, 2023
2 parents 67fa988 + 44d0a94 commit 0994336
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 18 deletions.
16 changes: 7 additions & 9 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,31 +1,29 @@
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-20.04 # is required: see https://github.com/readthedocs/readthedocs.org/issues/8912
os: ubuntu-22.04
tools:
python: "3.10"
apt_packages:
- graphviz
jobs:
post_create_environment:
- pip install poetry
- poetry config virtualenvs.create false
post_install:
- poetry install --with docs

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: doc/source/conf.py

# Optionally build your docs in additional formats such as PDF
# formats:
# - pdf

# Optionally set requirements required to build your docs
python:
install:
- method: pip
path: .
extra_requirements:
- docs
- mark
- box
9 changes: 0 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ scipy = "^1.10.1"
PyYAML = "^6.0"
lz4 = "^4.0.2"
numba = "^0.57.0"
# docs dependencies (for readthedocs, https://github.com/readthedocs/readthedocs.org/issues/4912#issuecomment-664002569)
Sphinx = { version = "^4.3.2", optional = true }
sphinx-rtd-theme = { version = "^1.0.0", optional = true }
sphinxcontrib-bibtex = { version = "^2.4.1", optional = true }
nbsphinx = { version = "^0.8.8", optional = true }
# ekomark
banana-hep = { version = "^0.6.8", optional = true }
sqlalchemy = { version = "^1.4.21", optional = true }
Expand All @@ -74,9 +69,6 @@ pytest-cov = "4.0.0"
pytest-env = "^0.6.2"
pylint = "^2.12.2"

[tool.poetry.group.dev]
optional = true

[tool.poetry.group.dev.dependencies]
pdbpp = "^0.10.3"
ipython = "^8.0"
Expand All @@ -86,7 +78,6 @@ virtualenv = "^20.13.2"
devtools = "^0.10.0"

[tool.poetry.extras]
docs = ["sphinx", "sphinx-rtd-theme", "sphinxcontrib-bibtex", "nbsphinx"]
mark = ["banana-hep", "sqlalchemy", "pandas", "matplotlib"]
box = ["rich"]

Expand Down

0 comments on commit 0994336

Please sign in to comment.