File: no_jupyterlab_jupytext

package info (click to toggle)
jupytext 1.16.4%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,916 kB
  • sloc: python: 19,505; lisp: 706; cpp: 622; javascript: 66; cs: 26; java: 18; makefile: 15; tcl: 10; sh: 6; haskell: 6; ml: 4
file content (76 lines) | stat: -rw-r--r-- 3,251 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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"]