From 22f752317668cb9e21a91d45a32b43d01126886b Mon Sep 17 00:00:00 2001 From: kushalkolar Date: Tue, 9 May 2023 12:10:31 -0400 Subject: [PATCH 1/2] use readthedocs.yaml for doc build --- .readthedocs.yaml | 21 +++++++++++++++++++++ requirements_rtd.txt | 6 ------ setup.py | 8 ++++++++ 3 files changed, 29 insertions(+), 6 deletions(-) create mode 100644 .readthedocs.yaml delete mode 100644 requirements_rtd.txt diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 000000000..b60905490 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,21 @@ +version: 2 + +build: + os: ubuntu-22.04 + tools: + python: "3.9" + apt_packages: + - libegl1-mesa + - libgl1-mesa-dri + - libxcb-xfixes0-dev + - mesa-vulkan-drivers + +sphinx: + configuration: docs/source/conf.py + +python: + install: + - method: pip + path: . + extra_requirements: + - docs diff --git a/requirements_rtd.txt b/requirements_rtd.txt deleted file mode 100644 index 14d59e156..000000000 --- a/requirements_rtd.txt +++ /dev/null @@ -1,6 +0,0 @@ -numpy -jupyterlab -jupyter_rfb -pygfx>=0.1.10 -pydata-sphinx-theme<0.10.0 -glfw diff --git a/setup.py b/setup.py index f671a59d6..50f62279f 100644 --- a/setup.py +++ b/setup.py @@ -10,6 +10,13 @@ ] +extras_require = { + "docs": [ + "sphinx", + "pydata-sphinx-theme<0.10.0" + ], +} + with open(Path(__file__).parent.joinpath("README.md")) as f: readme = f.read() @@ -37,6 +44,7 @@ author_email='', python_requires='>=3.8', install_requires=install_requires, + extras_require=extras_require, include_package_data=True, description='A fast plotting library built using the pygfx render engine' ) From 7ff67a0e264e90306d4b97ab59b38af09b2ff876 Mon Sep 17 00:00:00 2001 From: kushalkolar Date: Tue, 9 May 2023 12:20:42 -0400 Subject: [PATCH 2/2] add glfw, python3.11 --- .readthedocs.yaml | 3 ++- setup.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index b60905490..1de8fcd91 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -3,12 +3,13 @@ version: 2 build: os: ubuntu-22.04 tools: - python: "3.9" + python: "3.11" apt_packages: - libegl1-mesa - libgl1-mesa-dri - libxcb-xfixes0-dev - mesa-vulkan-drivers + - libglfw3 sphinx: configuration: docs/source/conf.py diff --git a/setup.py b/setup.py index 50f62279f..47b9b4877 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,8 @@ extras_require = { "docs": [ "sphinx", - "pydata-sphinx-theme<0.10.0" + "pydata-sphinx-theme<0.10.0", + "glfw" ], }