public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jerry James <loganjerry@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-jupytext] f43: Version 1.19.6
Date: Mon, 05 Oct 2026 19:31:40 GMT	[thread overview]
Message-ID: <179122870053.1.12882931329501230444.rpms-python-jupytext-981eb3fdb0fc@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/python-jupytext
            Branch : f43
            Commit : 981eb3fdb0fc2af002c15f2646e165975620aeb7
            Author : Jerry James <loganjerry@gmail.com>
            Date   : 2026-10-05T13:31:25-06:00
            Stats  : +212/-50 in 8 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-jupytext/c/981eb3fdb0fc2af002c15f2646e165975620aeb7?branch=f43

            Log:
            Version 1.19.6

- Add patch to build with jupyterlab instead of jupyter-builder

---
diff --git a/CVE-2026-3449.patch b/CVE-2026-3449.patch
deleted file mode 100644
index 9c5c746..0000000
--- a/CVE-2026-3449.patch
+++ /dev/null
@@ -1,15 +0,0 @@
---- jupytext-1.19.1/jupyterlab/yarn.lock.orig	2026-05-07 15:22:03.206586740 -0600
-+++ jupytext-1.19.1/jupyterlab/yarn.lock	2026-05-07 15:51:15.836256600 -0600
-@@ -2889,9 +2889,9 @@ __metadata:
-   linkType: hard
- 
- "@tootallnate/once@npm:2":
--  version: 2.0.1
--  resolution: "@tootallnate/once@npm:2.0.1"
--  checksum: 487b59b5adb8458dc13394a5aae997bf9705c51fa1e2396c50cd967019d06b273faba3c4d9e7895a996b9e9b055f1c55e53d822e54b3e9c298bcb4f6967cd0d5
-+  version: 3.0.1
-+  resolution: "@tootallnate/once@npm:3.0.1"
-+  checksum: 1ec82a3ff0dd2270eb09631789bd63a34445f62dd3031f0d620f4b1c81c5916d5cdb312ae651c4e390ecf62115279165421024efa75b2bb708d0699dc80c4a42
-   languageName: node
-   linkType: hard
- 

diff --git a/jupytext-1.19.4-vendor-licenses.txt b/jupytext-1.19.4-vendor-licenses.txt
deleted file mode 100644
index 2d281d9..0000000
--- a/jupytext-1.19.4-vendor-licenses.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-├─ MIT: 766
-├─ ISC: 188
-├─ BSD-3-Clause: 99
-├─ Apache-2.0: 56
-├─ BSD-2-Clause: 29
-├─ BlueOak-1.0.0: 7
-├─ (MIT OR CC0-1.0): 6
-├─ UNLICENSED: 2
-├─ CC0-1.0: 2
-├─ 0BSD: 2
-├─ MIT-0: 1
-├─ (CC-BY-4.0 AND OFL-1.1 AND MIT): 1
-├─ (MIT OR Apache-2.0): 1
-├─ Python-2.0: 1
-├─ CC-BY-4.0: 1
-├─ BSD*: 1
-├─ Unlicense: 1
-├─ CC-BY-3.0: 1
-└─ (MIT AND CC-BY-3.0): 1
-

diff --git a/jupytext-1.19.6-vendor-licenses.txt b/jupytext-1.19.6-vendor-licenses.txt
new file mode 100644
index 0000000..3c85673
--- /dev/null
+++ b/jupytext-1.19.6-vendor-licenses.txt
@@ -0,0 +1,23 @@
+├─ MIT: 802
+├─ ISC: 210
+├─ BSD-3-Clause: 130
+├─ Apache-2.0: 62
+├─ BSD-2-Clause: 26
+├─ BlueOak-1.0.0: 13
+├─ (MIT OR CC0-1.0): 6
+├─ MIT-0: 2
+├─ CC0-1.0: 2
+├─ 0BSD: 2
+├─ (CC-BY-4.0 AND OFL-1.1 AND MIT): 1
+├─ (MIT OR Apache-2.0): 1
+├─ Python-2.0: 1
+├─ (MPL-2.0 OR Apache-2.0): 1
+├─ EPL-2.0: 1
+├─ BSD*: 1
+├─ UNKNOWN: 1
+├─ UNLICENSED: 1
+├─ MIT*: 1
+├─ Unlicense: 1
+├─ CC-BY-3.0: 1
+└─ (MIT AND CC-BY-3.0): 1
+

diff --git a/prepare_vendor.sh b/prepare_vendor.sh
index 16c1a59..57124c4 100755
--- a/prepare_vendor.sh
+++ b/prepare_vendor.sh
@@ -41,7 +41,8 @@ tar -xf $PKG_TARBALL -C $PKG_TMPDIR
 cd $PKG_PATH
 
 echo ">>>>>> Apply patches"
-patch -p2 < $PKG_DIR/CVE-2026-3449.patch
+patch -p2 < $PKG_DIR/python-jupytext-CVEs.patch
+patch -p2 -t < $PKG_DIR/python-jupytext-jupyter-builder.patch
 
 export HATCH_BUILD_HOOKS_ENABLE=true
 export YARN_CACHE_FOLDER="$PWD/.package-cache"
@@ -61,13 +62,11 @@ if [ $? -ne 0 ]; then
 fi
 
 echo ">>>>>> Find licenses"
-jlpm add license-checker
-jlpm license-checker --summary | sed "s#$PKG_PATH#/tmp/#g" > $PKG_DIR/${PKG_NAME}-${PKG_VERSION}-vendor-licenses.txt
+jlpm add license-checker-rseidelsohn
+jlpm license-checker-rseidelsohn --summary | sed "s#$PKG_PATH#/tmp/#g" > $PKG_DIR/${PKG_NAME}-${PKG_VERSION}-vendor-licenses.txt
 
 cd -
 
 rm -rf .package-cache node_modules
 
-echo ">>>>>> Remember to run this script on both x86_64 AND aarch64 and merge"
-
 cleanup_and_exit 0

diff --git a/python-jupytext-CVEs.patch b/python-jupytext-CVEs.patch
new file mode 100644
index 0000000..9c3b683
--- /dev/null
+++ b/python-jupytext-CVEs.patch
@@ -0,0 +1,48 @@
+--- jupytext-1.19.6/jupyterlab/yarn.lock.orig	2026-10-04 14:53:45.000000000 -0600
++++ jupytext-1.19.6/jupyterlab/yarn.lock	2026-10-05 10:53:46.007373205 -0600
+@@ -3388,9 +3388,9 @@ __metadata:
+   linkType: hard
+ 
+ "@tootallnate/once@npm:2":
+-  version: 2.0.1
+-  resolution: "@tootallnate/once@npm:2.0.1"
+-  checksum: 487b59b5adb8458dc13394a5aae997bf9705c51fa1e2396c50cd967019d06b273faba3c4d9e7895a996b9e9b055f1c55e53d822e54b3e9c298bcb4f6967cd0d5
++  version: 3.0.1
++  resolution: "@tootallnate/once@npm:3.0.1"
++  checksum: 1ec82a3ff0dd2270eb09631789bd63a34445f62dd3031f0d620f4b1c81c5916d5cdb312ae651c4e390ecf62115279165421024efa75b2bb708d0699dc80c4a42
+   languageName: node
+   linkType: hard
+ 
+@@ -6308,9 +6308,9 @@ __metadata:
+   linkType: hard
+ 
+ "fast-uri@npm:^3.0.1":
+-  version: 3.1.7
+-  resolution: "fast-uri@npm:3.1.7"
+-  checksum: 2095554c1e48b5a772529175dfa8d3c2ca33a1db6c84abe1584f9c4c3337b62d8e4807ed60a806f85bb7635cb7acca6c66c0c642b867efc3ea4e20a0d6c40cbe
++  version: 3.1.8
++  resolution: "fast-uri@npm:3.1.8"
++  checksum: 3319c50163d6d1265d1fd06f677e0d24a4cc4312c48c7222a0dc6641b90463c4476cb83f3c7444e0d1d0cd123d330d300ea46c48386f6924f35c34f6dd865416
+   languageName: node
+   linkType: hard
+ 
+@@ -10583,8 +10583,8 @@ __metadata:
+   linkType: hard
+ 
+ "sanitize-html@npm:~2.12.1":
+-  version: 2.12.1
+-  resolution: "sanitize-html@npm:2.12.1"
++  version: 2.18.0
++  resolution: "sanitize-html@npm:2.18.0"
+   dependencies:
+     deepmerge: ^4.2.2
+     escape-string-regexp: ^4.0.0
+@@ -10592,7 +10592,7 @@ __metadata:
+     is-plain-object: ^5.0.0
+     parse-srcset: ^1.0.2
+     postcss: ^8.3.11
+-  checksum: fb96ea7170d51b5af2607f5cfd84464c78fc6f47e339407f55783e781c6a0288a8d40bbf97ea6a8758924ba9b2d33dcc4846bb94caacacd90d7f2de10ed8541a
++  checksum: 6a4e57f8c9714699a6e67bc9694e5a326d250f41dddda75e954f244cfaec5e25e3f89f11df7635228d542c8970b24b9eada56f2d5b9c2879a1ec282b6c0c6e33
+   languageName: node
+   linkType: hard
+ 

diff --git a/python-jupytext-jupyter-builder.patch b/python-jupytext-jupyter-builder.patch
new file mode 100644
index 0000000..3b5e9fb
--- /dev/null
+++ b/python-jupytext-jupyter-builder.patch
@@ -0,0 +1,118 @@
+--- jupytext-1.19.6/jupyterlab/packages/jupyterlab-jupytext-extension/package.json.orig	2026-10-04 14:53:45.000000000 -0600
++++ jupytext-1.19.6/jupyterlab/packages/jupyterlab-jupytext-extension/package.json	2026-10-05 12:04:28.948730501 -0600
+@@ -29,8 +29,8 @@
+   ],
+   "scripts": {
+     "build": "jlpm run build:lib && jlpm run build:labextension:dev && jlpm run copy:extensioncfgfile",
+-    "build:labextension": "jupyter-builder build .",
+-    "build:labextension:dev": "jupyter-builder build --development True .",
++    "build:labextension": "jupyter labextension build .",
++    "build:labextension:dev": "jupyter labextension build --development True .",
+     "build:lib": "tsc",
+     "build:prod": "jlpm run build:lib && jlpm run build:labextension && jlpm run copy:extensioncfgfile",
+     "copy:extensioncfgfile": "cp ../../install.json ../../jupyterlab_jupytext/labextension",
+@@ -40,7 +40,7 @@
+     "clean:lib": "rimraf lib tsconfig.tsbuildinfo",
+     "install:extension": "python ../../scripts/install_extension.py",
+     "watch": "run-p watch:src watch:labextension",
+-    "watch:labextension": "jupyter-builder watch .",
++    "watch:labextension": "jupyter labextension watch .",
+     "watch:src": "tsc -w"
+   },
+   "jupyterlab": {
+@@ -84,8 +84,7 @@
+     "jupyterlab-rise": "^0.43.1"
+   },
+   "devDependencies": {
+-    "@jupyter/builder": "^1.0.0",
+-    "@types/node": "^26.1.0",
++    "@jupyterlab/builder": "^4.4.9",
+     "npm-run-all": "^4.1.5",
+     "rimraf": "^6.0.1",
+     "typescript": "~6.0.3"
+--- jupytext-1.19.6/jupyterlab/packages/jupyterlab-jupytext-extension/tsconfig.json.orig	2026-10-04 14:53:45.000000000 -0600
++++ jupytext-1.19.6/jupyterlab/packages/jupyterlab-jupytext-extension/tsconfig.json	2026-10-05 11:41:44.234314202 -0600
+@@ -1,7 +1,7 @@
+ {
+   "compilerOptions": {
+     "declaration": true,
+-    "lib": ["es2019", "dom"],
++    "lib": ["es2018", "dom"],
+     "module": "Node16",
+     "moduleResolution": "Node16",
+     "noEmitOnError": true,
+@@ -10,7 +10,7 @@
+     "rootDir": "src",
+     "strict": true,
+     "strictNullChecks": true,
+-    "target": "es2019",
++    "target": "es2018",
+     "types": ["node"],
+     "esModuleInterop": true,
+     "skipLibCheck": true
+--- jupytext-1.19.6/jupyterlab/packages/jupyterlab-jupytext-extension/ui-tests/package.json.orig	2026-10-04 14:53:45.000000000 -0600
++++ jupytext-1.19.6/jupyterlab/packages/jupyterlab-jupytext-extension/ui-tests/package.json	2026-10-05 11:40:02.619306505 -0600
+@@ -9,7 +9,7 @@
+         "test:update": "jlpm playwright test --update-snapshots"
+     },
+     "devDependencies": {
+-        "@jupyterlab/galata": "^5.6.1",
+-        "@playwright/test": "^1.61.1"
++        "@jupyterlab/galata": "^5.5.2",
++        "@playwright/test": "^1.55.1"
+     }
+ }
+--- jupytext-1.19.6/jupyterlab/scripts/install_extension.py.orig	2026-10-04 14:53:45.000000000 -0600
++++ jupytext-1.19.6/jupyterlab/scripts/install_extension.py	2026-10-05 11:42:08.866014771 -0600
+@@ -12,7 +12,7 @@
+ import os
+ 
+ import jupyterlab_jupytext
+-from jupyter_builder.federated_extensions import build_labextension, develop_labextension
++from jupyterlab.federated_labextensions import build_labextension, develop_labextension
+ 
+ 
+ def main():
+--- jupytext-1.19.6/pyproject.toml.orig	2026-10-04 14:53:45.000000000 -0600
++++ jupytext-1.19.6/pyproject.toml	2026-10-05 11:53:11.082752147 -0600
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["hatchling>=1.5.0", "hatch-jupyter-builder>=0.5", "jupyter-builder>=1.0.0"]
++requires = ["hatchling>=1.5.0", "hatch-jupyter-builder>=0.5", "jupyterlab>=4"]
+ build-backend = "hatchling.build"
+ 
+ [project]
+@@ -145,7 +145,7 @@ enable-by-default = false
+ # 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 jupyter-builder as build time depdendency to get jlpm (wrapper around yarn)
++# We need jupyterlab as build time depdendency to get jlpm (wrapper around yarn)
+ # UPDATE 20260118: Based on https://github.com/jupyterlab/hatch-jupyter-builder/issues/146
+ # we moved all the dependencies to build system dependencies
+ # We use npm_builder to build the jupyterlab extension
+@@ -286,13 +286,12 @@ platforms = ["linux-64", "osx-64", "osx-
+ 
+ [tool.pixi.dependencies]
+ python = "3.13.13.*" # One test involving Black fails on the CI
+-jupyterlab = ">=4.6.1,<5"
++jupyterlab = ">=4.0"
+ nbformat = ">=5.1.2"
+ pre-commit = ">=4.3"
+ nodejs = ">=20"
+ hatch = "*"
+ pip = "*"
+-jupyter-builder = ">=1.1.0,<2"
+ 
+ [tool.pixi.feature.docs.dependencies]
+ sphinx = "*"
+@@ -308,8 +307,7 @@ pandoc = ">=3.0,<3.10"  # 1545
+ [tool.pixi.feature.build.dependencies]
+ python = "3.13.*"
+ nodejs = ">=20"
+-jupyterlab = ">=4.6.1,<5"
+-jupyter-builder = ">=1.1.0,<2"
++jupyterlab = ">=4.0"
+ 
+ [tool.pixi.feature.build.tasks]
+ build-labextension = { cmd = "jlpm install && jlpm run build:prod", cwd = "jupyterlab" }

diff --git a/python-jupytext.spec b/python-jupytext.spec
index 0892495..3f97754 100644
--- a/python-jupytext.spec
+++ b/python-jupytext.spec
@@ -2,7 +2,7 @@
 #global vsuffix d
 
 Name:           python-jupytext
-Version:        1.19.4
+Version:        1.19.6
 Release:        %autorelease
 Summary:        Save Jupyter notebooks as text documents or scripts
 
@@ -15,13 +15,22 @@ Source1:        jupytext-%{version}-vendor.tar.xz
 Source2:        jupytext-%{version}-vendor-licenses.txt
 Source3:        prepare_vendor.sh
 
-# Bump @tootallnate/once from 2.0.1 to 3.0.1 in /jupyterlab
-Patch:          CVE-2026-3449.patch
-
-# s390x builds fail due to a bug in jupyterlab
-# https://bugzilla.redhat.com/show_bug.cgi?id=2278011
-# ppc64le builds fail due to lack of a binary builder
-ExclusiveArch:  %{x86_64} %{arm64} noarch
+# Update JavaScript to address CVEs.  Currently contains fixes for:
+# - CVE-2026-3449:  @tootallnate/once  2.0.1  -> 3.0.1
+# - CVE-2026-44990: sanitize-html      2.12.1 -> 2.18.0
+# - CVE-2026-53606: sanitize-html      2.12.1 -> 2.18.0
+# - CVE-2026-84371: sanitize-html      2.12.1 -> 2.18.0
+# - CVE-2026-86472: fast-uri           3.1.7  -> 3.1.8
+Patch:          %{name}-CVEs.patch
+
+# Revert the jupyterlab -> jupyter-builder change for <= F45
+# See https://github.com/jupytext/jupytext/pull/1590
+Patch:          %{name}-jupyter-builder.patch
+
+# The vendored npm cache (Source1) is generated by prepare_vendor.sh
+# on x86_64, so it only contains the x86_64 natives; building this
+# noarch package anywhere else fails.
+ExclusiveArch:  %{x86_64} noarch
 
 BuildArch:      noarch
 BuildSystem:    pyproject

diff --git a/sources b/sources
index adeccb3..8deae05 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-SHA512 (jupytext-1.19.4-vendor.tar.xz) = 522a3ff5adf7dca4a783adea89020acd8e018eb3af115d1f9d96aac824ec9466de85cefbb912d0a5e65632bfc37e13afdce6160bf25063f02c48a92ef6d057a2
-SHA512 (jupytext-1.19.4.tar.gz) = 91c9f024a059a36500b40775a19b244408ef26a84c5b8bd7b92eac1e8ae4710de63cb7ac873ff654313fb13d77681af15c6a3c53710f171712aaeb8186734ed7
+SHA512 (jupytext-1.19.6-vendor.tar.xz) = f4680f163eb76156a0f8cb470ba68e5af658b0e24db26780c8783d4c67e0a07ab308a1e2b8963b537fa2cda6a349999753a33ffc6a3c372ba983d4a370984d2c
+SHA512 (jupytext-1.19.6.tar.gz) = 9831820e4f176779590135e71fc03892fe41e0fabc9d13619b0551805a559b995deecf60e3dcef5ef19cc5133c8d5841eae44cf768d932baabd24cd3710159b7

                 reply	other threads:[~2026-10-05 19:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179122870053.1.12882931329501230444.rpms-python-jupytext-981eb3fdb0fc@fedoraproject.org \
    --to=loganjerry@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox