pyproject.toml 1.97 KB
Newer Older
one's avatar
one committed
1
[build-system]
one's avatar
one committed
2
3
requires = ["hatchling"]
build-backend = "hatchling.build"
one's avatar
one committed
4
5
6
7

[project]
name = "hytop"
dynamic = ["version"]
8
description = "Lightweight monitoring toolkit for Hygon DCU clusters"
one's avatar
one committed
9
readme = "README.md"
10
11
license = { text = "MIT" }
authors = [{ name = "alephpiece", email = "wangan.cs@gmail.com" }]
one's avatar
one committed
12
requires-python = ">=3.10"
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
dependencies = ["rich>=14", "typer>=0.23"]
keywords = ["monitoring", "gpu", "dcu", "hygon", "hytop"]
classifiers = [
    "License :: OSI Approved :: MIT License",
    "Programming Language :: Python :: 3",
    "Programming Language :: Python :: 3.10",
    "Programming Language :: Python :: 3.11",
    "Programming Language :: Python :: 3.12",
    "Programming Language :: Python :: 3.13",
    "Operating System :: POSIX :: Linux",
    "Environment :: Console",
]

[project.urls]
Homepage = "https://github.com/alephpiece/hg-misc-tools"
Repository = "https://github.com/alephpiece/hg-misc-tools"
Issues = "https://github.com/alephpiece/hg-misc-tools/issues"
one's avatar
one committed
30
31
32
33

[project.scripts]
hytop = "hytop.main:main"

one's avatar
one committed
34
35
[dependency-groups]
dev = ["pytest>=8", "ruff>=0.15"]
one's avatar
one committed
36

one's avatar
one committed
37
38
[tool.hatch.version]
path = "src/hytop/__init__.py"
one's avatar
one committed
39

one's avatar
one committed
40
41
[tool.hatch.build.targets.wheel]
packages = ["src/hytop"]
one's avatar
one committed
42

43
44
45
[tool.hatch.build.targets.sdist]
exclude = ["tests/__pycache__", ".ruff_cache", ".pytest_cache"]

one's avatar
one committed
46
47
48
49
50
51
52
53
54
55
56
[tool.pytest.ini_options]
testpaths = ["tests"]

[tool.ruff]
target-version = "py310"
line-length = 100
src = ["src", "tests"]

[tool.ruff.lint]
select = [
    "F",   # pyflakes
57
58
    "E",   # pycodestyle errors
    "W",   # pycodestyle warnings
one's avatar
one committed
59
60
61
62
63
64
    "I",   # isort
    "UP",  # pyupgrade
    "B",   # flake8-bugbear
    "SIM", # flake8-simplify
    "RUF", # ruff-specific
]
one's avatar
one committed
65
66

[tool.bumpversion]
one's avatar
one committed
67
current_version = "0.1.2"
one's avatar
one committed
68
69
70
71
72
73
74
75
76
77
commit = true
commit_args = ""
tag = true
tag_name = "hytop-{new_version}"
message = "[hytop] Bump version: {current_version} → {new_version}"

[[tool.bumpversion.files]]
filename = "src/hytop/__init__.py"
search = "__version__ = \"{current_version}\""
replace = "__version__ = \"{new_version}\""