Skip to content

Commit

Permalink
Fix the Readthedocs build
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Bompard <[email protected]>
  • Loading branch information
abompard committed Jan 25, 2024
1 parent 1327a77 commit 2547e99
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2547e99

Please sign in to comment.