forked from indygreg/PyOxidizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconf.py
34 lines (28 loc) · 950 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
29
30
31
32
33
34
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
import os
import pathlib
import re
HERE = pathlib.Path(os.path.dirname(__file__))
ROOT = pathlib.Path(os.path.dirname(HERE))
release = "unknown"
with (ROOT / "Cargo.toml").open("r") as fh:
for line in fh:
m = re.match('^version = "([^"]+)"', line)
if m:
release = m.group(1)
break
project = "PyOxy"
copyright = "2021, Gregory Szorc"
author = "Gregory Szorc"
extensions = ["sphinx.ext.intersphinx"]
templates_path = ["_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
html_theme = "alabaster"
master_doc = "index"
intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
"setuptools": ("https://setuptools.readthedocs.io/en/latest", None),
}
tags.add("pyoxy")