Skip to content

Commit

Permalink
Merge pull request #197 from nzw0301/use-python-312-for-sphinx
Browse files Browse the repository at this point in the history
Follow recent changes in `optuna/optuna`'s document sphinx config
  • Loading branch information
c-bata authored Jan 28, 2025
2 parents f0384b8 + e77f309 commit 374954e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sphinx-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.12

- name: Install Dependencies
run: |
Expand Down
5 changes: 3 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
# import sys
# sys.path.insert(0, os.path.abspath('.'))

import pkg_resources
from importlib.metadata import version


__version__ = pkg_resources.get_distribution("optuna-integration").version
__version__ = version("optuna-integration")

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

Expand All @@ -42,6 +42,7 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
"notfound.extension",
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx.ext.doctest",
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ document = [
"scikit-learn>=0.24.2",
"scipy>=1.9.2; python_version>='3.8'",
"sphinx",
"sphinx-notfound-page",
"sphinx_rtd_theme",
]
allennlp = [
Expand Down

0 comments on commit 374954e

Please sign in to comment.