|
11 | 11 | #
|
12 | 12 | # All configuration values have a default; values that are commented out
|
13 | 13 | # serve to show the default.
|
| 14 | +import logging |
14 | 15 | import os
|
15 | 16 | import os.path as osp
|
16 | 17 | import shutil
|
|
27 | 28 | # documentation root, use os.path.abspath to make it absolute, like shown here.
|
28 | 29 |
|
29 | 30 | # DEBUG for RTD
|
30 |
| -print("DEBUG:: sys.path") |
31 |
| -print("================") |
| 31 | +log = logging.getLogger(__name__) |
| 32 | +info = log.info |
| 33 | +info("DEBUG:: sys.path") |
| 34 | +info("================") |
32 | 35 | for item in sys.path:
|
33 |
| - print(item) |
| 36 | + info(item) |
34 | 37 |
|
35 | 38 | # add repo root to sys.path
|
36 | 39 | # here = root/docs/source
|
37 | 40 | here = os.path.abspath(os.path.dirname(__file__))
|
38 | 41 | repo_root = os.path.dirname(os.path.dirname(here))
|
39 | 42 | sys.path.insert(0, repo_root)
|
40 | 43 |
|
41 |
| -print("repo_root") |
42 |
| -print("=====================") |
43 |
| -print(repo_root) |
| 44 | +info("repo_root") |
| 45 | +info("=====================") |
| 46 | +info(repo_root) |
44 | 47 |
|
45 | 48 | # DEBUG for post insert on RTD
|
46 |
| -print("DEBUG:: Post insert to sys.path") |
47 |
| -print("===============================") |
| 49 | +info("DEBUG:: Post insert to sys.path") |
| 50 | +info("===============================") |
48 | 51 | for item in sys.path:
|
49 |
| - print(item) |
| 52 | + info(item) |
50 | 53 |
|
51 | 54 | # Check if docs are being built by ReadTheDocs
|
52 | 55 | # If so, generate a config.rst file and populate it with documentation about
|
|
57 | 60 | # Readthedocs doesn't run our Makefile, so we do this to force it to generate
|
58 | 61 | # the config docs.
|
59 | 62 | with open("../autogen_config.py") as f:
|
60 |
| - exec(compile(f.read(), "../autogen_config.py", "exec"), {}) |
| 63 | + exec(compile(f.read(), "../autogen_config.py", "exec"), {}) # noqa |
61 | 64 |
|
62 | 65 | # -- General configuration ------------------------------------------------
|
63 | 66 |
|
|
112 | 115 | __version__ = version("jupyter_server")
|
113 | 116 | # The short X.Y version.
|
114 | 117 | version_parsed = parse_version(__version__)
|
115 |
| -version = f"{version_parsed.major}.{version_parsed.minor}" # type:ignore[assignment] |
| 118 | +version = f"{version_parsed.major}.{version_parsed.minor}" # type:ignore |
116 | 119 |
|
117 | 120 | # The language for content autogenerated by Sphinx. Refer to documentation
|
118 | 121 | # for a list of supported languages.
|
|
0 commit comments