Skip to content

Commit

Permalink
trying to fix RTD build
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Luca van den Busch committed Jan 28, 2024
1 parent dda91fe commit 3109179
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-22.04
os: ubuntu-latest
tools:
python: "3.10"
python: "3.11"


# Build documentation in the docs/ directory with Sphinx
Expand Down
14 changes: 11 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@
# -- Path setup --------------------------------------------------------------

import os
import sys

sys.path.insert(0, os.path.abspath("../../"))
import balltree # noqa: E402
try:
try: # user has installed the package
import balltree
except ImportError: # try local package location
import sys

sys.path.insert(0, os.path.abspath("../.."))
import balltree
except ImportError as e:
if "core._math" in e.args[0]:
raise RuntimeError("balltree must be compiled") from e

# -- Project information -----------------------------------------------------

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ dependencies = [

[project.urls]
source = "https://github.com/jlvdb/balltree.git"
documentation = "https://balltree.readthedocs.io/"

[project.optional-dependencies]
test = [
Expand Down

0 comments on commit 3109179

Please sign in to comment.