python-panel/opensuse-js-fixes.patch
Markéta Machová 6ddb599bb0 - Update to 1.5.5:
## Enhancements
  * Add ability to scroll_to a particular object on Column (#7206)
  * Add pointer when hovering on Markdown copy button (#7490)
  * Allow streaming to ChatStep (#7520)
  * Improve ChatMessage repr (#7521)
  * Add ChatInterface button tooltips (#7552)
  ## Bug fixes
  * Ensure Notifications are cleaned up correctly (#4964)
  * Ensure FileDownload label text updates correctly (#7489)
  * Fix Tabulator aggregation behavior (#7450)
  * Fix typing for .servable method (#7530)
  * Ensure NestedSelect respects disabled parameter (#7533)
  * Ensure errors in hooks aren't masked by fallback to different signature (#7502)
  * Ensure Notifications are only shown once if scheduled onload (#7504)
  ## Documentation
  * Improve hold how-to guide (#7487, #7500)
  ## Maintenance
  * Enable strict type checking (#7497)
  * Ensure node_modules aren't bundled into package (#7526)
  * Internal cleanup of compatibility code for older param versions (#7527)
  ## Compatibility
  * Compatibility for websockets 14 when running on FastAPI server (#7491)
  * Compatibility with Textual 0.86 (#7501)
  * Compatibility with Altair 5.5.0 (#7523)
  * Bump Vizzu version to 0.15 (#7485)
- Add manual-asyncio-loop.patch to fix tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-panel?expand=0&rev=66
2025-01-13 10:25:20 +00:00

44 lines
1.7 KiB
Diff

- Do not install package-lock.json into the wheel
* boo#1231254 gh#openSUSE/obs-service-node_modules#41
- Require typescript for compilation
- Fix test artifact destination
Index: panel-1.5.5/pyproject.toml
===================================================================
--- panel-1.5.5.orig/pyproject.toml
+++ panel-1.5.5/pyproject.toml
@@ -111,7 +111,7 @@ raw-options = { version_scheme = "no-gue
[tool.hatch.build.targets.wheel]
include = ["panel"]
-exclude = ["panel/node_modules"]
+exclude = ["panel/node_modules", "panel/package-lock.json"]
[tool.hatch.build.targets.wheel.force-include]
"panel/dist" = "panel/dist"
Index: panel-1.5.5/panel/package.json
===================================================================
--- panel-1.5.5.orig/panel/package.json
+++ panel-1.5.5/panel/package.json
@@ -23,6 +23,7 @@
"@stylistic/eslint-plugin": "^1.6.3",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
+ "typescript": "^5.1.0",
"acorn": "^8.11.3",
"eslint": "^8.57.0",
"flatpickr": "^4.6.9"
Index: panel-1.5.5/panel/tests/command/test_compile.py
===================================================================
--- panel-1.5.5.orig/panel/tests/command/test_compile.py
+++ panel-1.5.5/panel/tests/command/test_compile.py
@@ -14,7 +14,7 @@ class JSTestComponent(JSComponent):
def test_compile_component(py_file):
cmd = [sys.executable, "-m", "panel", "compile", "panel.tests.command.test_compile:JSTestComponent", "--unminified"]
- p = subprocess.Popen(cmd, shell=False, cwd=CWD)
+ p = subprocess.Popen(cmd, shell=False)
p.wait()
bundle = CWD / "JSTestComponent.bundle.js"