Skip to content

Commit bf27c7f

Browse files
committed
build: Add hatch_build in sdist to fix installation issues
1 parent 72b2b10 commit bf27c7f

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- [Improvement] Add hatch_build.py in sdist target to fix the installation issues (by @dawoudsheraz)

pyproject.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,13 @@ classifiers = [
2929
dependencies = [
3030
"tutor>=19.0.0,<20.0.0",
3131
]
32-
optional-dependencies = { dev = ["tutor[dev]>=19.0.0,<20.0.0"] }
32+
33+
[project.optional-dependencies]
34+
dev = [
35+
"tutor[dev]>=19.0.0,<20.0.0",
36+
"black",
37+
"pylint"
38+
]
3339

3440
# These fields will be set by hatch_build.py
3541
dynamic = ["version"]
@@ -57,7 +63,8 @@ packages = ["tutorxqueue"]
5763
[tool.hatch.build.targets.sdist]
5864
# Disable strict naming, otherwise twine is not able to detect name/version
5965
strict-naming = false
60-
include = [ "/tutorxqueue"]
66+
include = [ "/tutorxqueue", ".hatch_build.py"]
67+
exclude = ["tests*"]
6168

6269
[project.entry-points."tutor.plugin.v1"]
6370
xqueue = "tutorxqueue.plugin"

0 commit comments

Comments
 (0)