Skip to content

Commit 335bd40

Browse files
authored
Merge pull request #706 from iory/docs
[docs] Install latest setuptools for Read The Docs
2 parents 3fca6b9 + eb83226 commit 335bd40

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
python-version: 3.11
5454
- name: Install dependencies
5555
run: |
56-
python -m pip install --upgrade pip
56+
python -m pip install --upgrade pip setuptools
5757
pip install --no-cache-dir .\[all\]
5858
- name: Build Sphinx Documentation (HTML)
5959
working-directory: ./docs/source

docs/source/conf.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,18 @@
1212
# add these directories to sys.path here. If the directory is relative to the
1313
# documentation root, use os.path.abspath to make it absolute, like shown here.
1414
#
15+
from importlib.metadata import version as get_version
1516
import inspect
1617
import os
1718
import sys
1819

19-
import pkg_resources
20-
import sphinx_rtd_theme
21-
2220

2321
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
2422

2523
import _docstring_check
2624

2725

28-
__version__ = pkg_resources.get_distribution('scikit-robot').version
26+
__version__ = get_version('scikit-robot')
2927
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
3028
tag = 'main'
3129

0 commit comments

Comments
 (0)