Skip to content

Commit ed04ceb

Browse files
authored
Merge pull request #3 from MaxBQb/dev
Merge dev into master
2 parents 85a1410 + 9ed8670 commit ed04ceb

3 files changed

Lines changed: 12 additions & 9 deletions

File tree

docs/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ sphinx-rtd-theme==1.0.0
22
Sphinx==4.5.0
33
sphinx-design==0.2.0
44
sphinx-toolbox==3.1.2
5-
sphinx-hoverxref==1.1.3
5+
sphinx-hoverxref==1.1.3
6+
toml==0.10.2

docs/source/conf.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,20 @@
1212
#
1313
import os
1414
import sys
15+
import toml
1516
sys.path.insert(0, os.path.abspath(os.path.join('..', '..')))
1617

1718

1819
# -- Project information -----------------------------------------------------
20+
metadata = toml.load(os.path.normpath('../../pyproject.toml'))
1921

20-
project = 'WinMagnification'
22+
project = metadata['project']['name']
23+
author = metadata['project']['authors'][0]['name']
2124
# noinspection PyShadowingBuiltins
22-
copyright = '2022, MaxBQb'
23-
author = 'MaxBQb'
25+
copyright = f'2022, {author}'
2426

2527
# The full version, including alpha/beta/rc tags
26-
release = '0.0.1'
28+
release = metadata['project']['version']
2729

2830

2931
# -- General configuration ---------------------------------------------------
@@ -47,8 +49,8 @@
4749
'sphinx.ext.autodoc',
4850
'sphinx.ext.autosummary',
4951
]
50-
github_username = 'MaxBQb'
51-
github_repository = 'WinMagnification'
52+
github_username = author
53+
github_repository = project
5254
add_module_names = False
5355
hoverxref_auto_ref = True
5456
hoverxref_domains = ['py']

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "WinMagnification"
3-
version = "0.0.1"
3+
version = "0.1.0"
44
authors = [
55
{ name="MaxBQb" },
66
]
@@ -22,7 +22,7 @@ classifiers = [
2222
[project.urls]
2323
"Homepage" = "https://github.com/MaxBQb/WinMagnification"
2424
"Bug Tracker" = "https://github.com/MaxBQb/WinMagnification/issues"
25-
"Documentation" = "https://winmagnification.readthedocs.io/en/latest/",
25+
"Documentation" = "https://winmagnification.readthedocs.io/en/latest/"
2626

2727
[build-system]
2828
requires = ["setuptools>=61.0"]

0 commit comments

Comments
 (0)