Skip to content

Commit c8415ac

Browse files
committed
Fix some doc build issues.
1 parent 7ea39c4 commit c8415ac

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
author = 'Ionel Cristian Mărieș'
2222
copyright = f'{year}, {author}'
2323
try:
24-
from pkg_resources import get_distribution
24+
from importlib import metadata
2525

26-
version = release = get_distribution('hunter').version
26+
version = release = metadata.version('hunter')
2727
except Exception:
2828
import traceback
2929

docs/configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Configuration
44

55
Default predicates and action kwargs defaults can be configured via a ``PYTHONHUNTERCONFIG`` environment variable.
66

7-
All the :ref:`actions <reference:actions>` kwargs:
7+
All the :ref:`actions` kwargs:
88

99
* ``klass``
1010
* ``stream``

docs/reference.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Reference
33

44
.. _helpers-summary:
55

6-
.. highlights:: :ref:`reference:Helpers`
6+
.. highlights:: :ref:`Helpers`
77

88
.. autosummary::
99

@@ -17,7 +17,7 @@ Reference
1717
hunter.Or
1818
hunter.Q
1919

20-
.. highlights:: :ref:`reference:Actions`
20+
.. highlights:: :ref:`Actions`
2121

2222
.. autosummary::
2323

@@ -36,7 +36,7 @@ Reference
3636
The following (Predicates and Internals) have Cython implementations in modules prefixed with "_".
3737
They should be imported from the ``hunter`` module, not ``hunter.something`` to be sure you get the best available implementation.
3838

39-
.. highlights:: :ref:`reference:Predicates`
39+
.. highlights:: :ref:`Predicates`
4040

4141
.. autosummary::
4242

@@ -48,7 +48,7 @@ Reference
4848
hunter.predicates.Query
4949
hunter.predicates.When
5050

51-
.. highlights:: :ref:`reference:Internals`
51+
.. highlights:: :ref:`Internals`
5252

5353
.. autosummary::
5454

tox.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ commands =
8686

8787
[testenv:docs]
8888
usedevelop = true
89-
install_command =
90-
python -m pip install --no-use-pep517 {opts} {packages}
9189
deps =
9290
-r{toxinidir}/docs/requirements.txt
9391
commands =

0 commit comments

Comments
 (0)