5b478d2831
Version bumps and release tags were entirely manual; the only CI automation was sync-version-on-tag, which corrects pyproject.toml if a hand-pushed tag drifted. This flips that: a new bump-version job (needs the four existing checks, gated to actual merge commits on master via HEAD^@'s parent count so direct/squash/rebase pushes are untouched) uses bump-my-version to auto-bump the patch version when a merged branch didn't already bump it itself, then generates a changelog entry with git-cliff and pushes a matching vX.Y.Z tag. git-cliff's cliff.toml is tuned to this repo's plain imperative commit style (no feat:/fix: prefixes): commits are grouped Added/Fixed/Removed/Changed by leading verb, "(gitea #N)" is linkified, and merge/[skip ci] commits are dropped. Per user decision during planning: the changelog generator folds in @lars's comment on the issue (asking to fold in changelog generation rather than deferring it), and CHANGELOG.md starts fresh with no backfill of v0.2.0-v0.3.3. sync-version-on-tag is left untouched as the safety net for hand-tagging. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
106 lines
2.0 KiB
TOML
106 lines
2.0 KiB
TOML
[project]
|
|
name = "giant"
|
|
version = "0.3.3"
|
|
description = "Geant4 step-function surrogate via conditional flow matching"
|
|
readme = "README.md"
|
|
requires-python = ">=3.12"
|
|
dependencies = [
|
|
"numpy>=1.26,<3",
|
|
"pandas>=2.2,<4",
|
|
"pyarrow>=16,<25",
|
|
"tqdm>=4.60,<5",
|
|
"typer>=0.12,<1",
|
|
"pyyaml>=6,<7",
|
|
"particle>=1.0,<2",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
cpu = [
|
|
"torch>=2.3,<2.4",
|
|
]
|
|
cuda = [
|
|
"torch>=2.3,<2.4",
|
|
]
|
|
dev = [
|
|
"pytest>=8,<10",
|
|
"pytest-cov>=5,<8",
|
|
"ruff>=0.15,<1",
|
|
"ty>=0.0.50,<0.1",
|
|
"bump-my-version>=1.2,<2",
|
|
"git-cliff>=2,<3",
|
|
"giant[convert,analysis,geometry,wandb]",
|
|
]
|
|
geometry = [
|
|
"scikit-learn>=1.4,<2",
|
|
]
|
|
wandb = [
|
|
"wandb>=0.16,<1",
|
|
]
|
|
convert = [
|
|
"uproot>=5.3,<6",
|
|
"awkward>=2.6,<3",
|
|
"polars>=1.0,<2",
|
|
]
|
|
analysis = [
|
|
"matplotlib>=3.8,<4",
|
|
"polars>=1.0,<2",
|
|
"ipykernel>=7.3.0",
|
|
# KIT matplotlib theme, published from git.larsbogner.de. Only the local
|
|
# `giant analyze render` step imports it; compute workers never do.
|
|
"plotstyle>=1.0.0",
|
|
]
|
|
|
|
[project.scripts]
|
|
giant = "giant.cli:app"
|
|
dwarf = "giant.tools.dwarf:app"
|
|
|
|
[tool.ruff]
|
|
line-length = 120
|
|
|
|
[tool.coverage.run]
|
|
source = ["giant"]
|
|
omit = ["*/legacy/*"]
|
|
|
|
[tool.coverage.report]
|
|
exclude_also = [
|
|
"if TYPE_CHECKING:",
|
|
"raise NotImplementedError",
|
|
]
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["giant"]
|
|
|
|
[tool.uv]
|
|
conflicts = [
|
|
[
|
|
{ extra = "cpu" },
|
|
{ extra = "cuda" },
|
|
],
|
|
]
|
|
|
|
[tool.uv.sources]
|
|
torch = [
|
|
{ index = "pytorch-cpu", extra = "cpu" },
|
|
{ index = "pytorch-cu118", extra = "cuda" },
|
|
]
|
|
plotstyle = { index = "larsbogner" }
|
|
|
|
[[tool.uv.index]]
|
|
name = "pytorch-cpu"
|
|
url = "https://download.pytorch.org/whl/cpu"
|
|
explicit = true
|
|
|
|
[[tool.uv.index]]
|
|
name = "pytorch-cu118"
|
|
url = "https://download.pytorch.org/whl/cu118"
|
|
explicit = true
|
|
|
|
[[tool.uv.index]]
|
|
name = "larsbogner"
|
|
url = "https://git.larsbogner.de/api/packages/lars/pypi/simple/"
|
|
explicit = true
|