mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 14:15:55 -06:00
70 lines
2.4 KiB
Python
70 lines
2.4 KiB
Python
import os
|
|
import sys
|
|
|
|
from setuptools import find_packages, setup
|
|
|
|
try:
|
|
import nvitop.version as version
|
|
except ImportError:
|
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'nvitop'))
|
|
import version
|
|
|
|
|
|
extra_description = {}
|
|
try:
|
|
with open('README.md', mode='r') as doc:
|
|
extra_description['long_description'] = doc.read()
|
|
extra_description['long_description_content_type'] = 'text/markdown'
|
|
except (OSError, UnicodeError):
|
|
pass
|
|
|
|
setup(
|
|
name='nvitop',
|
|
version=version.__version__,
|
|
description=version.__doc__,
|
|
**extra_description,
|
|
license=version.__license__,
|
|
author=version.__author__,
|
|
author_email=version.__email__,
|
|
url="https://github.com/XuehaiPan/nvitop",
|
|
packages=find_packages(include=['nvitop', 'nvitop.*']),
|
|
entry_points={'console_scripts': ['nvitop=nvitop.cli:main']},
|
|
install_requires=[
|
|
'nvidia-ml-py == 11.450.51',
|
|
'psutil >= 5.4.2',
|
|
'cachetools >= 1.0.1',
|
|
'termcolor >= 1.0.0',
|
|
'colorama >= 0.4.0; platform_system == "Windows"',
|
|
'windows-curses >= 2.2.0; platform_system == "Windows"',
|
|
],
|
|
python_requires='>=3.5',
|
|
classifiers=[
|
|
'Development Status :: 4 - Beta',
|
|
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
|
|
'Programming Language :: Python :: 3',
|
|
'Programming Language :: Python :: 3.5',
|
|
'Programming Language :: Python :: 3.6',
|
|
'Programming Language :: Python :: 3.7',
|
|
'Programming Language :: Python :: 3.8',
|
|
'Programming Language :: Python :: 3.9',
|
|
'Programming Language :: Python :: 3.10',
|
|
'Operating System :: Microsoft :: Windows',
|
|
'Operating System :: POSIX :: Linux',
|
|
'Environment :: GPU',
|
|
'Environment :: GPU :: NVIDIA CUDA',
|
|
'Environment :: Console',
|
|
'Environment :: Console :: Curses',
|
|
'Intended Audience :: Developers',
|
|
'Intended Audience :: End Users/Desktop',
|
|
'Intended Audience :: System Administrators',
|
|
'Topic :: System :: Hardware',
|
|
'Topic :: System :: Monitoring',
|
|
'Topic :: System :: Systems Administration',
|
|
'Topic :: Utilities',
|
|
],
|
|
keywords=['nvidia', 'nvidia-smi', 'NVIDIA', 'NVML', 'CUDA', 'GPU', 'top', 'monitoring'],
|
|
project_urls={
|
|
'Bug Reports': 'https://github.com/XuehaiPan/nvitop/issues',
|
|
'Source': 'https://github.com/XuehaiPan/nvitop',
|
|
},
|
|
)
|