-
Notifications
You must be signed in to change notification settings - Fork 233
/
Copy pathconf.py
28 lines (21 loc) · 788 Bytes
/
conf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import os
import sys
from urllib.request import urlopen
_conf_url = \
"https://raw.githubusercontent.com/inducer/sphinxconfig/main/sphinxconfig.py"
with urlopen(_conf_url) as _inf:
exec(compile(_inf.read(), _conf_url, "exec"), globals())
sys.path.insert(0, os.path.abspath(".."))
copyright = "2017-21, Andreas Kloeckner and contributors"
author = "Andreas Kloeckner and contributors"
ver_dic = {}
with open("../pudb/__init__.py") as ver_file:
ver_src = ver_file.read()
exec(compile(ver_src, "../pudb/__init__.py", "exec"), ver_dic)
version = ver_dic["VERSION"]
# The full version, including alpha/beta/rc tags.
release = version
intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
"urwid": ("https://urwid.org/", None),
}