Skip to content

Commit db6b62d

Browse files
author
Edly
committed
Merge remote-tracking branch 'origin/release'
2 parents 3a87e1e + d7b8d63 commit db6b62d

File tree

3 files changed

+4
-24
lines changed

3 files changed

+4
-24
lines changed

.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 @HammadYousaf)

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ dependencies = [
2727
"tutor>=21.0.0,<22.0.0"
2828
]
2929

30-
# hatch_build.py will set it later
3130
dynamic = ["version"]
3231

3332
[project.optional-dependencies]
@@ -55,16 +54,16 @@ build-backend = "hatchling.build"
5554
[tool.hatch.build.targets.sdist]
5655
# Disable strict naming, otherwise twine is not able to detect name/version
5756
strict-naming = false
58-
include = ["/tutorindigo", ".hatch_build.py"]
57+
include = ["/tutorindigo"]
5958
exclude = ["tests*"]
6059

6160
# we need this becuase our project escapes default hatch file selection.
6261
# see https://hatch.pypa.io/latest/plugins/builder/wheel/#default-file-selection
6362
[tool.hatch.build.targets.wheel]
6463
packages = ["/tutorindigo"]
6564

66-
[tool.hatch.metadata.hooks.custom]
67-
path = ".hatch_build.py"
65+
[tool.hatch.version]
66+
path = "tutorindigo/__about__.py"
6867

6968
[tool.ruff]
7069
exclude = ["templates", "docs/_ext"]

0 commit comments

Comments
 (0)