Skip to content

Commit e24daea

Browse files
Build with "build" instead of "hatch" (#1010)
* Add upper bound on hatchling * I don't care about hatch, I don't want to care about this * This is the way * This is the way * Now this is the way * Try removing the upper bound * Adding build to build requirements * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 9ca80e1 commit e24daea

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
shell: bash -l {0}
6666
run: |
6767
set -eux
68-
pip install hatch
68+
pip install build
6969
yarn build:packages
7070
7171
- name: Upload extension packages

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ build:
2424
- /bin/bash --login -c "micromamba self-update --version 2.0.7"
2525
# Create the isolated env for building JupyterGIS
2626
- /bin/bash --login -c "micromamba create -n jupytergis-build -c conda-forge nodejs hatch pip python=3.13"
27-
- /bin/bash --login -c "micromamba run -n jupytergis-build pip install 'jupyterlab==4.3' 'datamodel-code-generator>=0.23.0'"
27+
- /bin/bash --login -c "micromamba run -n jupytergis-build pip install build 'jupyterlab==4.3' 'datamodel-code-generator>=0.23.0'"
2828
# Build JupyterGIS Javascript packages; required for building the docs env
2929
- /bin/bash --login -c "micromamba run -n jupytergis-build jlpm install"
3030
- /bin/bash --login -c "micromamba run -n jupytergis-build jlpm build"

requirements-build.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
build
12
# minimum needed to build jupytergis.
23
datamodel-code-generator>=0.23.0
34
hatchling>=1.5.0,<2

scripts/build_packages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def build_packages():
2424
]
2525

2626
for py_package in python_packages:
27-
execute("hatch build", cwd=root_path / python_package_prefix / py_package)
27+
execute("python -m build", cwd=root_path / python_package_prefix / py_package)
2828

2929

3030
if __name__ == "__main__":

0 commit comments

Comments
 (0)