aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pym/gentoolkit/dependencies.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/pym/gentoolkit/dependencies.py b/pym/gentoolkit/dependencies.py
index 8dd4867..dd30312 100644
--- a/pym/gentoolkit/dependencies.py
+++ b/pym/gentoolkit/dependencies.py
@@ -11,6 +11,8 @@ __all__ = ("Dependencies",)
# Imports
# =======
+from enum import StrEnum
+
import portage
from portage.dep import paren_reduce
@@ -24,6 +26,14 @@ from gentoolkit.query import Query
# =======
+class DependencyKind(StrEnum):
+ DEPEND = "DEPEND"
+ RDEPEND = "RDEPEND"
+ BDEPEND = "BDEPEND"
+ PDEPEND = "PDEPEND"
+ IDEPEND = "IDEPEND"
+
+
class Dependencies(Query):
"""Access a package's dependencies and reverse dependencies.