aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/cli
diff options
context:
space:
mode:
authorPatrick Lehmann <Paebbels@gmail.com>2022-06-19 21:40:35 +0200
committerGitHub <noreply@github.com>2022-06-19 21:40:35 +0200
commit4afeced94eba857e929e7eaa4ca2899db69be520 (patch)
treebbbe8e33a86ca21cd9ae68e0eb813c9bf2269cf1 /pyGHDL/cli
parent6080383b327571d366d3ed69bcf3cd4257a20010 (diff)
parent24f4de4220f3635afc8c4334c5805e874329e396 (diff)
downloadghdl-4afeced94eba857e929e7eaa4ca2899db69be520.tar.gz
ghdl-4afeced94eba857e929e7eaa4ca2899db69be520.tar.bz2
ghdl-4afeced94eba857e929e7eaa4ca2899db69be520.zip
Bumped dependencies to support pyTooling ≥2.0.
Diffstat (limited to 'pyGHDL/cli')
-rwxr-xr-xpyGHDL/cli/dom.py11
-rw-r--r--pyGHDL/cli/requirements.txt4
2 files changed, 7 insertions, 8 deletions
diff --git a/pyGHDL/cli/dom.py b/pyGHDL/cli/dom.py
index 1ec168842..20a49d8eb 100755
--- a/pyGHDL/cli/dom.py
+++ b/pyGHDL/cli/dom.py
@@ -41,7 +41,7 @@ from pyGHDL.dom import DOMException
from pyGHDL.libghdl import LibGHDLException
from pyTooling.Decorators import export
-from pyTooling.MetaClasses import Singleton
+from pyTooling.MetaClasses import ExtendedType
from pyTooling.TerminalUI import LineTerminal, Severity
from pyAttributes import Attribute
from pyAttributes.ArgParseAttributes import (
@@ -118,10 +118,6 @@ class Application(LineTerminal, ArgParseMixin):
def __init__(self, debug=False, verbose=False, quiet=False, sphinx=False):
super().__init__(verbose, debug, quiet)
- # Initialize the Terminal class
- # --------------------------------------------------------------------------
- Singleton.Register(LineTerminal, self)
-
# Initialize DOM with an empty design
# --------------------------------------------------------------------------
self._design = Design()
@@ -311,6 +307,9 @@ class Application(LineTerminal, ArgParseMixin):
for architecture in architectures:
entity.Architectures.append(architecture)
+ if not self._design.Documents:
+ self.WriteFatal(f"No files processed at all.")
+
PP = PrettyPrint()
buffer = []
@@ -347,7 +346,7 @@ def main(): # mccabe:disable=MC0001
try:
# handover to a class instance
- app = Application(debug, verbose, quiet)
+ app = Application() # debug, verbose, quiet)
app.Run()
app.exit()
except PrettyPrintException as ex:
diff --git a/pyGHDL/cli/requirements.txt b/pyGHDL/cli/requirements.txt
index 9865f70b8..e453bcbde 100644
--- a/pyGHDL/cli/requirements.txt
+++ b/pyGHDL/cli/requirements.txt
@@ -1,5 +1,5 @@
-r ../dom/requirements.txt
-pyTooling>=1.6.0,<=1.10.0
-pyTooling.TerminalUI>=1.5.3,<=1.5.7
+pyTooling>=2.1.0
+pyTooling.TerminalUI>=1.5.9
pyAttributes>=2.3.2