File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212# All configuration values have a default; values that are commented out
1313# serve to show the default.
1414
15+ import importlib .metadata
1516import os
1617import sys
1718
18- import pkg_resources
19-
2019
2120sys .path .append (os .path .abspath ('../src' ))
22- rqmt = pkg_resources . require ('zope.testing' )[ 0 ]
21+ rqmt_version = importlib . metadata . version ('zope.testing' )
2322# Import and document the pure-python versions of things; they tend to have
2423# better docstrings and signatures.
2524os .environ ['PURE_PYTHON' ] = '1'
6766# built documents.
6867#
6968# The short X.Y version.
70- version = '%s.%s' % tuple (map (int , rqmt . version .split ('.' )[:2 ]))
69+ version = '%s.%s' % tuple (map (int , rqmt_version .split ('.' )[:2 ]))
7170# The full version, including alpha/beta/rc tags.
72- release = rqmt . version
71+ release = rqmt_version
7372
7473# The language for content autogenerated by Sphinx. Refer to documentation
7574# for a list of supported languages.
You can’t perform that action at this time.
0 commit comments