feat: auto-derive version from git tags using setuptools-scm

Replace hardcoded version with setuptools-scm so the version updates
automatically from git tags. The ASCII banner strips the dirty date
suffix but preserves the git node hash.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Justin Bollinger
2026-02-13 21:58:17 -05:00
parent d59be81c48
commit 399c1639db
4 changed files with 16 additions and 5 deletions

View File

@@ -1,10 +1,10 @@
[build-system]
requires = ["setuptools>=69"]
requires = ["setuptools>=69", "setuptools-scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "hate_crack"
version = "2.0"
dynamic = ["version"]
description = "Menu driven Python wrapper for hashcat"
readme = "README.md"
requires-python = ">=3.13"
@@ -37,6 +37,9 @@ hate_crack = [
"princeprocessor/**",
]
[tool.setuptools_scm]
version_file = "hate_crack/_version.py"
[tool.ruff]
exclude = [
"build",