Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* @Paebbels

/.github/ @Paebbels
4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ updates:
prefix: "[Dependabot]"
labels:
- Dependencies
reviewers:
- Paebbels
schedule:
interval: "daily" # Checks on Monday trough Friday.

Expand All @@ -21,7 +19,5 @@ updates:
prefix: "[Dependabot]"
labels:
- Dependencies
reviewers:
- Paebbels
schedule:
interval: "weekly"
15 changes: 9 additions & 6 deletions .github/workflows/Pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ on:

jobs:
Pipeline:
uses: pyTooling/Actions/.github/workflows/CompletePipeline.yml@dev
uses: pyTooling/Actions/.github/workflows/CompletePipeline.yml@r6
with:
package_namespace: pyEDAA
package_name: ToolSetup
codecov: true
codacy: true
dorny: true
package_namespace: 'pyEDAA'
package_name: 'ToolSetup'
unittest_python_version_list: '3.11 3.12 3.13 3.14 pypy-3.11'
bandit: 'true'
pylint: 'false'
codecov: 'true'
codacy: 'true'
dorny: 'true'
secrets:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .idea/pyEDAA.ToolSetup.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 ~= 6.1
twine ~= 6.2
24 changes: 12 additions & 12 deletions doc/Dependency.rst

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion doc/make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pushd %~dp0
REM Command file for Sphinx documentation

if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=py -3.13 -m sphinx.cmd.build
set SPHINXBUILD=py -3.14 -m sphinx.cmd.build
)
set SOURCEDIR=.
set BUILDDIR=_build
Expand Down
8 changes: 4 additions & 4 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ docutils_stubs ~= 0.0.22
sphinx_rtd_theme ~= 3.0

# Sphinx Extenstions
sphinxcontrib-mermaid ~= 1.0
sphinxcontrib-mermaid ~= 1.2
autoapi >= 2.0.1
sphinx_design ~= 0.6.1
sphinx-copybutton >= 0.5.2
sphinx_autodoc_typehints ~= 3.2
sphinx_design ~= 0.6
sphinx-copybutton >= 0.5
sphinx_autodoc_typehints ~= 3.5
sphinx_reports ~= 0.9
Empty file added pyEDAA/ToolSetup/py.typed
Empty file.
39 changes: 26 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,30 @@
requires = [
"setuptools >= 80.0",
"wheel ~= 0.45",
"pyTooling ~= 8.4"
"pyTooling ~= 8.8"
]
build-backend = "setuptools.build_meta"

[tool.black]
line-length = 120
[tool.pylint.format]
indent-string="\t"
max-line-length = 120
ignore-long-lines = "^.{0,110}#: .*"

[tool.pylint.basic]
argument-naming-style = "camelCase"
attr-naming-style = "camelCase"
class-attribute-naming-style = "camelCase"
class-const-naming-style = "UPPER_CASE"
class-naming-style = "PascalCase"
const-naming-style = "UPPER_CASE"
function-naming-style = "camelCase"
inlinevar-naming-style = "camelCase"
method-naming-style = "PascalCase"
module-naming-style = "any"
variable-naming-style = "camelCase"

[tool.mypy]
files = ["pyEDAA.ToolSetup"]
packages = ["pyEDAA.ToolSetup"]
python_version = "3.13"
#ignore_missing_imports = true
strict = true
Expand All @@ -21,23 +36,21 @@ namespace_packages = true
html_report = "report/typing"

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

[tool.pyedaa-reports]
junit_xml = "report/unit/unittest.xml"

[tool.pytest.ini_options]
addopts = "--tb=native"
addopts = ["--tb=native"]
# Don't set 'python_classes = *' otherwise, pytest doesn't search for classes
# derived from unittest.Testcase
python_files = "*"
python_functions = "test_*"
python_files = ["*"]
python_functions = ["test_*"]
filterwarnings = [
"error::DeprecationWarning",
"error::PendingDeprecationWarning"
]
junit_xml = "report/unit/UnittestReportSummary.xml"
junit_logging = "all"

[tool.pyedaa-reports]
junit_xml = "report/unit/unittest.xml"

[tool.interrogate]
color = true
verbose = 1 # possible values: 0 (minimal output), 1 (-v), 2 (-vv)
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[yaml] ~= 8.4
pyTooling[yaml] ~= 8.8
pyEDAA.CLITool ~= 0.3
14 changes: 9 additions & 5 deletions run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ if ($build)
rm -Force .\build\bdist.win-amd64
rm -Force .\build\lib
Write-Host -ForegroundColor Yellow "[live][BUILD] Building $PackageName package as wheel ..."
py -3.13 -m build --wheel
py -3.14 -m build --wheel --no-isolation

Write-Host -ForegroundColor Yellow "[live][BUILD] Building wheel finished"
}
Expand All @@ -103,9 +103,9 @@ if ($install)
}
else
{ Write-Host -ForegroundColor Cyan "[ADMIN][UNINSTALL] Uninstalling $PackageName ..."
py -3.13 -m pip uninstall -y $PackageName
py -3.14 -m pip uninstall -y $PackageName
Write-Host -ForegroundColor Cyan "[ADMIN][INSTALL] Installing $PackageName from wheel ..."
py -3.13 -m pip install .\dist\$PackageName-$PackageVersion-py3-none-any.whl
py -3.14 -m pip install .\dist\$($PackageName.Replace(".", "_").ToLower())-$PackageVersion-py3-none-any.whl

Write-Host -ForegroundColor Cyan "[ADMIN][INSTALL] Closing window in 5 seconds ..."
Start-Sleep -Seconds 5
Expand Down Expand Up @@ -144,7 +144,9 @@ if ($liveunit)

$env:GHDL_PREFIX = "C:\Tools\GHDL\6.0.0.dev0-ucrt64-mcode\lib\ghdl"
$env:ENVIRONMENT_NAME = "Windows (x86-64)"
pytest -raP --color=yes --junitxml=report/unit/unittest.xml --template=html1/index.html --report=report/unit/html/index.html --split-report tests/unit
pytest -raP --color=yes --junitxml=report/unit/TestReportSummary.xml --template=html1/index.html --report=report/unit/html/index.html --split-report tests/unit

pyedaa-reports -v unittest "--merge=pyTest-JUnit:report/unit/TestReportSummary.xml" "--name=$PackageName" "--pytest=rewrite-dunder-init;reduce-depth:pytest.tests.unit" "--output=pyTest-JUnit:report/unit/unittest.xml"

if ($copyunit)
{ cp -Recurse -Force .\report\unit\html\* .\doc\_build\html\unittests
Expand All @@ -161,7 +163,9 @@ elseif ($unit)
$runUnitFunc = {
$env:GHDL_PREFIX = "C:\Tools\GHDL\6.0.0.dev0-ucrt64-mcode\lib\ghdl"
$env:ENVIRONMENT_NAME = "Windows (x86-64)"
pytest -raP --color=yes --junitxml=report/unit/unittest.xml --template=html1/index.html --report=report/unit/html/index.html --split-report tests/unit
pytest -raP --color=yes --junitxml=report/unit/TestReportSummary.xml --template=html1/index.html --report=report/unit/html/index.html --split-report tests/unit

pyedaa-reports -v unittest "--merge=pyTest-JUnit:report/unit/TestReportSummary.xml" "--name=$PackageName" "--pytest=rewrite-dunder-init;reduce-depth:pytest.tests.unit" "--output=pyTest-JUnit:report/unit/unittest.xml"
}
$unitJob = Start-Job -Name "UnitTests" -ScriptBlock $runUnitFunc
$jobs += $unitJob
Expand Down
35 changes: 19 additions & 16 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,22 @@
packageDirectory = packageName.replace(".", "/")
packageInformationFile = Path(f"{packageDirectory}/__init__.py")

setup(**DescribePythonPackageHostedOnGitHub(
packageName=packageName,
description="EDA tool detection, configuration and selection layer.",
gitHubNamespace=gitHubNamespace,
sourceFileWithVersion=packageInformationFile,
developmentStatus="alpha",
classifiers=list(DEFAULT_CLASSIFIERS) + [
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)"
],
dataFiles={
packageName: ["py.typed"]
},
consoleScripts={
"pyedaa-toolsetup": "pyEDAA.ToolSetup.CLI:main"
}
))
setup(
**DescribePythonPackageHostedOnGitHub(
packageName=packageName,
description="EDA tool detection, configuration and selection layer.",
gitHubNamespace=gitHubNamespace,
sourceFileWithVersion=packageInformationFile,
classifiers=list(DEFAULT_CLASSIFIERS) + [
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)"
],
developmentStatus="alpha",
pythonVersions=("3.11", "3.12", "3.13", "3.14"),
consoleScripts={
"pyedaa-toolsetup": "pyEDAA.ToolSetup.CLI:main"
},
dataFiles={
packageName: ["py.typed"]
}
)
)
12 changes: 6 additions & 6 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
-r ../requirements.txt

# Coverage collection
Coverage ~= 7.8
Coverage ~= 7.11

# Test Runner
pytest ~= 8.3
pytest-cov ~= 6.1
pytest ~= 9.0
pytest-cov ~= 7.0

# Static Type Checking
mypy ~= 1.15
typing_extensions ~= 4.13
lxml ~= 5.4
mypy[reports] ~= 1.18
typing_extensions ~= 4.15
lxml >= 5.4, <7.0
Loading