|
19 | 19 | #
|
20 | 20 | import os
|
21 | 21 | import sys
|
22 |
| -import toml |
| 22 | +# import toml |
23 | 23 | from pathlib import Path
|
| 24 | +import easyscience |
24 | 25 | # sys.path.insert(0, os.path.abspath('.'))
|
25 | 26 | main_root = Path(__file__).parents[2]
|
26 | 27 | sys.path.append(str(main_root))
|
27 | 28 |
|
28 | 29 | import datetime
|
29 | 30 |
|
30 |
| -project_info = toml.load(os.path.join(main_root, 'pyproject.toml')) |
| 31 | +# project_info = toml.load(os.path.join(main_root, 'pyproject.toml')) |
31 | 32 |
|
32 | 33 | # -- Project information -----------------------------------------------------
|
33 | 34 |
|
34 | 35 | project = 'EasyScience'
|
35 |
| -copyright = f"{datetime.date.today().year}, EasyReflectometry" |
36 |
| -author = "EasyReflectometry" |
| 36 | +copyright = f"{datetime.date.today().year}, EasyScience Contributors" |
| 37 | +author = "EasyScience Contributors" |
37 | 38 | # copyright = f"2021, {project_info['tool']['poetry']['authors'][0]}"
|
38 | 39 | # author = project_info['tool']['poetry']['authors'][0]
|
39 | 40 |
|
|
42 | 43 | # # The full version, including alpha/beta/rc tags
|
43 | 44 | # release = project_info['tool']['poetry']['version']
|
44 | 45 | # The short X.Y version.
|
45 |
| -version = project_info['project']['version'] |
| 46 | +#version = project_info['project']['version'] |
46 | 47 | # The full version, including alpha/beta/rc tags.
|
47 |
| -version = project_info['project']['version'] |
| 48 | +#version = project_info['project']['version'] |
| 49 | +version = easyscience.__version__ |
| 50 | + |
48 | 51 |
|
49 | 52 | intersphinx_mapping = {
|
50 | 53 | 'python': ('https://docs.python.org/3', None),
|
|
0 commit comments