Skip to content

Commit 0addd8f

Browse files
authored
v0.9.1
2 parents 3b19439 + 971d806 commit 0addd8f

15 files changed

+30
-25
lines changed

.github/workflows/Pipeline.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,11 @@ on:
99

1010
jobs:
1111
Pipeline:
12-
uses: pyTooling/Actions/.github/workflows/CompletePipeline.yml@r4
12+
uses: pyTooling/Actions/.github/workflows/CompletePipeline.yml@dev
1313
with:
1414
package_name: sphinx_reports
1515
unittest_python_version_list: '3.11 3.12 3.13'
1616
codecov: true
1717
codacy: true
1818
dorny: true
19-
secrets:
20-
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
21-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
22-
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
19+
secrets: inherit

doc/CodeCov/index.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ The second file shows how to integrate that document into the navigation bar / *
153153

154154
.. code-block:: ReST
155155
156+
.. _CODECOV:
157+
156158
Code Coverage Report
157159
####################
158160
@@ -187,7 +189,7 @@ The second file shows how to integrate that document into the navigation bar / *
187189
Python Class Reference <sphinx_reports/sphinx_reports>
188190
Unittest
189191
CodeCoverage
190-
DocCoverage
192+
Doc. Coverage Report <DocCoverage>
191193
Static Type Check Report ➚ <typing/index>
192194
193195
.. toctree::

doc/CodeCoverage.rst

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _CODECOV:
2+
13
Code Coverage Report
24
####################
35

doc/Dependency.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ the mandatory dependencies too.
166166
+-------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
167167
| `sphinx-copybutton <https://GitHub.com/executablebooks/sphinx-copybutton>`__ | ≥0.5 | `MIT <https://GitHub.com/executablebooks/sphinx-copybutton/blob/master/LICENSE>`__ | *Not yet evaluated.* |
168168
+-------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
169-
| `sphinx_autodoc_typehints <https://GitHub.com/agronholm/sphinx-autodoc-typehints>`__ | ≥3.1 | `MIT <https://GitHub.com/agronholm/sphinx-autodoc-typehints/blob/master/LICENSE>`__ | *Not yet evaluated.* |
169+
| `sphinx_autodoc_typehints <https://GitHub.com/agronholm/sphinx-autodoc-typehints>`__ | ≥3.2 | `MIT <https://GitHub.com/agronholm/sphinx-autodoc-typehints/blob/master/LICENSE>`__ | *Not yet evaluated.* |
170170
+-------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
171171

172172
.. TODO:: document the usage of

doc/DocCov/index.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ The second file shows how to integrate that document into the navigation bar / *
150150

151151
.. code-block:: ReST
152152
153+
.. _DOCCOV:
154+
153155
Documentation Coverage Report
154156
#############################
155157
@@ -184,7 +186,7 @@ The second file shows how to integrate that document into the navigation bar / *
184186
Python Class Reference <sphinx_reports/sphinx_reports>
185187
Unittest
186188
CodeCoverage
187-
DocCoverage
189+
Doc. Coverage Report <DocCoverage>
188190
Static Type Check Report ➚ <typing/index>
189191
190192
.. toctree::

doc/DocCoverage.rst

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _DOCCOV:
2+
13
Documentation Coverage Report
24
#############################
35

doc/Overview.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ See the following :file:`doc/requirements.txt` file as an example with commonly
4848
autoapi ~= 2.0.1
4949
sphinx_design ~= 0.6.1
5050
sphinx-copybutton ~= 0.5.2
51-
sphinx_autodoc_typehints ~= 3.1
51+
sphinx_autodoc_typehints ~= 3.2
5252
sphinx_reports ~= 1.0 # <= new entry
5353
5454
Finally, the extension needs to be enabled in Sphinx's :file:`conf.py`, so the extension is loaded by Sphinx.

doc/Unittest/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ The second file shows how to integrate that document into the navigation bar / *
163163
Python Class Reference <sphinx_reports/sphinx_reports>
164164
Unittest
165165
CodeCoverage
166-
DocCoverage
166+
Doc. Coverage Report <DocCoverage>
167167
Static Type Check Report ➚ <typing/index>
168168
169169
.. toctree::

doc/conf.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# If extensions (or modules to document with autodoc) are in another directory,
22
# add these directories to sys.path here. If the directory is relative to the
33
# documentation root, use os.path.abspath to make it absolute, like shown here.
4-
from importlib.util import find_spec
54
from sys import path as sys_path
65
from os.path import abspath
76
from pathlib import Path
@@ -24,8 +23,9 @@
2423
# |version| and |release|, also used in various other places throughout the
2524
# built documents.
2625
project = "sphinx_reports"
26+
directoryName = project.replace('.', '/')
2727

28-
packageInformationFile = Path(f"../{project.replace('.', '/')}/__init__.py")
28+
packageInformationFile = Path(f"../{directoryName}/__init__.py")
2929
versionInformation = extractVersionInformation(packageInformationFile)
3030

3131
author = versionInformation.Author
@@ -271,7 +271,7 @@
271271

272272
report_codecov_packages = {
273273
"src": {
274-
"name": "sphinx_reports",
274+
"name": f"{project}",
275275
"json_report": "../report/coverage/coverage.json",
276276
"fail_below": 80,
277277
"levels": "default"
@@ -280,8 +280,8 @@
280280

281281
report_doccov_packages = {
282282
"src": {
283-
"name": "sphinx_reports",
284-
"directory": "../sphinx_reports",
283+
"name": f"{project}",
284+
"directory": f"../{directoryName}",
285285
"fail_below": 80,
286286
"levels": "default"
287287
},

doc/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ License
240240
unittests/index
241241
coverage/index
242242
CodeCoverage
243-
DocCoverage
243+
Doc. Coverage Report <DocCoverage>
244244
Static Type Check Report ➚ <typing/index>
245245

246246
.. raw:: latex

doc/requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ docutils ~= 0.21
66
docutils_stubs ~= 0.0.22
77

88
# ReadTheDocs Theme
9-
sphinx_rtd_theme ~= 3.0.1
9+
sphinx_rtd_theme ~= 3.0
1010

1111
# Sphinx Extenstions
1212
sphinxcontrib-mermaid ~= 1.0
1313
autoapi ~= 2.0.1
1414
sphinx_design ~= 0.6.1
1515
sphinx-copybutton ~= 0.5.2
16-
sphinx_autodoc_typehints ~= 3.1
16+
sphinx_autodoc_typehints ~= 3.2

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
requires = [
3-
"setuptools ~= 78.1",
3+
"setuptools ~= 79.0",
44
"wheel ~= 0.45",
55
"pyTooling ~= 8.4"
66
]

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pyTooling >= 6.7, <9.0
2-
pyEDAA.Reports ~= 0.14
2+
pyEDAA.Reports ~= 0.15
33

44
sphinx ~= 8.2
55
docutils ~= 0.21

run.ps1

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Param(
3232
)
3333

3434
$PackageName = "sphinx_reports"
35+
$PackageVersion = "0.9.1"
3536

3637
# set default values
3738
$EnableDebug = [bool]$PSCmdlet.MyInvocation.BoundParameters["Debug"]
@@ -97,7 +98,7 @@ if ($install)
9798
{ Write-Host -ForegroundColor Cyan "[ADMIN][UNINSTALL] Uninstalling $PackageName ..."
9899
py -3.13 -m pip uninstall -y $PackageName
99100
Write-Host -ForegroundColor Cyan "[ADMIN][INSTALL] Installing $PackageName from wheel ..."
100-
py -3.13 -m pip install .\dist\$PackageName-0.8.0-py3-none-any.whl
101+
py -3.13 -m pip install .\dist\$PackageName-$PackageVersion-py3-none-any.whl
101102

102103
Write-Host -ForegroundColor Cyan "[ADMIN][INSTALL] Closing window in 5 seconds ..."
103104
Start-Sleep -Seconds 5

sphinx_reports/__init__.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
__email__ = "[email protected]"
4444
__copyright__ = "2023-2025, Patrick Lehmann"
4545
__license__ = "Apache License, Version 2.0"
46-
__version__ = "0.9.0"
46+
__version__ = "0.9.1"
4747
__keywords__ = [
4848
"Python3", "Sphinx", "Extension", "Report", "doc-string", "interrogate", "Code Coverage", "Coverage",
4949
"Documentation Coverage", "Unittest", "Dependencies", "Summary"
@@ -60,14 +60,13 @@
6060
from sphinx.config import Config
6161
from sphinx.domains import Domain
6262
from sphinx.environment import BuildEnvironment
63+
from sphinx.util.logging import getLogger
6364
from pyTooling.Decorators import export
6465
from pyTooling.Common import readResourceFile
65-
from sphinx.util.logging import getLogger
6666

67+
from sphinx_reports import static as ResourcePackage
6768
from sphinx_reports.Common import ReportExtensionError
6869

69-
from sphinx_reports import static as ResourcePackage
70-
7170

7271
@export
7372
class ReportDomain(Domain):

0 commit comments

Comments
 (0)