File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ sphinx-rtd-theme==1.0.0
22Sphinx == 4.5.0
33sphinx-design == 0.2.0
44sphinx-toolbox == 3.1.2
5- sphinx-hoverxref == 1.1.3
5+ sphinx-hoverxref == 1.1.3
6+ toml == 0.10.2
Original file line number Diff line number Diff line change 1212#
1313import os
1414import sys
15+ import toml
1516sys .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 ---------------------------------------------------
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
5254add_module_names = False
5355hoverxref_auto_ref = True
5456hoverxref_domains = ['py' ]
Original file line number Diff line number Diff line change 11[project ]
22name = " WinMagnification"
3- version = " 0.0.1 "
3+ version = " 0.1.0 "
44authors = [
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 ]
2828requires = [" setuptools>=61.0" ]
You can’t perform that action at this time.
0 commit comments