From 1ed7d5364266aa8a1b0d2143b7e6f65bc6ace1a8 Mon Sep 17 00:00:00 2001 From: Plamen Dimitrov Date: Sat, 27 Apr 2024 00:54:44 +0800 Subject: [PATCH] Add RTD configuration file which is now required --- .readthedocs.yaml | 28 ++++++++++++++++++++++++++ packaging/pip_requirements_minimal.txt | 3 +++ 2 files changed, 31 insertions(+) create mode 100644 .readthedocs.yaml create mode 100644 packaging/pip_requirements_minimal.txt diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 00000000..0e3c4e2e --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,28 @@ +# .readthedocs.yaml +# 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-22.04 + tools: + python: "3.12" + +# Build documentation in the docs/api directory with Sphinx +sphinx: + configuration: docs/api/conf.py + fail_on_warning: true + +# Build docs in additional formats such as PDF and ePub +formats: all + +# Specify dependencies to enable reproducible builds: +# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html +python: + install: + - requirements: packaging/pip_requirements_minimal.txt + - method: pip + path: ./packaging/ diff --git a/packaging/pip_requirements_minimal.txt b/packaging/pip_requirements_minimal.txt new file mode 100644 index 00000000..75850e45 --- /dev/null +++ b/packaging/pip_requirements_minimal.txt @@ -0,0 +1,3 @@ +# minimal +Pillow==9.3.0; python_version >= '3.7' and python_version < '3.12' +Pillow==10.3.0; python_version >= '3.12'