Skip to content

Commit ecb21e3

Browse files
committed
add sdist handling
1 parent edff326 commit ecb21e3

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

hatch_build.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
class CustomHook(BuildHookInterface):
99
def initialize(self, version, build_data):
10-
1110
here = os.path.abspath(os.path.dirname(__file__))
1211
sys.path.insert(0, here)
1312
from ipykernel.kernelspec import make_ipkernel_cmd, write_kernel_spec

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ test = [
4848

4949
# Used to call hatch_build.py
5050
[tool.hatch.build.targets.wheel.hooks.custom]
51+
[tool.hatch.build.targets.sdist.hooks.custom]
5152

5253
[tool.hatch.build.targets.wheel.shared-data]
5354
"data_kernelspec" = "share/jupyter/kernels/python3"

0 commit comments

Comments
 (0)