| 1 |
Author: Michael R. Crusoe <[email protected]> |
| 2 |
Description: skip the JupyterLab extension for now |
| 3 |
Forwarded: not-needed |
| 4 |
Index: jupytext/pyproject.toml |
| 5 |
=================================================================== |
| 6 |
--- jupytext.orig/pyproject.toml 2024-12-08 11:09:33.135766608 +0100 |
| 7 |
+++ jupytext/pyproject.toml 2024-12-08 11:09:33.135766608 +0100 |
| 8 |
@@ -17,8 +17,6 @@ |
| 9 |
"Environment :: Console", |
| 10 |
"Framework :: Jupyter", |
| 11 |
"Framework :: Jupyter :: JupyterLab :: 4", |
| 12 |
- "Framework :: Jupyter :: JupyterLab :: Extensions", |
| 13 |
- "Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt", |
| 14 |
"Intended Audience :: Developers", |
| 15 |
"Intended Audience :: Science/Research", |
| 16 |
"Topic :: Text Processing :: Markup", |
| 17 |
@@ -119,56 +117,14 @@ |
| 18 |
# sources = ["src", "jupyterlab"] |
| 19 |
|
| 20 |
# Following config is related to JupyterLab extension |
| 21 |
-[tool.hatch.build.targets.sdist] |
| 22 |
-artifacts = ["jupyterlab/jupyterlab_jupytext/labextension"] |
| 23 |
+#[tool.hatch.build.targets.sdist] |
| 24 |
+#artifacts = ["jupyterlab/jupyterlab_jupytext/labextension"] |
| 25 |
|
| 26 |
[tool.hatch.build.targets.wheel] |
| 27 |
-packages = ["src/jupytext", "src/jupytext_config", "jupyterlab/jupyterlab_jupytext"] |
| 28 |
+packages = ["src/jupytext", "src/jupytext_config"] |
| 29 |
|
| 30 |
[tool.hatch.build.targets.wheel.shared-data] |
| 31 |
"jupyterlab/jupyter-config" = "etc/jupyter" |
| 32 |
-"jupyterlab/jupyterlab_jupytext/labextension" = "share/jupyter/labextensions/jupyterlab-jupytext" |
| 33 |
- |
| 34 |
-[tool.hatch.build.hooks.jupyter-builder] |
| 35 |
-enable-by-default = false |
| 36 |
-# We enable this hook by setting env var HATCH_BUILD_HOOKS_ENABLE=true |
| 37 |
-# So `pip install .` will **not** build JupyterLab related |
| 38 |
-# extension. To install the extension, it is required to run |
| 39 |
-# `HATCH_BUILD_HOOKS_ENABLE=true pip install .` |
| 40 |
-# Runtime dependency for this build hook |
| 41 |
-# We need jupyterlab as build time depdendency to get jlpm (wrapper around yarn) |
| 42 |
-dependencies = [ |
| 43 |
- "hatch-jupyter-builder>=0.5", "jupyterlab>=4" |
| 44 |
-] |
| 45 |
-# We use npm_builder to build the jupyterlab extension |
| 46 |
-build-function = "hatch_jupyter_builder.npm_builder" |
| 47 |
-# Hatch will mark this hook as success upon creation of following files |
| 48 |
-# in the build_dir |
| 49 |
-ensured-targets = [ |
| 50 |
- "jupyterlab/jupyterlab_jupytext/labextension/static/style.js", |
| 51 |
- "jupyterlab/jupyterlab_jupytext/labextension/package.json", |
| 52 |
-] |
| 53 |
-# If these files already exists in build_dir (after first build), |
| 54 |
-# hatch will skip build step. If there are changes in src/ of |
| 55 |
-# the extension, build will be triggered even if the build assets exist |
| 56 |
-skip-if-exists = ["jupyterlab/jupyterlab_jupytext/labextension/static/style.js"] |
| 57 |
- |
| 58 |
-[tool.hatch.build.hooks.jupyter-builder.build-kwargs] |
| 59 |
-# Root directory where build should be done |
| 60 |
-path = "jupyterlab" |
| 61 |
-# Build command that is defined in package.json |
| 62 |
-build_cmd = "build:prod" |
| 63 |
-# We use jlpm, which is wrapper around yarn to build transpiled assets |
| 64 |
-npm = ["jlpm"] |
| 65 |
- |
| 66 |
-[tool.hatch.build.hooks.jupyter-builder.editable-build-kwargs] |
| 67 |
-path = "jupyterlab" |
| 68 |
-build_cmd = "build" |
| 69 |
-npm = ["jlpm"] |
| 70 |
-# hatch-jupyter-builder hook will check the mtime of source_dir and |
| 71 |
-# compare it with build_dir to decide if build is necessary or not |
| 72 |
-source_dir = "jupyterlab/packages" |
| 73 |
-build_dir = "jupyterlab/jupyterlab_jupytext/labextension" |
| 74 |
|
| 75 |
[tool.check-wheel-contents] |
| 76 |
ignore = ["W002"] |