From 2e0ca39ca921df6a64c5a0bb59f6811ec0a1f81d Mon Sep 17 00:00:00 2001 From: Mahmoud Mazouz Date: Fri, 1 Mar 2024 15:00:54 +0100 Subject: [PATCH] feat: Build wheel in Read the Docs build --- .readthedocs.yml | 9 ++++----- docs/conf.py | 3 --- docs/requirements.txt | 3 --- 3 files changed, 4 insertions(+), 11 deletions(-) delete mode 100644 docs/requirements.txt diff --git a/.readthedocs.yml b/.readthedocs.yml index 02beda86..3b8ceb85 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -28,10 +28,9 @@ build: tools: python: "3.8" rust: "latest" - -# Build documentation with MkDocs -#mkdocs: -# configuration: mkdocs.yml + jobs: + pre_build: + - maturin develop --release # Optionally build your docs in additional formats such as PDF formats: @@ -40,4 +39,4 @@ formats: # Optionally set the version of Python and requirements required to build your docs python: install: - - requirements: docs/requirements.txt + - requirements: requirements-dev.txt diff --git a/docs/conf.py b/docs/conf.py index 11cb0d7c..466644c1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -23,9 +23,6 @@ # -- Project setup -------------------------------------------------------------- -# NOTE: as zenoh-python is developped in Rust, it must be compiled and install in Python environment -# in order to be imported here (and the Sphinx autodoc extension to load the doc from the compiled code) -# For readthedocs.org, zenoh-python is added in docs/requirements.txt so it get it from pypi.org import zenoh # -- Project information ----------------------------------------------------- diff --git a/docs/requirements.txt b/docs/requirements.txt deleted file mode 100644 index d300fc6d..00000000 --- a/docs/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -### NOTE: Read the Docs cannot build the Rust code, and thus is not able to import zenoh -### unless it's installed from pypi.org as a requirement -eclipse-zenoh == 0.11.0-dev