diff --git a/.ci_support/check.py b/.ci_support/check.py index 7bab96df..a1f98da9 100644 --- a/.ci_support/check.py +++ b/.ci_support/check.py @@ -6,11 +6,12 @@ data = tomlkit.load(f) lst = list(data['build-system']['requires']) - for sub_lst in data["project"]["optional-dependencies"].values(): - for el in sub_lst: - lst.append(el) + for key, sub_lst in data["project"]["optional-dependencies"].items(): + if key != "docs": + for el in sub_lst: + lst.append(el) data["project"]["dependencies"] += list(set(lst)) with open("pyproject.toml", "w") as f: - f.writelines(tomlkit.dumps(data)) \ No newline at end of file + f.writelines(tomlkit.dumps(data)) diff --git a/.ci_support/environment-docs.yml b/.ci_support/environment-docs.yml deleted file mode 100644 index 4baff5ee..00000000 --- a/.ci_support/environment-docs.yml +++ /dev/null @@ -1,20 +0,0 @@ -channels: -- conda-forge -dependencies: -- flux-core -- hatchling =1.33.0 -- hatch-vcs =0.5.0 -- myst-parser -- nbsphinx -- numpy -- openmpi -- sphinx -- sphinxcontrib-mermaid -- sphinx_rtd_theme -- cloudpickle =3.1.3 -- h5py =3.16.0 -- jupyter-book =1.0.0 -- mpi4py =4.1.2 -- python =3.12 -- pydantic =2.14.4 -- pyzmq =27.3.0 diff --git a/.readthedocs.yml b/.readthedocs.yml index 2c9f00b2..031e8697 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -8,11 +8,10 @@ version: 2 build: os: "ubuntu-24.04" tools: - python: "mambaforge-23.11" + python: "3.14" jobs: pre_build: # Generate the Sphinx configuration for this Jupyter Book so it builds. - - pip install . --no-deps --no-build-isolation - "cp README.md docs" - "cp notebooks/*.ipynb docs" - "jupyter-book config sphinx docs/" @@ -25,6 +24,11 @@ sphinx: # Optionally build your docs in additional formats such as PDF and ePub formats: [] -# Install executorlib from conda -conda: - environment: .ci_support/environment-docs.yml +# Install executorlib from pypi +python: + install: + - method: uv + command: pip + path: . + extras: + - docs diff --git a/pyproject.toml b/pyproject.toml index 3a3cf7fd..cd460e90 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,6 +59,14 @@ cluster = [ validation = [ "pydantic==2.14.4", ] +docs = [ + "myst-parser", + "nbsphinx", + "sphinx", + "sphinx_rtd_theme", + "sphinxcontrib-mermaid", + "jupyter-book==1.0.0", +] all = [ "mpi4py==4.1.2", "pysqa==1.2.0",