diff --git a/catcli/noder.py b/catcli/noder.py index df493e3..ba92479 100644 --- a/catcli/noder.py +++ b/catcli/noder.py @@ -7,7 +7,7 @@ Class that represents a node in the catalog tree import os import anytree -import psutil +import shutil import time # local imports @@ -214,8 +214,8 @@ class Noder: def storage_node(self, name, path, parent, attr=None): '''create a new node representing a storage''' path = os.path.abspath(path) - free = psutil.disk_usage(path).free - total = psutil.disk_usage(path).total + free = shutil.disk_usage(path).free + total = shutil.disk_usage(path).total epoch = int(time.time()) return anytree.AnyNode(name=name, type=self.TYPE_STORAGE, free=free, total=total, parent=parent, attr=attr, ts=epoch) diff --git a/requirements.txt b/requirements.txt index b9d29a1..6b7fb29 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,2 @@ docopt; python_version >= '3.0' anytree; python_version >= '3.0' -psutil; python_version >= '3.0' diff --git a/setup.py b/setup.py index 7d82a89..640d22d 100644 --- a/setup.py +++ b/setup.py @@ -41,7 +41,7 @@ setup( keywords='catalog commandline indexer offline', packages=find_packages(exclude=['tests*']), - install_requires=['docopt', 'anytree','psutil'], + install_requires=['docopt', 'anytree'], extras_require={ 'dev': ['check-manifest'],