Skip to content

Commit 0e0532d

Browse files
chore: remove unnecessary Hatch version metadata hook (#73)
1 parent ca1bb98 commit 0e0532d

File tree

3 files changed

+4
-27
lines changed

3 files changed

+4
-27
lines changed

.hatch_build.py

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- [chore] Remove unnecessary hatch definition for version. (by @Abdul-Muqadim-Arbisoft)

pyproject.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ dependencies = [
3030
"tutor>=21.0.0,<22.0.0"
3131
]
3232

33-
# these fields will be set by hatch_build.py
3433
dynamic = ["version"]
3534

3635
[project.optional-dependencies]
@@ -51,9 +50,8 @@ Issues = "https://github.com/overhangio/tutor-forum/issues"
5150
Changelog = "https://github.com/overhangio/tutor-forum/blob/release/CHANGELOG.md"
5251
Community = "https://discuss.openedx.org/tag/tutor"
5352

54-
# Hatch-specific configuration
55-
[tool.hatch.metadata.hooks.custom]
56-
path = ".hatch_build.py"
53+
[tool.hatch.version]
54+
path = "tutorforum/__about__.py"
5755

5856
[build-system]
5957
requires = ["hatchling"]
@@ -62,7 +60,7 @@ build-backend = "hatchling.build"
6260
[tool.hatch.build.targets.sdist]
6361
# Disable strict naming so that tools like twine can detect the version
6462
strict-naming = false
65-
include = [ "/tutorforum", ".hatch_build.py" ]
63+
include = [ "/tutorforum"]
6664
exclude = ["tests*"]
6765

6866
[tool.hatch.build.targets.wheel]

0 commit comments

Comments
 (0)