Skip to content

Commit 7586742

Browse files
authored
Use hatch vcs for versioning (#24)
1 parent 043a4a3 commit 7586742

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pyproject.toml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# pyproject.toml
22

33
[build-system]
4-
requires = ["hatchling"]
4+
requires = ["hatchling", "hatch-vcs"]
55
build-backend = "hatchling.build"
66

77
[project]
88
name = "attn_gym"
9-
version = "0.0.1"
109
authors = [{ name = "Driss Guessous", email = "[email protected]" }]
1110
description = "Helpful tools and examples for working with flex-attention"
1211
readme = "README.md"
12+
dynamic = ["version"]
1313
requires-python = ">=3.9"
1414
classifiers = [
1515
"Programming Language :: Python :: 3",
@@ -41,6 +41,8 @@ viz = [
4141
]
4242

4343
# ---------- TOOL CONFIGURATIONS ------------
44+
[tool.hatch.version]
45+
source = "vcs"
4446

4547
# ---------- RUFF ------------
4648
[tool.ruff]
@@ -74,6 +76,7 @@ exclude = [
7476
"node_modules",
7577
"site-packages",
7678
"venv",
79+
"*.ipynb",
7780
]
7881

7982
[tool.ruff.lint]

0 commit comments

Comments
 (0)