Skip to content

Commit

Permalink
Added missing dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Jun 18, 2024
1 parent 4a298bf commit 69e1876
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 1 deletion.
4 changes: 4 additions & 0 deletions doc/Dependency.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ pyEDAA.CLITool Package
| `pyVHDLModel <https://GitHub.com/VHDL/pyVHDLModel>`__ | ≥0.28 | `Apache License, 2.0 <https://GitHub.com/VHDL/pyVHDLModel/blob/master/LICENSE>`__ | * `pyTooling <https://GitHub.com/pyTooling/pyTooling>`__ (`Apache License, 2.0 <https://GitHub.com/pyTooling/pyTooling/blob/main/LICENSE.txt>`__) |
+---------------------------------------------------------------------------------------+-------------+----------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+

.. todo:: investigate dependencies and licenses of pyTooling with CLIAbstraction and pyAttributes/argcomplete.

.. todo:: investigate dependencies of py-flags 1.1.4 => MIT.

.. #
| `pyAttributes <https://GitHub.com/pyTooling/pyAttributes>`__ | ≥2.5.1 | `Apache License, 2.0 <https://GitHub.com/pyTooling/pyTooling/blob/main/LICENSE.txt>`__ | * `pyTooling <https://GitHub.com/pyTooling/pyTooling>`__ (`Apache License, 2.0 <https://GitHub.com/pyTooling/pyTooling/blob/main/LICENSE.txt>`__) |
| | | | * `argcomplete <https://GitHub.com/kislyuk/argcomplete>`__ (`Apache License, 2.0 <https://GitHub.com/kislyuk/argcomplete/blob/develop/LICENSE.rst>`__) |
Expand Down
1 change: 1 addition & 0 deletions pyEDAA/CLITool/Xilinx/Vivado.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
from pyTooling.CLIAbstraction.Flag import ShortFlag
from pyTooling.CLIAbstraction.ValuedFlag import ShortValuedFlag
from pyTooling.CLIAbstraction.ValuedTupleFlag import ShortTupleFlag

from pyEDAA.CLITool import ToolMixIn


Expand Down
11 changes: 10 additions & 1 deletion pyEDAA/CLITool/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
__version__ = "0.3.0"
__keywords__ = ["cli", "abstraction layer", "eda"]

from pathlib import Path
from typing import Any, Optional as Nullable

from pyTooling.Decorators import export
from pyTooling.Exceptions import ExceptionBase

Expand All @@ -47,7 +50,13 @@ class CLIToolException(ExceptionBase):


class ToolMixIn:
def __init__(self, platform, dryrun, binaryDirectoryPath, version, logger=None):
_platform: str
_dryrun: bool
_binaryDirectoryPath: Path
_version: str
_logger: Any

def __init__(self, platform: str, dryrun: bool, binaryDirectoryPath: Path, version: str, logger: Nullable[Any] =None):
self._platform = platform
self._dryrun = dryrun
self._binaryDirectoryPath = binaryDirectoryPath
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ junit_logging = "all"
color = true
verbose = 1 # possible values: 0 (minimal output), 1 (-v), 2 (-vv)
fail-under = 80
exclude = [
"build",
"dist",
"doc",
"tests",
"setup.py"
]
#generate-badge = "."
#badge-format = "png"
ignore-setters = true
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pyTooling ~= 6.3
pyVHDLModel ~= 0.28.0
py-flags ~= 1.1

0 comments on commit 69e1876

Please sign in to comment.