Skip to content

Commit 71bdd40

Browse files
committed
Use hatch backend and dynamic versioning
1 parent ae4eb89 commit 71bdd40

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
[build-system]
2-
requires = ["uv_build>=0.8.7"]
3-
build-backend = "uv_build"
2+
requires = ["hatchling", "hatch-vcs"]
3+
build-backend = "hatchling.build"
44

55
[project]
66
name = "module-name"
77
requires-python = ">=3.9"
8-
version = "2.3.0"
98
description = "Module Description"
109
readme = "README.md"
1110
license = { file = "LICENSE" }
@@ -20,6 +19,7 @@ classifiers = [
2019
"Programming Language :: Python :: 3 :: Only",
2120
"Programming Language :: Python :: Implementation :: CPython",
2221
]
22+
dynamic = ["version"]
2323
dependencies = [
2424
"httpx",
2525
]
@@ -47,12 +47,12 @@ homepage = "https://github.com/[ORG NAME]/[REPO NAME]"
4747
# [project.scripts]
4848
# python-src-example = "module_name.sample:main"
4949

50+
[tool.hatch.version]
51+
source = "vcs"
52+
5053
[tool.black]
5154
line-length = 100
5255

53-
[tool.setuptools.package-data]
54-
"module_name" = ["py.typed"]
55-
5656
[tool.mypy]
5757
check_untyped_defs = true
5858
disallow_any_generics = true

uv.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)