aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-01-16 15:58:26 +0100
committerTristan Gingold <tgingold@free.fr>2021-01-16 15:58:46 +0100
commitd95bbfc2163378d23ef24c7d838eaf3b76af4b9e (patch)
tree3b45ea867aa927b3f823eb6effdb90768da64415
parente5c609f31d485dcb5796103d5b8b0cf332960070 (diff)
downloadghdl-d95bbfc2163378d23ef24c7d838eaf3b76af4b9e.tar.gz
ghdl-d95bbfc2163378d23ef24c7d838eaf3b76af4b9e.tar.bz2
ghdl-d95bbfc2163378d23ef24c7d838eaf3b76af4b9e.zip
pyGHDL: remove dependency on attr
-rw-r--r--pyGHDL/lsp/lsp.py36
-rw-r--r--pyGHDL/requirements.txt3
2 files changed, 0 insertions, 39 deletions
diff --git a/pyGHDL/lsp/lsp.py b/pyGHDL/lsp/lsp.py
index 60f32be76..eaa0cdfac 100644
--- a/pyGHDL/lsp/lsp.py
+++ b/pyGHDL/lsp/lsp.py
@@ -1,8 +1,6 @@
import os
import logging
import json
-import attr
-from attr.validators import instance_of
try:
from urllib.parse import unquote, quote
@@ -275,37 +273,3 @@ class SymbolKind(object):
Number = 16
Boolean = 17
Array = 18
-
-
-@attr.s
-class HoverInfo(object):
- language = attr.ib()
- value = attr.ib()
-
-
-@attr.s
-class Completion(object):
- label = attr.ib()
- kind = attr.ib()
- detail = attr.ib()
- documentation = attr.ib()
-
-
-@attr.s
-class Position(object):
- line = attr.ib()
- character = attr.ib()
-
-
-@attr.s
-class Range(object):
- start = attr.ib(validator=instance_of(Position))
- end = attr.ib(validator=instance_of(Position))
-
-
-@attr.s
-class Diagnostic(object):
- range = attr.ib(validator=instance_of(Range))
- severity = attr.ib()
- source = attr.ib()
- message = attr.ib()
diff --git a/pyGHDL/requirements.txt b/pyGHDL/requirements.txt
index f985d97fa..d373926f3 100644
--- a/pyGHDL/requirements.txt
+++ b/pyGHDL/requirements.txt
@@ -1,5 +1,2 @@
-# FIXME: remove this dependency. Only lsp/lsp.py uses it.
-attrs
-
pydecor>=2.0.1
pyVHDLModel>=0.7.3