Author: Michael R. Crusoe <crusoe@debian.org>
Description: skip the JupyterLab extension for now
Forwarded: not-needed
Index: jupytext/pyproject.toml
===================================================================
--- jupytext.orig/pyproject.toml	2024-12-08 11:09:33.135766608 +0100
+++ jupytext/pyproject.toml	2024-12-08 11:09:33.135766608 +0100
@@ -17,8 +17,6 @@
     "Environment :: Console",
     "Framework :: Jupyter",
     "Framework :: Jupyter :: JupyterLab :: 4",
-    "Framework :: Jupyter :: JupyterLab :: Extensions",
-    "Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt",
     "Intended Audience :: Developers",
     "Intended Audience :: Science/Research",
     "Topic :: Text Processing :: Markup",
@@ -119,56 +117,14 @@
 # sources = ["src", "jupyterlab"]
 
 # Following config is related to JupyterLab extension
-[tool.hatch.build.targets.sdist]
-artifacts = ["jupyterlab/jupyterlab_jupytext/labextension"]
+#[tool.hatch.build.targets.sdist]
+#artifacts = ["jupyterlab/jupyterlab_jupytext/labextension"]
 
 [tool.hatch.build.targets.wheel]
-packages = ["src/jupytext", "src/jupytext_config", "jupyterlab/jupyterlab_jupytext"]
+packages = ["src/jupytext", "src/jupytext_config"]
 
 [tool.hatch.build.targets.wheel.shared-data]
 "jupyterlab/jupyter-config" = "etc/jupyter"
-"jupyterlab/jupyterlab_jupytext/labextension" = "share/jupyter/labextensions/jupyterlab-jupytext"
-
-[tool.hatch.build.hooks.jupyter-builder]
-enable-by-default = false
-# We enable this hook by setting env var HATCH_BUILD_HOOKS_ENABLE=true
-# So `pip install .` will **not** build JupyterLab related
-# extension. To install the extension, it is required to run
-# `HATCH_BUILD_HOOKS_ENABLE=true pip install .`
-# Runtime dependency for this build hook
-# We need jupyterlab as build time depdendency to get jlpm (wrapper around yarn)
-dependencies = [
-    "hatch-jupyter-builder>=0.5", "jupyterlab>=4"
-]
-# We use npm_builder to build the jupyterlab extension
-build-function = "hatch_jupyter_builder.npm_builder"
-# Hatch will mark this hook as success upon creation of following files
-# in the build_dir
-ensured-targets = [
-    "jupyterlab/jupyterlab_jupytext/labextension/static/style.js",
-    "jupyterlab/jupyterlab_jupytext/labextension/package.json",
-]
-# If these files already exists in build_dir (after first build),
-# hatch will skip build step. If there are changes in src/ of
-# the extension, build will be triggered even if the build assets exist
-skip-if-exists = ["jupyterlab/jupyterlab_jupytext/labextension/static/style.js"]
-
-[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
-# Root directory where build should be done
-path = "jupyterlab"
-# Build command that is defined in package.json
-build_cmd = "build:prod"
-# We use jlpm, which is wrapper around yarn to build transpiled assets
-npm = ["jlpm"]
-
-[tool.hatch.build.hooks.jupyter-builder.editable-build-kwargs]
-path = "jupyterlab"
-build_cmd = "build"
-npm = ["jlpm"]
-# hatch-jupyter-builder hook will check the mtime of source_dir and
-# compare it with build_dir to decide if build is necessary or not
-source_dir = "jupyterlab/packages"
-build_dir = "jupyterlab/jupyterlab_jupytext/labextension"
 
 [tool.check-wheel-contents]
 ignore = ["W002"]
