Skip to content

Commit 7c56128

Browse files
authored
Get away from hatch build (#822)
* Get away from hatch build * Wat * Install hatch before bump
1 parent d943ce1 commit 7c56128

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
shell: bash -l {0}
7474
run: |
7575
set -eux
76-
pip install hatch
76+
pip install build
7777
yarn build:packages
7878
7979
- name: Upload extension packages

.github/workflows/check-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
jupyterlab=4
2222
yarn=3
2323
pip
24+
tomlkit
2425
jupyter-releaser
2526
2627
- name: Check Release

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ python_packages = [
2727
]
2828

2929
[tool.jupyter-releaser.hooks]
30-
before-bump-version = ["python -m pip install hatch 'jupyterlab>=4.0.0'"]
30+
before-bump-version = ["python -m pip install hatch build 'jupyterlab>=4.0.0'"]
3131
before-build-npm = [
3232
"python -m pip install datamodel-code-generator",
3333
"jlpm",

scripts/build_packages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def build_packages():
2323
execute(install_build_deps)
2424

2525
for py_package in python_packages:
26-
execute("hatch build", cwd=root_path / python_package_prefix / py_package)
26+
execute("python -m build", cwd=root_path / python_package_prefix / py_package)
2727

2828

2929
if __name__ == "__main__":

0 commit comments

Comments
 (0)