Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: use jlpm to install dependencies #128

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

agoose77
Copy link

@agoose77 agoose77 commented Mar 12, 2023

hatch-jupyter-builder let's us choose which package manager to use, i.e. npm, yarn, etc.

This PR uses jlpm instead of yarn to install the NodeJS dependencies. I have no idea whether there is a reason to avoid using the bundled yarn from JupyterLab. If we want to require that users install and use yarn, then we'd need to change this to yarn. This change brings us closer to https://github.com/jupyterlab/extension-cookiecutter-ts, which uses jlpm.

The benefit of jlpm is that it's available from PyPI, so any sdist installation will just work according to PEP 517. If we require yarn here, builds from an sdist will fail if the host does not have the binary.

Fixes #124 and fixes #126.

Use `jlpm` to build widget
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant