public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Lumir Balhar <lbalhar@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-jupyterlab-widgets] rawhide: Use cog to generate bundled provides and licenses info
Date: Mon, 12 Oct 2026 09:25:31 GMT	[thread overview]
Message-ID: <179179713167.1.8661352929731467926.rpms-python-jupyterlab-widgets-673249b293cf@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-jupyterlab-widgets
Branch : rawhide
Commit : 673249b293cf8bf994b0611e36a8614e5aaf0545
Author : Lumir Balhar <lbalhar@redhat.com>
Date   : 2026-10-12T09:08:59+02:00
Stats  : +43/-19 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python-jupyterlab-widgets/c/673249b293cf8bf994b0611e36a8614e5aaf0545?branch=rawhide

Log:
Use cog to generate bundled provides and licenses info

---
diff --git a/python-jupyterlab-widgets.spec b/python-jupyterlab-widgets.spec
index 44457e4..81164fe 100644
--- a/python-jupyterlab-widgets.spec
+++ b/python-jupyterlab-widgets.spec
@@ -2,9 +2,29 @@ Name:           python-jupyterlab-widgets
 Version:        3.0.17
 Release:        %autorelease
 Summary:        Jupyter interactive widgets for JupyterLab
-# Based on the output of:
-# cat third-party-licenses.json | sed -n '/licenseId/s/"licenseId": "\(.*\)",/\1/p' | sort | uniq
-# in labextension/static.
+# JupyterLab widgets themselves are BSD-3-Clause.
+# The rest are licenses of bundled JS libs.
+#
+# [[[cog
+#    import cog
+#    from glob import glob
+#    from pathlib import Path
+#    import json
+#
+#    file = sorted(
+#        glob("python-jupyterlab-widgets-*-build/jupyterlab_widgets-*/labextension/static/third-party-licenses.json")
+#        )[-1]
+#    text = Path(file).read_text()
+#    data = json.loads(text)
+#    licenses = set([p["licenseId"] for p in data["packages"]])
+#    for license in sorted(licenses):
+#        cog.outl(f"# {license}")
+# ]]]
+# BSD-2-Clause
+# BSD-3-Clause
+# ISC
+# MIT
+# [[[end]]]
 License:        BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT
 URL:            https://github.com/jupyter-widgets/ipywidgets
 Source:         %{pypi_source jupyterlab_widgets}
@@ -23,19 +43,22 @@ Summary:        %{summary}
 
 Requires:       python-jupyter-filesystem
 
-# Bundled provides
-# Generated by:
-# python3 -c "import json; [print(f\"Provides:        bundled(npm({p['name']})) = {p['versionInfo']}\") for p in json.load(open(\"third-party-licenses.json\"))[\"packages\"]]"
-# in labextension/static.
-Provides:        bundled(npm(@jupyter-widgets/base)) = 6.0.10
-Provides:        bundled(npm(@jupyter-widgets/base-manager)) = 1.0.11
-Provides:        bundled(npm(@jupyter-widgets/controls)) = 5.0.11
-Provides:        bundled(npm(@jupyter-widgets/output)) = 6.0.10
+# Bundled provides (uses data loaded above)
+#
+# [[[cog
+#    packages = [(p["name"], p["versionInfo"]) for p in data["packages"]]
+#    for name, version in sorted(packages):
+#        cog.outl(f"Provides:        bundled(npm({name})) = {version}")
+# ]]]
+Provides:        bundled(npm(@jupyter-widgets/base)) = 6.0.12
+Provides:        bundled(npm(@jupyter-widgets/base-manager)) = 1.0.13
+Provides:        bundled(npm(@jupyter-widgets/controls)) = 5.0.13
+Provides:        bundled(npm(@jupyter-widgets/output)) = 6.0.12
 Provides:        bundled(npm(backbone)) = 1.4.0
 Provides:        bundled(npm(base64-js)) = 1.5.1
 Provides:        bundled(npm(css-loader)) = 6.11.0
 Provides:        bundled(npm(d3-color)) = 3.1.0
-Provides:        bundled(npm(d3-format)) = 3.1.0
+Provides:        bundled(npm(d3-format)) = 3.1.2
 Provides:        bundled(npm(deepmerge)) = 4.3.1
 Provides:        bundled(npm(dom-serializer)) = 2.0.0
 Provides:        bundled(npm(domelementtype)) = 2.3.0
@@ -46,17 +69,18 @@ Provides:        bundled(npm(escape-string-regexp)) = 4.0.0
 Provides:        bundled(npm(htmlparser2)) = 8.0.2
 Provides:        bundled(npm(is-plain-object)) = 5.0.0
 Provides:        bundled(npm(jquery)) = 3.7.1
-Provides:        bundled(npm(lodash)) = 4.17.21
-Provides:        bundled(npm(nanoid)) = 3.3.7
+Provides:        bundled(npm(lodash)) = 4.18.1
+Provides:        bundled(npm(nanoid)) = 3.3.18
 Provides:        bundled(npm(nouislider)) = 15.4.0
 Provides:        bundled(npm(parse-srcset)) = 1.0.2
-Provides:        bundled(npm(picocolors)) = 1.0.1
-Provides:        bundled(npm(postcss)) = 8.4.38
+Provides:        bundled(npm(picocolors)) = 1.1.1
+Provides:        bundled(npm(postcss)) = 8.5.26
 Provides:        bundled(npm(process)) = 0.11.10
-Provides:        bundled(npm(sanitize-html)) = 2.13.0
-Provides:        bundled(npm(semver)) = 7.6.2
+Provides:        bundled(npm(sanitize-html)) = 2.13.1
+Provides:        bundled(npm(semver)) = 7.8.5
 Provides:        bundled(npm(style-loader)) = 3.3.4
-Provides:        bundled(npm(underscore)) = 1.13.6
+Provides:        bundled(npm(underscore)) = 1.13.7
+# [[[end]]]
 
 
 %description -n python3-jupyterlab-widgets %_description

                 reply	other threads:[~2026-10-12  9:25 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=179179713167.1.8661352929731467926.rpms-python-jupyterlab-widgets-673249b293cf@fedoraproject.org \
    --to=lbalhar@redhat.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