summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Guegan <loic.guegan@mailbox.org>2023-10-25 13:22:46 +0200
committerLoic Guegan <loic.guegan@mailbox.org>2023-10-25 13:22:46 +0200
commit97b82ce849ae3165906d5e9c1c019d2688339d0b (patch)
tree7b889a9da85ff9f99ced26098cc8a32696673859
parentcfc1be03335dea934857a43cc027b49cd523f95d (diff)
Minor changes
-rw-r--r--clusterman/__main__.py23
-rw-r--r--pyproject.toml2
2 files changed, 2 insertions, 23 deletions
diff --git a/clusterman/__main__.py b/clusterman/__main__.py
index 413293b..7700eec 100644
--- a/clusterman/__main__.py
+++ b/clusterman/__main__.py
@@ -1,25 +1,4 @@
-import platform
-from typing import NamedTuple
-
-class SystemInformations(NamedTuple):
- """System Informations Data Structure"""
- hostname: str
- arch: str
- os: str
- release: str
-
-def sysinfos_create():
- global SYSINFOS
- uname = platform.uname()
- SYSINFOS=SystemInformations(
- uname.node,
- uname.machine,
- uname.system,
- uname.release
- )
- print(SYSINFOS)
-
def main():
print("It works!")
- sysinfos_create()
+
diff --git a/pyproject.toml b/pyproject.toml
index e865194..d18be07 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,7 +1,7 @@
[project]
name = "clusterman"
dynamic = ["version"]
-dependencies = []
+dependencies = ["psutil"]
description = "Simple cluster management utility"
readme = "README.md"