|
21 | 21 | # sys.path.insert(0, os.path.abspath('.')) |
22 | 22 | import os |
23 | 23 | import sys |
24 | | -import pkg_resources |
| 24 | +from importlib.metadata import version as meta_version |
25 | 25 | sys.path.append(os.path.abspath('../src')) |
26 | | -rqmt = pkg_resources.require('nti.mailer')[0] |
27 | | - |
| 26 | +nt_ver = meta_version('nti.mailer') |
28 | 27 | # -- General configuration ------------------------------------------------ |
29 | 28 |
|
30 | 29 | # If your documentation needs a minimal Sphinx version, state it here. |
|
75 | 74 | # built documents. |
76 | 75 | # |
77 | 76 | # The short X.Y version. |
78 | | -version = '%s.%s' % tuple(map(int, rqmt.version.split('.')[:2])) |
| 77 | +version = '%s.%s' % tuple(map(int, nt_ver.split('.')[:2])) |
79 | 78 | # The full version, including alpha/beta/rc tags. |
80 | | -release = rqmt.version |
| 79 | +release = nt_ver |
81 | 80 |
|
82 | 81 | # The language for content autogenerated by Sphinx. Refer to documentation |
83 | 82 | # for a list of supported languages. |
84 | 83 | # |
85 | 84 | # This is also used if you do content translation via gettext catalogs. |
86 | 85 | # Usually you set "language" from the command line for these cases. |
87 | | -language = None |
| 86 | +language = "en" |
88 | 87 |
|
89 | 88 | # List of patterns, relative to source directory, that match files and |
90 | 89 | # directories to ignore when looking for source files. |
|
216 | 215 | 'site': ('https://zopesite.readthedocs.io/en/latest/', None,), |
217 | 216 | 'testing': ('https://ntitesting.readthedocs.io/en/latest/', None), |
218 | 217 | 'traversing': ('https://zopetraversing.readthedocs.io/en/latest/', None), |
219 | | - 'zodb': ('http://www.zodb.org/en/latest/', None), |
220 | 218 | 'external': ('https://ntiexternalization.readthedocs.io/en/latest/', None), |
221 | | - 'acquisition': ('https://acquisition.readthedocs.io/en/latest', None,), |
222 | 219 | 'zcintid': ('https://zcintid.readthedocs.io/en/latest', None), |
223 | 220 | 'zopeintid': ('https://zopeintid.readthedocs.io/en/latest', None,), |
224 | 221 | 'location': ('https://zopelocation.readthedocs.io/en/latest', None,), |
|
0 commit comments