From 97b82ce849ae3165906d5e9c1c019d2688339d0b Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Wed, 25 Oct 2023 13:22:46 +0200 Subject: [PATCH] Minor changes --- clusterman/__main__.py | 23 +---------------------- pyproject.toml | 2 +- 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"