93 lines
1.9 KiB
TOML
93 lines
1.9 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=61.0", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "hbd"
|
|
version = "5.3.10"
|
|
description = "Heartbeat monitoring system — client (hbc) and server (hbd)"
|
|
readme = "README.md"
|
|
requires-python = ">=3.11"
|
|
dependencies = [
|
|
"PyYAML>=6.0",
|
|
]
|
|
license = "MIT"
|
|
license-files = ["LICENSE.md"]
|
|
keywords = ["heartbeat", "monitoring", "dns", "websocket", "system-monitoring"]
|
|
authors = [
|
|
{ name = "Andreas Wrede" }
|
|
]
|
|
classifiers = [
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Programming Language :: Python :: 3.13",
|
|
"Operating System :: POSIX :: Linux",
|
|
"Operating System :: POSIX :: BSD",
|
|
"Topic :: System :: Monitoring",
|
|
"Topic :: System :: Networking :: Monitoring",
|
|
]
|
|
|
|
[project.urls]
|
|
Repository = "https://git.wrede.ca/andreas/heartbeat"
|
|
|
|
[project.optional-dependencies]
|
|
# Client-only dependencies (hbc - system monitoring client)
|
|
client = [
|
|
"psutil>=5.9.0",
|
|
]
|
|
|
|
# Server-only dependencies (hbd - heartbeat daemon/server)
|
|
server = [
|
|
"websockets>=13.2",
|
|
"mattermostdriver>=7.3.0",
|
|
"aiohttp>=3.11",
|
|
"Jinja2>=3.1.6",
|
|
"matrix-nio>=0.24",
|
|
"ruamel.yaml>=0.18",
|
|
]
|
|
|
|
# Minimal client — hbc_mini only, no external dependencies
|
|
mini = []
|
|
|
|
# Install both client and server
|
|
all = [
|
|
"hbd[client,server]",
|
|
]
|
|
|
|
# Development dependencies
|
|
dev = [
|
|
"pytest>=7.0",
|
|
"pytest-cov>=4.0",
|
|
"flake8>=5.0",
|
|
"mypy>=1.10",
|
|
"black>=23.0",
|
|
"isort>=5.0",
|
|
"tox>=4.0",
|
|
]
|
|
|
|
[project.scripts]
|
|
hbd = "hbd.server.cli:main"
|
|
hbc = "hbd.client.main:main"
|
|
|
|
[tool.setuptools]
|
|
script-files = ["scripts/hb_install.sh", "scripts/hbc_mini.py"]
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["."]
|
|
include = ["hbd*"]
|
|
|
|
[tool.setuptools.package-data]
|
|
"hbd.server" = ["*.yaml", "static/*", "static/*/*", "templates/*"]
|
|
"hbd.client" = ["*.yaml"]
|
|
|
|
|
|
[tool.black]
|
|
line-length = 111
|
|
|
|
[tool.flake8]
|
|
max-line-length = 111
|
|
|
|
[tool.pylint.format]
|
|
max-line-length = 111
|