Skip to content

Commit a65d6fa

Browse files
chore: remove unnecessary Hatch version metadata hook (#34)
1 parent c198413 commit a65d6fa

3 files changed

Lines changed: 4 additions & 25 deletions

File tree

.hatch_build.py

Lines changed: 0 additions & 20 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
"tutor-mfe>=21.0.0,<22.0.0"
3232
]
33-
# these fields will be set by hatch_build.py
3433
dynamic = ["version"]
3534

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

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

5755
[build-system]
5856
requires = ["hatchling"]
@@ -61,7 +59,7 @@ build-backend = "hatchling.build"
6159
[tool.hatch.build.targets.sdist]
6260
# Disable strict naming, otherwise twine is not able to detect name/version
6361
strict-naming = false
64-
include = ["/tutorjupyter", ".hatch_build.py"]
62+
include = ["/tutorjupyter"]
6563
exclude = ["tests*"]
6664

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

0 commit comments

Comments
 (0)