pyproject.toml 1.98 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "xcl-lens"
dynamic = ["version"]
description = "RCCL/NCCL log parser and analyzer"
readme = "README.md"
license = { text = "MIT" }
authors = [{ name = "alephpiece", email = "wangan.cs@gmail.com" }]
requires-python = ">=3.10"
one's avatar
one committed
13
dependencies = ["pandas>=2.0.0", "typer>=0.23"]
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
keywords = ["rccl", "nccl", "logging", "parser", "gpu"]
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"

[project.scripts]
one's avatar
one committed
32
xcl-lens = "xcl_lens.main:app"
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66

[dependency-groups]
dev = ["pytest>=8", "ruff>=0.15"]

[tool.hatch.version]
path = "src/xcl_lens/__init__.py"

[tool.hatch.build.targets.wheel]
packages = ["src/xcl_lens"]

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

[tool.pytest.ini_options]
testpaths = ["tests"]

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

[tool.ruff.lint]
select = [
    "F",   # pyflakes
    "E",   # pycodestyle errors
    "W",   # pycodestyle warnings
    "I",   # isort
    "UP",  # pyupgrade
    "B",   # flake8-bugbear
    "SIM", # flake8-simplify
    "RUF", # ruff-specific
]

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

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