Skip to content

Commit

Permalink
Merge pull request #633 from qulacs/update-stub-pre-doc-build
Browse files Browse the repository at this point in the history
Update stub before documentation build
  • Loading branch information
ikanago committed Apr 18, 2024
2 parents 4bc1dc5 + e8cd3ef commit 853db0c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ build:
apt_packages:
- cmake
- libboost-dev
jobs:
pre_build:
- ./script/update_stubs.sh

python:
install:
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,11 @@ ci = [
]

doc = [
"mypy",
"pybind11-stubgen",
"sphinx==7.*",
"sphinx-rtd-theme",
"breathe",
#"exhale@git+https://github.com/svenevs/exhale.git@fix/packaging-requirements", # workaround until https://github.com/svenevs/exhale/pull/205 is merged
"exhale",
"nbsphinx",
"myst-parser",
Expand Down
4 changes: 0 additions & 4 deletions script/update_stubs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,3 @@ stubgen -p qulacs_core -o typings
pybind11-stubgen qulacs_core --root-suffix '' --numpy-array-remove-parameters -o './typings'
cp -R typings/qulacs_core/* pysrc/qulacs/
find pysrc/ -name __init__.pyi | sed -e 's/__init__.pyi/py.typed/' | xargs touch

# FIXME: format
python -m black pysrc
python -m isort pysrc

0 comments on commit 853db0c

Please sign in to comment.