File tree Expand file tree Collapse file tree 4 files changed +7
-9
lines changed
Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 2121author = 'Ionel Cristian Mărieș'
2222copyright = f'{ year } , { author } '
2323try :
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' )
2727except Exception :
2828 import traceback
2929
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ Configuration
44
55Default 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 ``
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -86,8 +86,6 @@ commands =
8686
8787[testenv:docs]
8888usedevelop = true
89- install_command =
90- python -m pip install --no-use-pep517 {opts} {packages}
9189deps =
9290 -r{toxinidir}/docs/requirements.txt
9391commands =
You can’t perform that action at this time.
0 commit comments