Skip to content

Commit

Permalink
Fix build on RTD with dynamic version
Browse files Browse the repository at this point in the history
  • Loading branch information
lucc committed Aug 13, 2024
1 parent 7a9ca79 commit 6eb0041
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ build:
os: ubuntu-22.04
tools:
python: "3.12"
apt_packages:
- libmagic # for python-magic
jobs:
# remove and mock problematic dependencies
pre_install:
- sed -i '/gpg/d;/notmuch2/d' pyproject.toml
- touch gpg.py
- echo NullPointerError = NotmuchError = None > notmuch2.py
# make the git state clean again for setuptools_scm
post_install:
- git checkout pyproject.toml

# Build documentation in the "docs/" directory with Sphinx
sphinx:
Expand Down

0 comments on commit 6eb0041

Please sign in to comment.