File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ version: 2
66build :
77 os : ubuntu-24.04
88 tools :
9- python : " 3.12 "
9+ python : " 3.13 "
1010 commands :
1111 # Install uv and sync dependencies from uv.lock
1212 - pip install uv
Original file line number Diff line number Diff line change 1414
1515import sys
1616import os
17- import pkg_resources
17+ import importlib . metadata as metadata
1818
1919# If extensions (or modules to document with autodoc) are in another directory,
2020# add these directories to sys.path here. If the directory is relative to the
6464# release = u'0.6.1'
6565
6666try :
67- release = pkg_resources . get_distribution ( ' mockito' ). version
68- except pkg_resources . DistributionNotFound :
69- print (' mockito must be installed to build the documentation.' )
70- print (' Install from source using `pip install -e .` in a virtualenv.' )
67+ release = metadata . version ( " mockito" )
68+ except metadata . PackageNotFoundError :
69+ print (" mockito must be installed to build the documentation." )
70+ print (" Install from source using `uv sync` or ` pip install -e .` in a virtualenv." )
7171 sys .exit (1 )
7272
7373if 'dev' in release :
You can’t perform that action at this time.
0 commit comments