Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Attempting to do a local build without library dependencies for RTD
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Dec 19, 2023
1 parent 96d36e5 commit 448105f
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ build:
jobs:
pre_build:
- ford fortran_docs.md
- CIBW_TEST_SKIP="*linux*" CIBW_BUILD="cp311-*" cibuildwheel --platform linux .
- pip install wheelhouse/swiftest*.whl
python:
install:
- method: pip
path: .
extra_requirements:
- docs
- requirements: docs/requirements.txt
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

import swiftest

autodoc_mock_imports = ['swiftest._bindings']

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
project = 'Swiftest'
Expand Down
3 changes: 1 addition & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ sphinxext-rediraffe
sphinxext-opengraph
nbsphinx
ipython
ford
cibuildwheel
ford
17 changes: 16 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,19 @@ CMAKE_INSTALL_LIBDIR="lib"
[[tool.scikit-build.generate]]
path = "version.txt"
location = "source"
template = '''${version}'''
template = '''${version}'''

[project.optional-dependencies]
docs = [
"sphinx",
"sphinx-autosummary-accessors",
"sphinx-book-theme >= 0.3.0",
"sphinx-copybutton",
"sphinx-design",
"sphinx-inline-tabs",
"sphinxext-rediraffe",
"sphinxext-opengraph",
"nbsphinx",
"ipython",
"ford",
]

0 comments on commit 448105f

Please sign in to comment.