chore: migrate build system to hatch, switch dependency management to uv, and update CI workflow

This commit is contained in:
2026-02-28 18:58:24 -03:00
parent 636c65c07c
commit 2765e5b86c
5 changed files with 1472 additions and 871 deletions

View File

@@ -9,40 +9,37 @@ readme = "README.md"
license = "GPL-2.0-only"
scripts = { diceplayer = "diceplayer.__main__:main" }
requires-python = ">=3.9"
dynamic = ["version", "dependencies"]
dynamic = ["version"]
# Poetry configuration
[tool.poetry]
version = "0.0.0"
dependencies = [
"numpy>=2.0.2",
"argparse>=1.4.0",
"setproctitle>=1.3.2",
"pyyaml>=6.0",
"pydantic>=2.12.5",
"typing-extensions>=4.15.0"
]
[tool.poetry.dependencies]
numpy = "^2.0.2"
argparse = "^1.4.0"
setproctitle = "^1.3.2"
pyyaml = "^6.0"
pydantic = "^2.12.5"
typing-extensions = "^4.15.0"
[tool.poetry.group.dev.dependencies]
coverage = "^7.2.7"
isort = "^5.13.2"
black = "^24.4.2"
pre-commit = "^3.7.1"
poethepoet = "^0.27.0"
ruff = "^0.15.2"
[dependency-groups]
dev = [
"coverage>=7.2.7",
"isort>=5.13.2",
"black>=24.4.2",
"pre-commit>=3.7.1",
"poethepoet>=0.27.0",
"ruff>=0.15.2"
]
# Build system
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
[tool.hatch.version]
source = "vcs"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry_dynamic_versioning.backend"
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
# POE Tasks