2024-10-20 21:32:23 +03:00
|
|
|
[project]
|
2024-10-23 23:06:08 +03:00
|
|
|
authors = [{name = "Nicolas Hennion", email = "nicolas@nicolargo.com"}]
|
2024-10-20 21:32:23 +03:00
|
|
|
classifiers = [
|
2024-10-23 23:06:08 +03:00
|
|
|
"Development Status :: 5 - Production/Stable",
|
|
|
|
"Environment :: Console :: Curses",
|
|
|
|
"Environment :: Web Environment",
|
|
|
|
"Framework :: FastAPI",
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"Intended Audience :: End Users/Desktop",
|
|
|
|
"Intended Audience :: System Administrators",
|
|
|
|
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"Programming Language :: Python :: 3.8",
|
|
|
|
"Programming Language :: Python :: 3.9",
|
|
|
|
"Programming Language :: Python :: 3.10",
|
|
|
|
"Programming Language :: Python :: 3.11",
|
|
|
|
"Programming Language :: Python :: 3.12",
|
|
|
|
"Programming Language :: Python :: 3.13",
|
|
|
|
"Topic :: System :: Monitoring",
|
2024-10-20 21:32:23 +03:00
|
|
|
]
|
|
|
|
dependencies = [
|
2024-10-23 23:06:08 +03:00
|
|
|
"defusedxml",
|
|
|
|
"packaging",
|
|
|
|
"psutil>=5.6.7",
|
|
|
|
"fastapi>=0.82.0; platform_system == 'Windows'",
|
|
|
|
"uvicorn; platform_system == 'Windows'",
|
|
|
|
"jinja2; platform_system == 'Windows'",
|
|
|
|
"requests; platform_system == 'Windows'",
|
2024-10-20 21:32:23 +03:00
|
|
|
]
|
2024-10-23 23:06:08 +03:00
|
|
|
description = "A cross-platform curses-based monitoring tool"
|
2024-10-24 01:19:02 +03:00
|
|
|
dynamic = ["version"]
|
2024-10-23 23:06:08 +03:00
|
|
|
keywords = ["cli", "curses", "monitoring", "system"]
|
|
|
|
license = {text = "LGPLv3"}
|
|
|
|
name = "Glances"
|
|
|
|
readme = "README.rst"
|
|
|
|
requires-python = ">=3.8"
|
2024-10-20 21:32:23 +03:00
|
|
|
urls.Homepage = "https://github.com/nicolargo/glances"
|
|
|
|
|
|
|
|
[project.optional-dependencies]
|
|
|
|
action = ["chevron"]
|
2024-10-23 23:06:08 +03:00
|
|
|
all = ["glances[action,browser,cloud,containers,export,gpu,graph,ip,raid,sensors,smart,snmp,sparklines,web,wifi]"]
|
2024-10-20 21:32:23 +03:00
|
|
|
browser = ["zeroconf>=0.19.1"]
|
|
|
|
cloud = ["requests"]
|
|
|
|
containers = ["docker>=6.1.1", "packaging", "podman", "python-dateutil", "six"]
|
|
|
|
export = [
|
2024-10-23 23:06:08 +03:00
|
|
|
"bernhard",
|
|
|
|
"cassandra-driver",
|
|
|
|
"elasticsearch",
|
|
|
|
"graphitesender",
|
|
|
|
"ibmcloudant",
|
|
|
|
"influxdb-client",
|
|
|
|
"influxdb>=1.0.0",
|
|
|
|
"kafka-python",
|
|
|
|
"paho-mqtt",
|
|
|
|
"pika",
|
|
|
|
"potsdb",
|
|
|
|
"prometheus_client",
|
|
|
|
"pymongo",
|
|
|
|
"pyzmq",
|
|
|
|
"statsd",
|
2024-10-20 21:32:23 +03:00
|
|
|
]
|
|
|
|
gpu = ["nvidia-ml-py"]
|
|
|
|
graph = ["pygal"]
|
|
|
|
ip = ["netifaces"]
|
|
|
|
raid = ["pymdstat"]
|
|
|
|
sensors = ["batinfo; platform_system == 'Linux'"]
|
|
|
|
smart = ["pySMART.smartx"]
|
|
|
|
snmp = ["pysnmp"]
|
|
|
|
sparklines = ["sparklines"]
|
|
|
|
web = ["fastapi>=0.82.0", "jinja2", "requests", "uvicorn"]
|
|
|
|
wifi = ["wifi"]
|
|
|
|
|
|
|
|
[project.scripts]
|
|
|
|
glances = "glances:main"
|
|
|
|
|
|
|
|
[tool.setuptools.data-files]
|
|
|
|
"share/doc/glances" = [
|
2024-10-23 23:06:08 +03:00
|
|
|
"AUTHORS",
|
|
|
|
"COPYING",
|
|
|
|
"NEWS.rst",
|
|
|
|
"README.rst",
|
|
|
|
"SECURITY.md",
|
|
|
|
"CONTRIBUTING.md",
|
|
|
|
"conf/glances.conf",
|
2024-10-20 21:32:23 +03:00
|
|
|
]
|
|
|
|
"share/man/man1" = ["docs/man/glances.1"]
|
|
|
|
|
2024-10-24 01:19:02 +03:00
|
|
|
[tool.setuptools.dynamic]
|
|
|
|
version = { attr = "glances.__version__" }
|
|
|
|
|
2024-10-20 21:32:23 +03:00
|
|
|
[tool.setuptools.packages.find]
|
|
|
|
include = ["glances*"]
|
|
|
|
|
2023-05-01 11:12:09 +03:00
|
|
|
[tool.ruff]
|
2024-05-16 15:01:42 +03:00
|
|
|
line-length = 120
|
|
|
|
target-version = "py38"
|
|
|
|
|
|
|
|
[tool.ruff.format]
|
|
|
|
quote-style = "preserve"
|
|
|
|
|
|
|
|
[tool.ruff.lint]
|
2023-05-01 11:12:09 +03:00
|
|
|
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
|
2024-10-23 23:06:08 +03:00
|
|
|
ignore = ["N801", "N802", "N803", "N805", "N806", "N807", "N811", "N812", "N813", "N814", "N815", "N816", "N817", "N818"]
|
2024-05-16 23:53:53 +03:00
|
|
|
select = [
|
2024-10-23 23:06:08 +03:00
|
|
|
# "A",
|
|
|
|
# "B",
|
|
|
|
# "S",
|
|
|
|
"C90", # mccabe
|
|
|
|
"E", # pycodestyle
|
|
|
|
"F", # Pyflakes
|
|
|
|
"I", # isort
|
|
|
|
"N", # pep8-naming
|
|
|
|
"W", # pycodestyle
|
|
|
|
"UP", # pyupgrde
|
|
|
|
"C4", # flake8-comprehensions
|
|
|
|
"RET", # flake8-return
|
|
|
|
# "PL",
|
|
|
|
# "FBT", # flake8-boolean-trap
|
|
|
|
# "RUF", # Ruff-specific rules
|
|
|
|
# "PERF", # Perflint
|
2024-05-16 23:53:53 +03:00
|
|
|
]
|
2023-05-01 11:12:09 +03:00
|
|
|
|
|
|
|
# Allow autofix for all enabled rules (when `--fix`) is provided.
|
2024-10-23 23:06:08 +03:00
|
|
|
fixable = [
|
|
|
|
"A",
|
|
|
|
"B",
|
|
|
|
"C",
|
|
|
|
"D",
|
|
|
|
"E",
|
|
|
|
"F",
|
|
|
|
"G",
|
|
|
|
"I",
|
|
|
|
"N",
|
|
|
|
"Q",
|
|
|
|
"S",
|
|
|
|
"T",
|
|
|
|
"W",
|
|
|
|
"ANN",
|
|
|
|
"ARG",
|
|
|
|
"BLE",
|
|
|
|
"COM",
|
|
|
|
"DJ",
|
|
|
|
"DTZ",
|
|
|
|
"EM",
|
|
|
|
"ERA",
|
|
|
|
"EXE",
|
|
|
|
"FBT",
|
|
|
|
"ICN",
|
|
|
|
"INP",
|
|
|
|
"ISC",
|
|
|
|
"NPY",
|
|
|
|
"PD",
|
|
|
|
"PGH",
|
|
|
|
"PIE",
|
|
|
|
"PL",
|
|
|
|
"PT",
|
|
|
|
"PTH",
|
|
|
|
"PYI",
|
|
|
|
"RET",
|
|
|
|
"RSE",
|
|
|
|
"RUF",
|
|
|
|
"SIM",
|
|
|
|
"SLF",
|
|
|
|
"TCH",
|
|
|
|
"TID",
|
|
|
|
"TRY",
|
|
|
|
"UP",
|
|
|
|
"YTT",
|
|
|
|
]
|
2023-05-01 11:12:09 +03:00
|
|
|
unfixable = []
|
|
|
|
|
|
|
|
# Exclude a variety of commonly ignored directories.
|
|
|
|
exclude = [
|
2024-10-23 23:06:08 +03:00
|
|
|
".bzr",
|
|
|
|
".direnv",
|
|
|
|
".eggs",
|
|
|
|
".git",
|
|
|
|
".hg",
|
|
|
|
".mypy_cache",
|
|
|
|
".nox",
|
|
|
|
".pants.d",
|
|
|
|
".pytype",
|
|
|
|
".ruff_cache",
|
|
|
|
".svn",
|
|
|
|
".tox",
|
|
|
|
".venv",
|
|
|
|
"__pypackages__",
|
|
|
|
"_build",
|
|
|
|
"buck-out",
|
|
|
|
"build",
|
|
|
|
"dist",
|
|
|
|
"node_modules",
|
|
|
|
"venv",
|
|
|
|
"venv-dev",
|
|
|
|
"venv-min",
|
|
|
|
"docs",
|
|
|
|
"test-data",
|
|
|
|
"./glances/outputs/static/*",
|
2023-05-01 11:12:09 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
# Allow unused variables when underscore-prefixed.
|
|
|
|
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
|
|
|
|
|
2024-05-16 15:01:42 +03:00
|
|
|
[tool.ruff.lint.mccabe]
|
2023-05-01 11:12:09 +03:00
|
|
|
# Unlike Flake8, default to a complexity level of 10.
|
2024-10-20 21:32:23 +03:00
|
|
|
max-complexity = 21
|
|
|
|
|
|
|
|
[build-system]
|
|
|
|
build-backend = "setuptools.build_meta"
|
2024-10-23 23:06:08 +03:00
|
|
|
requires = ["setuptools>=68"]
|