diff --git a/exclude-package-lock.patch b/exclude-package-lock.patch new file mode 100644 index 0000000..539cbf1 --- /dev/null +++ b/exclude-package-lock.patch @@ -0,0 +1,14 @@ +Do not install package-lock.json into the wheel +boo#1231254 gh#openSUSE/obs-service-node_modules#41 + +diff -ur panel-1.5.0.orig/pyproject.toml panel-1.5.0/pyproject.toml +--- panel-1.5.0.orig/pyproject.toml 2024-10-03 11:00:09.362861013 +0200 ++++ panel-1.5.0/pyproject.toml 2024-10-03 11:00:21.459903574 +0200 +@@ -110,6 +110,7 @@ + + [tool.hatch.build.targets.wheel] + include = ["panel"] ++exclude = ["panel/package-lock.json"] + + [tool.hatch.build.targets.wheel.force-include] + "panel/dist" = "panel/dist" diff --git a/python-panel.changes b/python-panel.changes index d2461bf..19cd6f3 100644 --- a/python-panel.changes +++ b/python-panel.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Oct 2 20:03:56 UTC 2024 - Ben Greiner + +- Add exclude-package-lock.patch + * Do not install package-lock.json + * Avoids non-reproducible local registry port + * boo#1231254 gh#openSUSE/obs-service-node_modules#41 + ------------------------------------------------------------------- Wed Sep 25 10:38:30 UTC 2024 - Ben Greiner diff --git a/python-panel.spec b/python-panel.spec index de110da..9279ebe 100644 --- a/python-panel.spec +++ b/python-panel.spec @@ -44,6 +44,8 @@ Source10: package-lock.json Source11: node_modules.spec.inc Source99: python-panel-rpmlintrc %include %{_sourcedir}/node_modules.spec.inc +# PATCH-FEATURE-OPENSUSE exclude-package-lock.patch boo#1231254 gh#openSUSE/obs-service-node_modules#41 +Patch0: exclude-package-lock.patch BuildRequires: %{python_module base} BuildRequires: %{python_module bleach} BuildRequires: %{python_module bokeh >= 3.5.0 with %python-bokeh < 3.6}