pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-anywidget: Add missing patches



Module Name:	pkgsrc-wip
Committed By:	Matthew Danielson <matthewd%fastmail.us@localhost>
Pushed By:	matthewd
Date:		Mon Jul 1 06:03:09 2024 -0600
Changeset:	dad43a2aa06116b12b21ca2e562ac56e07a702ec

Added Files:
	py-anywidget/patches/patch-pyproject.toml
	py-anywidget/patches/patch-tests_test__widget.py

Log Message:
py-anywidget:  Add missing patches

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=dad43a2aa06116b12b21ca2e562ac56e07a702ec

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-anywidget/patches/patch-pyproject.toml        | 15 +++++++++++++++
 py-anywidget/patches/patch-tests_test__widget.py | 15 +++++++++++++++
 2 files changed, 30 insertions(+)

diffs:
diff --git a/py-anywidget/patches/patch-pyproject.toml b/py-anywidget/patches/patch-pyproject.toml
new file mode 100644
index 0000000000..3b2f0be05b
--- /dev/null
+++ b/py-anywidget/patches/patch-pyproject.toml
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Don't install directly into etc
+
+--- pyproject.toml.orig	2020-02-02 00:00:00.000000000 +0000
++++ pyproject.toml
+@@ -40,7 +40,7 @@ homepage = "https://github.com/manzt/any
+ [tool.hatch.build.targets.wheel.shared-data]
+ "anywidget/nbextension" = "share/jupyter/nbextensions/anywidget"
+ "anywidget/labextension" = "share/jupyter/labextensions/anywidget"
+-"anywidget.json" = "etc/jupyter/nbconfig/notebook.d/anywidget.json"
++"anywidget.json" = "share/examples/jupyter/nbconfig/notebook.d/anywidget.json"
+ 
+ [tool.hatch.build]
+ exclude = [
diff --git a/py-anywidget/patches/patch-tests_test__widget.py b/py-anywidget/patches/patch-tests_test__widget.py
new file mode 100644
index 0000000000..5c09dfc7b6
--- /dev/null
+++ b/py-anywidget/patches/patch-tests_test__widget.py
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Fix Finding a path...
+
+--- tests/test_widget.py.orig	2024-06-26 12:43:51.659372579 +0000
++++ tests/test_widget.py
+@@ -24,7 +24,7 @@ def enable_hmr():
+
+
+ def test_version():
+-    with open(here / "../packages/anywidget/package.json") as f:
++    with open(here / "../anywidget/labextension/package.json") as f:
+         pkg = json.load(f)
+
+     assert anywidget.__version__ == pkg["version"]


Home | Main Index | Thread Index | Old Index