diff --git a/.readthedocs.yml b/.readthedocs.yml new file mode 100644 index 0000000000..2976a31dd5 --- /dev/null +++ b/.readthedocs.yml @@ -0,0 +1,49 @@ +# SPDX-FileCopyrightText: Contributors to the Fedora Project +# +# SPDX-License-Identifier: MIT + +# .readthedocs.yml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Required +version: 2 + +# Build documentation in the docs/ directory with Sphinx +sphinx: + configuration: docs/conf.py + +# Set the version of Python and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.10" + apt_packages: + - libkrb5-dev + - python3-rpm + jobs: + # post_create_environment: + # # Install poetry + # # https://python-poetry.org/docs/#installing-manually + # - pip install poetry + # # Tell poetry to not use a virtual environment + # - poetry config virtualenvs.create false + post_install: + - python -c "import bodhi.server" + - python -c "import bodhi.server.models" + # commands: + # - ./devel/ci/bodhi-ci docs -r pip + # - mv test_results/pip-docs/html/ $READTHEDOCS_OUTPUT/ + +python: + install: + - method: pip + path: ./bodhi-client + - method: pip + path: ./bodhi-messages + - method: pip + path: ./bodhi-server + +# Optionally build your docs in additional formats such as PDF and ePub +formats: + - htmlzip