Skip to content

Commit af60028

Browse files
authored
v0.6.0
2 parents cf54ecd + 34391f4 commit af60028

File tree

16 files changed

+117
-72
lines changed

16 files changed

+117
-72
lines changed

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* @Paebbels
2+
3+
/.github/ @Paebbels

.github/dependabot.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ updates:
88
prefix: "[Dependabot]"
99
labels:
1010
- Dependencies
11-
reviewers:
12-
- Paebbels
1311
schedule:
1412
interval: "daily" # Checks on Monday trough Friday.
1513

@@ -21,7 +19,5 @@ updates:
2119
prefix: "[Dependabot]"
2220
labels:
2321
- Dependencies
24-
reviewers:
25-
- Paebbels
2622
schedule:
2723
interval: "weekly"

.github/workflows/Pipeline.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,19 @@ on:
99

1010
jobs:
1111
Pipeline:
12-
uses: pyTooling/Actions/.github/workflows/CompletePipeline.yml@dev
12+
uses: pyTooling/Actions/.github/workflows/CompletePipeline.yml@r6
1313
with:
14-
package_namespace: pyEDAA
15-
package_name: ProjectModel
16-
unittest_disable_list: "mingw64:* ucrt64:*"
17-
apptest_python_version_list: "" # use latest Python version
18-
apptest_system_list: "ubuntu macos macos-arm"
19-
codecov: true
20-
codacy: true
21-
dorny: true
14+
package_namespace: 'pyEDAA'
15+
package_name: 'ProjectModel'
16+
unittest_python_version_list: '3.11 3.12 3.13 3.14 pypy-3.11'
17+
unittest_disable_list: 'mingw64:* ucrt64:* ubuntu-arm:pypy-3.11 windows-arm:pypy-3.11'
18+
apptest_python_version_list: '' # use latest Python version
19+
apptest_system_list: 'ubuntu macos macos-arm'
20+
bandit: 'true'
21+
pylint: 'false'
22+
codecov: 'true'
23+
codacy: 'true'
24+
dorny: 'true'
2225
secrets:
2326
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
2427
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.idea/pyEDAA.ProjectModel.iml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
wheel ~= 0.45
2-
twine ~= 6.1
2+
twine ~= 6.2

doc/Dependency.rst

Lines changed: 12 additions & 12 deletions
Large diffs are not rendered by default.

doc/make.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pushd %~dp0
55
REM Command file for Sphinx documentation
66

77
if "%SPHINXBUILD%" == "" (
8-
set SPHINXBUILD=sphinx-build
8+
set SPHINXBUILD=py -3.14 -m sphinx.cmd.build
99
)
1010
set SOURCEDIR=.
1111
set BUILDDIR=_build

doc/requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ sphinx_rtd_theme ~= 3.0
1111
# Sphinx Extenstions
1212
sphinxcontrib-mermaid ~= 1.0
1313
autoapi >= 2.0.1
14-
sphinx_design ~= 0.6.1
15-
sphinx-copybutton >= 0.5.2
16-
sphinx_autodoc_typehints ~= 3.2
14+
sphinx_design ~= 0.6
15+
sphinx-copybutton >= 0.5
16+
sphinx_autodoc_typehints ~= 3.5
1717
sphinx_reports ~= 0.9

pyEDAA/ProjectModel/Xilinx/Vivado.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,24 @@ class UsedInAttribute(Attribute):
5050
VALUE_TYPE = Iterable[str]
5151

5252

53+
@export
54+
class ScopeToRefAttribute(Attribute):
55+
KEY = "ScopeToRef"
56+
VALUE_TYPE = Nullable[str]
57+
58+
59+
@export
60+
class ScopeToCellAttribute(Attribute):
61+
KEY = "ScopeToCell"
62+
VALUE_TYPE = Nullable[str]
63+
64+
5365
@export
5466
class File(Model_File):
5567
pass
5668

5769

70+
@export
5871
class VivadoFileMixIn(metaclass=ExtendedType, mixin=True):
5972
def _registerAttributes(self) -> None:
6073
self._attributes[UsedInAttribute] = []
@@ -193,6 +206,11 @@ def _ParseFileSetConfig(self, fileNode, fileset) -> None:
193206
class XDCConstraintFile(ConstraintFile, SDCContent):
194207
"""A Vivado constraint file (Xilinx Design Constraints; ``*.xdc``)."""
195208

209+
def _registerAttributes(self) -> None:
210+
super()._registerAttributes()
211+
self._attributes[ScopeToRefAttribute] = None
212+
self._attributes[ScopeToCellAttribute] = None
213+
196214

197215
@export
198216
class IPCoreDescriptionFile(XMLFile):

pyEDAA/ProjectModel/__init__.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
__email__ = "[email protected]"
3535
__copyright__ = "2014-2025, Patrick Lehmann, Unai Martinez-Corral"
3636
__license__ = "Apache License, Version 2.0"
37-
__version__ = "0.5.1"
37+
__version__ = "0.6.0"
3838
__keywords__ = ["eda project", "model", "abstract", "xilinx", "vivado", "osvvm", "file set", "file group", "test bench", "test harness"]
3939

4040
from os.path import relpath as path_relpath
@@ -166,7 +166,11 @@ def FileType(self) -> 'FileType':
166166

167167
@property
168168
def Path(self) -> pathlib_Path:
169-
"""Read-only property returning the path of this file."""
169+
"""
170+
Read-only property to access the path to the file.
171+
172+
:returns: The file's path.
173+
"""
170174
return self._path
171175

172176
# TODO: setter?
@@ -251,7 +255,7 @@ def __len__(self) -> int:
251255
"""
252256
Returns number of attributes set on this file.
253257
254-
:returns: The number if attributes set on this file.
258+
:returns: The number of attributes set on this file.
255259
"""
256260
return len(self._attributes)
257261

@@ -1069,7 +1073,7 @@ def __len__(self) -> int:
10691073
"""
10701074
Returns number of attributes set on this fileset.
10711075
1072-
:returns: The number if attributes set on this fileset.
1076+
:returns: The number of attributes set on this fileset.
10731077
"""
10741078
return len(self._attributes)
10751079

@@ -1271,7 +1275,7 @@ def __len__(self) -> int:
12711275
"""
12721276
Returns number of attributes set on this VHDL library.
12731277
1274-
:returns: The number if attributes set on this VHDL library.
1278+
:returns: The number of attributes set on this VHDL library.
12751279
"""
12761280
return len(self._attributes)
12771281

@@ -1629,7 +1633,7 @@ def __len__(self) -> int:
16291633
"""
16301634
Returns number of attributes set on this design.
16311635
1632-
:returns: The number if attributes set on this design.
1636+
:returns: The number of attributes set on this design.
16331637
"""
16341638
return len(self._attributes)
16351639

@@ -1821,7 +1825,7 @@ def __len__(self) -> int:
18211825
"""
18221826
Returns number of attributes set on this project.
18231827
1824-
:returns: The number if attributes set on this project.
1828+
:returns: The number of attributes set on this project.
18251829
"""
18261830
return len(self._attributes)
18271831

0 commit comments

Comments
 (0)