Skip to content

Commit

Permalink
General updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Feb 21, 2025
1 parent c34795e commit 9648a2e
Show file tree
Hide file tree
Showing 24 changed files with 81 additions and 49 deletions.
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ __pycache__/
.coverage
.cov
coverage.xml
/report/coverage

# mypy
/report/typing

# pytest
/report/unit

# setuptools
/build/**/*.*
Expand All @@ -21,5 +28,8 @@ coverage.xml
/doc/pyEDAA.UCIS/**/*.*
!/doc/pyEDAA.UCIS/index.rst

# PyCharm project
# PyCharm project files
/.idea/workspace.xml

# Git files
!.git*
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[![PyPI](https://img.shields.io/pypi/v/pyEDAA.UCIS?longCache=true&style=flat-square&logo=PyPI&logoColor=FBE072)](https://pypi.org/project/pyEDAA.UCIS/)
![PyPI - Status](https://img.shields.io/pypi/status/pyEDAA.UCIS?longCache=true&style=flat-square&logo=PyPI&logoColor=FBE072)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pyEDAA.UCIS?longCache=true&style=flat-square&logo=PyPI&logoColor=FBE072)
[![GitHub Workflow - Build and Test Status](https://img.shields.io/github/workflow/status/edaa-org/pyEDAA.UCIS/Pipeline/main?longCache=true&style=flat-square&label=Build%20and%20Test&logo=GitHub%20Actions&logoColor=FFFFFF)](https://github.com/edaa-org/pyEDAA.UCIS/actions/workflows/Pipeline.yml)
[![GitHub Workflow - Build and Test Status](https://img.shields.io/github/actions/workflow/status/edaa-org/pyEDAA.UCIS/Pipeline.yml?longCache=true&style=flat-square&label=Build%20and%20Test&logo=GitHub%20Actions&logoColor=FFFFFF)](https://github.com/edaa-org/pyEDAA.UCIS/actions/workflows/Pipeline.yml)
[![Libraries.io status for latest release](https://img.shields.io/librariesio/release/pypi/pyEDAA.UCIS?longCache=true&style=flat-square&logo=Libraries.io&logoColor=fff)](https://libraries.io/github/edaa-org/pyEDAA.UCIS)
[![Codacy - Quality](https://img.shields.io/codacy/grade/63bd2bd65585447a9f6d7ad4e7d82a35?longCache=true&style=flat-square&logo=Codacy)](https://app.codacy.com/gh/edaa-org/pyEDAA.UCIS)
[![Codacy - Coverage](https://img.shields.io/codacy/coverage/63bd2bd65585447a9f6d7ad4e7d82a35?longCache=true&style=flat-square&logo=Codacy)](https://app.codacy.com/gh/edaa-org/pyEDAA.UCIS)
Expand Down
2 changes: 1 addition & 1 deletion dist/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
wheel ~= 0.45
twine ~= 5.1
twine ~= 6.1
7 changes: 7 additions & 0 deletions doc/DocCoverage.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Documentation Coverage
######################

Documentation coverage generated by `docstr-coverage <https://github.com/HunterMcGushion/docstr_coverage>`__.

.. report:doc-coverage::
:packageid: src
4 changes: 4 additions & 0 deletions doc/TODO.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
TODOs
#####

.. todolist::
9 changes: 6 additions & 3 deletions doc/coverage/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
Coverage Report
###############
Code Coverage Report
####################

*Placeholder for the Coverage report generated with* ``pytest`` *and* ``coverage``.
Code coverage report generated with `pytest <https://github.com/pytest-dev/pytest>`__ and `Coverage.py <https://github.com/nedbat/coveragepy/tree/master>`__.

.. report:code-coverage::
:packageid: src
4 changes: 0 additions & 4 deletions doc/genindex.rst

This file was deleted.

24 changes: 13 additions & 11 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ News
Contributors
************

* `Patrick Lehmann <https://github.com/Paebbels>`__ (Maintainer)
* :gh:`Patrick Lehmann <Paebbels>` (Maintainer)
* `Artur Porebski (Aldec Inc.) <https://github.com/por3bski>`__
* `Michal Pacula (Aldec Inc.) <https://github.com/mikep996>`__
* `Unai Martinez-Corral <https://github.com/umarcor/>`__
* :gh:`Unai Martinez-Corral <umarcor>`
* `and more... <https://github.com/edaa-org/pyEDAA.UCIS/graphs/contributors>`__


Expand Down Expand Up @@ -151,14 +151,19 @@ License

.. raw:: latex

\part{References}
\part{References and Reports}

.. toctree::
:caption: References
:caption: References and Reports
:hidden:

CommandLineInterface
pyEDAA.UCIS/index
Python Class Reference <pyEDAA.UCIS/pyEDAA.UCIS>
unittests/index
coverage/index
Doc. Coverage Report <DocCoverage>
Static Type Check Report ➚ <typing/index>

.. Coverage Report ➚ <coverage/index>
.. raw:: latex

Expand All @@ -168,12 +173,9 @@ License
:caption: Appendix
:hidden:

Coverage Report ➚ <coverage/index>
Static Type Check Report ➚ <typing/index>
License
Doc-License
Glossary
genindex

.. #
py-modindex
Python Module Index <modindex>
TODO
4 changes: 0 additions & 4 deletions doc/py-modindex.rst

This file was deleted.

8 changes: 3 additions & 5 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
-r ../requirements.txt

# Enforce latest version on ReadTheDocs
sphinx ~= 8.1
sphinx ~= 8.2
docutils ~= 0.21
docutils_stubs ~= 0.0.22

# ReadTheDocs Theme
sphinx_rtd_theme ~= 3.0.0
sphinx_rtd_theme ~= 3.0

# Sphinx Extenstions
sphinxcontrib-mermaid ~= 1.0
autoapi >= 2.0.1
sphinx_design ~= 0.6.1
sphinx-copybutton >= 0.5.2
sphinx_autodoc_typehints ~= 2.5
sphinx_autodoc_typehints ~= 3.1
sphinx_reports ~= 0.7

# BuildTheDocs Extensions (mostly patched Sphinx extensions)
4 changes: 2 additions & 2 deletions doc/shields.inc
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@
:target: https://github.com/edaa-org/pyEDAA.UCIS/network/dependents

.. # GHA test and coverage
.. |SHIELD:svg:UCIS-gha-test| image:: https://img.shields.io/github/workflow/status/edaa-org/pyEDAA.UCIS/Pipeline/main?longCache=true&style=flat-square&label=Build%20and%20Test&logo=GitHub%20Actions&logoColor=FFFFFF
.. |SHIELD:svg:UCIS-gha-test| image:: https://img.shields.io/github/actions/workflow/status/edaa-org/pyEDAA.UCIS/Pipeline.yml?longCache=true&style=flat-square&label=Build%20and%20Test&logo=GitHub%20Actions&logoColor=FFFFFF
:alt: GitHub Workflow - Build and Test Status
:height: 22
:target: https://github.com/edaa-org/pyEDAA.UCIS/actions/workflows/Pipeline.yml
.. |SHIELD:png:UCIS-gha-test| image:: https://raster.shields.io/github/workflow/status/edaa-org/pyEDAA.UCIS/Pipeline/main?longCache=true&style=flat-square&label=Build%20and%20Test&logo=GitHub%20Actions&logoColor=FFFFFF
.. |SHIELD:png:UCIS-gha-test| image:: https://raster.shields.io/github/actions/workflow/status/edaa-org/pyEDAA.UCIS/Pipeline.yml?longCache=true&style=flat-square&label=Build%20and%20Test&logo=GitHub%20Actions&logoColor=FFFFFF
:alt: GitHub Workflow - Build and Test Status
:height: 22
:target: https://github.com/edaa-org/pyEDAA.UCIS/actions/workflows/Pipeline.yml
Expand Down
7 changes: 7 additions & 0 deletions doc/unittests/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Unittest Summary Report
#######################

Unittest report generated with `pytest <https://github.com/pytest-dev/pytest>`__.

.. report:unittest-summary::
:reportid: src
2 changes: 1 addition & 1 deletion pyEDAA/UCIS/CLI/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# #
# License: #
# ==================================================================================================================== #
# Copyright 2021-2024 Electronic Design Automation Abstraction (EDA²) #
# Copyright 2021-2025 Electronic Design Automation Abstraction (EDA²) #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
Expand Down
2 changes: 1 addition & 1 deletion pyEDAA/UCIS/Cobertura.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# #
# License: #
# ==================================================================================================================== #
# Copyright 2021-2024 Electronic Design Automation Abstraction (EDA²) #
# Copyright 2021-2025 Electronic Design Automation Abstraction (EDA²) #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
Expand Down
2 changes: 1 addition & 1 deletion pyEDAA/UCIS/UCDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# #
# License: #
# ==================================================================================================================== #
# Copyright 2021-2024 Electronic Design Automation Abstraction (EDA²) #
# Copyright 2021-2025 Electronic Design Automation Abstraction (EDA²) #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
Expand Down
4 changes: 2 additions & 2 deletions pyEDAA/UCIS/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# #
# License: #
# ==================================================================================================================== #
# Copyright 2021-2024 Electronic Design Automation Abstraction (EDA²) #
# Copyright 2021-2025 Electronic Design Automation Abstraction (EDA²) #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
Expand All @@ -31,7 +31,7 @@
"""The Unified Coverage Interoperability Standard (UCIS) layer of EDA² offers a data model for reading UCDB files."""
__author__ = "Patrick Lehmann"
__email__ = "Paebbels@gmail.com"
__copyright__ = "2021-2024, Electronic Design Automation Abstraction (EDA²)"
__copyright__ = "2021-2025, Electronic Design Automation Abstraction (EDA²)"
__license__ = "Apache License, Version 2.0"
__version__ = "0.3.0"
__keywords__ = ["UCIS", "UCDB", "coverage", "Cobertura", "xml"]
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[build-system]
requires = [
"setuptools ~= 75.3",
"setuptools ~= 75.8",
"wheel ~= 0.45",
"pyTooling ~= 8.0"
"pyTooling ~= 8.1"
]
build-backend = "setuptools.build_meta"

Expand All @@ -20,6 +20,9 @@ show_error_codes = true
namespace_packages = true
html_report = "report/typing"

[tool.pytest]
junit_xml = "report/unit/TestReportSummary.xml"

[tool.pytest.ini_options]
addopts = "--tb=native"
# Don't set 'python_classes = *' otherwise, pytest doesn't search for classes
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pyTooling ~= 8.0
pyTooling ~= 8.1
lxml ~= 5.3
15 changes: 10 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# #
# License: #
# ==================================================================================================================== #
# Copyright 2021-2024 Electronic Design Automation Abstraction (EDA²) #
# Copyright 2021-2025 Electronic Design Automation Abstraction (EDA²) #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
Expand All @@ -29,24 +29,29 @@
# ==================================================================================================================== #
#
"""Package installer for 'Tools to extract and convert data from UCDB files'."""
from setuptools import setup

from pathlib import Path
from pyTooling.Packaging import DescribePythonPackageHostedOnGitHub
from pyTooling.Packaging import DescribePythonPackageHostedOnGitHub, DEFAULT_CLASSIFIERS

gitHubNamespace = "pyEDAA"
packageName = "pyEDAA.UCIS"
packageDirectory = packageName.replace(".", "/")
packageInformationFile = Path(f"{packageDirectory}/__init__.py")

DescribePythonPackageHostedOnGitHub(
setup(**DescribePythonPackageHostedOnGitHub(
packageName=packageName,
description="Tools to extract and convert data from UCDB files.",
gitHubNamespace=gitHubNamespace,
sourceFileWithVersion=packageInformationFile,
developmentStatus="stable",
classifiers=[
classifiers=list(DEFAULT_CLASSIFIERS) + [
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
],
dataFiles={
packageName: ["py.typed"]
},
consoleScripts={
"pyedaa-ucis": "pyEDAA.UCIS.CLI:main"
}
)
))
2 changes: 1 addition & 1 deletion tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pytest ~= 8.3
pytest-cov ~= 6.0

# Static Type Checking
mypy ~= 1.13
mypy ~= 1.15
typing_extensions ~= 4.12
lxml ~= 5.3

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/CLI.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# #
# License: #
# ==================================================================================================================== #
# Copyright 2021-2024 Electronic Design Automation Abstraction (EDA²) #
# Copyright 2021-2025 Electronic Design Automation Abstraction (EDA²) #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/UCDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# #
# License: #
# ==================================================================================================================== #
# Copyright 2021-2024 Electronic Design Automation Abstraction (EDA²) #
# Copyright 2021-2025 Electronic Design Automation Abstraction (EDA²) #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# #
# License: #
# ==================================================================================================================== #
# Copyright 2021-2024 Electronic Design Automation Abstraction (EDA²) #
# Copyright 2021-2025 Electronic Design Automation Abstraction (EDA²) #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
Expand Down
1 change: 1 addition & 0 deletions tests/unit/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-r ../requirements.txt

0 comments on commit 9648a2e

Please sign in to comment.