Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 12 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ DIST_DIR = ./dist
SITE_DIR = ./site
SHINYLIVE_DIR = ./_shinylive

# Read htmltools and shiny versions from the package code. It's done with grep
# because if we try to load the package and read shiny.__version__, it requires
# the packages to be loadable first, which isn't possible without their
# dependencies being installed first.
HTMLTOOLS_VERSION = $(shell grep '^__version__ = ' $(PACKAGE_DIR)/py-htmltools/htmltools/__init__.py | sed -E -e 's/^__version__ = "(.*)"/\1/')
SHINY_VERSION = $(shell grep '^__version__ = ' $(PACKAGE_DIR)/py-shiny/shiny/_version.py | sed -E "s/.*['\"]([^'\"]+)['\"]/\1/")
SHINYWIDGETS_VERSION = $(shell grep '^__version__ = ' $(PACKAGE_DIR)/py-shinywidgets/shinywidgets/__init__.py | sed -E -e 's/^__version__ = "(.*)"/\1/')
FAICONS_VERSION = $(shell grep '^__version__ = ' $(PACKAGE_DIR)/py-faicons/faicons/__init__.py | sed -E -e 's/^__version__ = "(.*)"/\1/')
# Extract package versions by grepping source files. Each package may define
# __version__ in __init__.py, _version.py, or __version.py (hatch-vcs).
# We use a consistent helper that checks all three locations.
_get_version = $(shell grep '^__version__ = ' $(1)/__version.py $(1)/__init__.py $(1)/_version.py 2>/dev/null | head -1 | sed -E "s/.*['\"]([^'\"]+)['\"]/\1/")
HTMLTOOLS_VERSION = $(call _get_version,$(PACKAGE_DIR)/py-htmltools/htmltools)
SHINY_VERSION = $(call _get_version,$(PACKAGE_DIR)/py-shiny/shiny)
SHINYWIDGETS_VERSION = $(call _get_version,$(PACKAGE_DIR)/py-shinywidgets/shinywidgets)
FAICONS_VERSION = $(call _get_version,$(PACKAGE_DIR)/py-faicons/faicons)

HTMLTOOLS_WHEEL = htmltools-$(HTMLTOOLS_VERSION)-py3-none-any.whl
SHINY_WHEEL = shiny-$(SHINY_VERSION)-py3-none-any.whl
Expand Down Expand Up @@ -274,23 +274,22 @@ package-faicons: $(PACKAGE_DIR)/$(FAICONS_WHEEL)
$(PACKAGE_DIR)/$(HTMLTOOLS_WHEEL): $(PYBIN) $(PACKAGE_DIR)/py-htmltools
# Remove any old copies of the package
rm -f $(PACKAGE_DIR)/htmltools*.whl
$(PYBIN)/pip install -e $(PACKAGE_DIR)/py-htmltools[dev]
. $(PYBIN)/activate && cd $(PACKAGE_DIR)/py-htmltools && make install && mv dist/*.whl ../
. $(PYBIN)/activate && cd $(PACKAGE_DIR)/py-htmltools && pip wheel --no-deps -w ../ .

$(PACKAGE_DIR)/$(SHINY_WHEEL): $(PYBIN) $(PACKAGE_DIR)/py-shiny
# Remove any old copies of the package
rm -f $(PACKAGE_DIR)/shiny*.whl
. $(PYBIN)/activate && cd $(PACKAGE_DIR)/py-shiny && make install && mv dist/*.whl ../
. $(PYBIN)/activate && cd $(PACKAGE_DIR)/py-shiny && pip wheel --no-deps -w ../ .

$(PACKAGE_DIR)/$(SHINYWIDGETS_WHEEL): $(PYBIN) $(PACKAGE_DIR)/py-shinywidgets
# Remove any old copies of the package
rm -f $(PACKAGE_DIR)/shinywidgets*.whl
. $(PYBIN)/activate && cd $(PACKAGE_DIR)/py-shinywidgets && make install && mv dist/*.whl ../
. $(PYBIN)/activate && cd $(PACKAGE_DIR)/py-shinywidgets && pip wheel --no-deps -w ../ .

$(PACKAGE_DIR)/$(FAICONS_WHEEL): $(PYBIN) $(PACKAGE_DIR)/py-faicons
# Remove any old copies of the package
rm -f $(PACKAGE_DIR)/faicons*.whl
. $(PYBIN)/activate && cd $(PACKAGE_DIR)/py-faicons && make install && mv dist/*.whl ../
. $(PYBIN)/activate && cd $(PACKAGE_DIR)/py-faicons && pip wheel --no-deps -w ../ .

$(PACKAGE_DIR)/$(LIBSASS_WHEEL): $(PYBIN) $(PACKAGE_DIR)/$(LIBSASS_WHEEL)
rm -f $(PACKAGE_DIR)/libsass*.whl
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "shinylive",
"version": "0.10.8",
"version": "0.10.9",
"description": "Run Shiny applications with R or Python running in the browser.",
Comment thread
cpsievert marked this conversation as resolved.
"main": "index.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/py-shiny
Submodule py-shiny updated 87 files
+58 −35 .claude/skills/py-shiny-release/references/release-phases.md
+161 −0 .claude/skills/py-shiny-release/references/test_shinylive_site.py
+27 −0 .github/py-shiny/narwhals-setup/action.yaml
+24 −0 .github/py-shiny/narwhals-test/action.yaml
+1 −0 .github/py-shiny/pytest-browsers/action.yaml
+132 −0 .github/py-shiny/setup-playwright-remote/action.yaml
+1 −1 .github/py-shiny/setup/action.yaml
+3 −3 .github/workflows/build-docs.yaml
+4 −1 .github/workflows/deploy-tests.yaml
+55 −29 .github/workflows/pytest.yaml
+3 −3 .github/workflows/verify-conventional-commits.yaml
+2 −2 .github/workflows/verify-js-built.yaml
+4 −4 .github/workflows/verify-test-generation-prompts.yaml
+3 −3 .github/workflows/verify-testing-docs-on-change.yml
+7 −0 .gitignore
+1 −1 .pre-commit-config.yaml
+24 −0 CHANGELOG.md
+8 −3 Makefile
+1 −0 docs/.quartoignore
+26 −2 docs/_renderer.py
+2 −1 examples/model-score/app.py
+7 −2 pyproject.toml
+1 −0 pyrightconfig.json
+107 −2 shiny/_utils.py
+1 −1 shiny/_versions.py
+6 −2 shiny/bookmark/_bookmark.py
+8 −0 shiny/express/_stub_session.py
+6 −0 shiny/express/ui/_cm_components.py
+3 −3 shiny/otel/_span_wrappers.py
+20 −0 shiny/playwright/controller/_layout.py
+13 −11 shiny/playwright/controller/_output.py
+4 −0 shiny/reactive/_poll.py
+230 −10 shiny/reactive/_reactives.py
+9 −5 shiny/render/_render.py
+3 −0 shiny/render/renderer/_renderer.py
+257 −1 shiny/session/_session.py
+1 −0 shiny/ui/_input_code_editor_bundle.py
+7 −0 shiny/ui/_insert.py
+17 −0 shiny/ui/_sidebar.py
+8 −3 shiny/ui/_theme.py
+1 −1 shiny/www/shared/_version.json
+2 −2 shiny/www/shared/bootstrap/_version.json
+1 −1 shiny/www/shared/bootstrap/bootstrap.min.css
+1 −1 shiny/www/shared/bslib/_version.json
+1 −0 shiny/www/shared/bslib/components/code-editor.css
+1 −1 shiny/www/shared/bslib/components/components.css
+4 −4 shiny/www/shared/bslib/components/components.min.js
+3 −3 shiny/www/shared/bslib/components/components.min.js.map
+1 −1 shiny/www/shared/busy-indicators/busy-indicators.css
+1 −1 shiny/www/shared/prism-code-editor/_version.json
+85 −0 shiny/www/shared/prism-code-editor/prism/languages/ggsql.js
+53 −9 shiny/www/shared/sass/bslib/components/scss/sidebar.scss
+14 −0 shiny/www/shared/sass/bslib/components/scss/toolbar.scss
+1 −1 shiny/www/shared/sass/preset/bootstrap/bootstrap.min.css
+1 −1 shiny/www/shared/sass/preset/shiny/bootstrap.min.css
+1 −1 shiny/www/shared/sass/shiny/www/shared/shiny_scss/shiny.bootstrap5.scss
+9 −3 shiny/www/shared/sass/shiny/www/shared/shiny_scss/shiny.scss
+1 −1 shiny/www/shared/shiny-autoreload.js
+1 −1 shiny/www/shared/shiny-showcase.css
+1 −1 shiny/www/shared/shiny-showcase.js
+1 −1 shiny/www/shared/shiny-testmode.js
+247 −231 shiny/www/shared/shiny.js
+4 −4 shiny/www/shared/shiny.js.map
+2 −2 shiny/www/shared/shiny.min.css
+20 −20 shiny/www/shared/shiny.min.js
+4 −4 shiny/www/shared/shiny.min.js.map
+5 −0 tests/playwright/README.md
+22 −1 tests/playwright/conftest.py
+25 −14 tests/playwright/shiny/bugs/0696-resolve-id/test_0696_resolve_id.py
+1 −3 tests/playwright/shiny/bugs/1390-df-selected-row-filtered/test_1390_selected_row_filtered.py
+271 −0 tests/playwright/shiny/bugs/2207-dangling-reactivity/app.py
+185 −0 tests/playwright/shiny/bugs/2207-dangling-reactivity/test_dangling_reactivity.py
+2 −1 tests/playwright/shiny/components/MarkdownStream/basic/test_stream_basic.py
+95 −0 tests/playwright/shiny/inputs/input_setinputvalue_dedupe/app.py
+68 −0 tests/playwright/shiny/inputs/input_setinputvalue_dedupe/test_input_setinputvalue_dedupe.py
+216 −0 tests/playwright/shiny/session/output_info_observers/app.py
+101 −0 tests/playwright/shiny/session/output_info_observers/test_output_info_observers.py
+5 −3 tests/pytest/otel_helpers.py
+1,584 −0 tests/pytest/test_destroy.py
+12 −11 tests/pytest/test_otel_logfire.py
+60 −0 tests/pytest/test_otel_value_logging.py
+148 −0 tests/pytest/test_poll.py
+203 −0 tests/pytest/test_reactives.py
+6 −0 tests/pytest/test_render_data_frame.py
+91 −0 tests/pytest/test_renderer.py
+11 −0 tests/pytest/test_sidebar.py
+141 −1 tests/pytest/test_utils.py
2 changes: 1 addition & 1 deletion packages/py-shinywidgets
Submodule py-shinywidgets updated 65 files
+15 −0 .coveragerc
+1 −0 .github/copilot-instructions.md
+76 −0 .github/workflows/py-check.yaml
+52 −0 .github/workflows/py-release.yaml
+0 −89 .github/workflows/pytest.yaml
+2 −0 .gitignore
+8 −0 .pre-commit-config.yaml
+1 −0 AGENTS.md
+32 −0 CHANGELOG.md
+96 −0 CLAUDE.md
+104 −80 Makefile
+18 −1 README.md
+3 −4 js/src/comm.ts
+98 −20 js/src/output.ts
+75 −0 js/src/plotly.ts
+25 −2 js/src/utils.ts
+210 −0 pyproject.toml
+0 −7 pyrightconfig.json
+13 −0 pytest.ini
+0 −69 setup.cfg
+0 −3 setup.py
+13 −1 shinywidgets/__init__.py
+12 −10 shinywidgets/_comm.py
+9 −7 shinywidgets/_render_widget.py
+62 −2 shinywidgets/_render_widget_base.py
+4 −1 shinywidgets/_serialization.py
+30 −21 shinywidgets/_shinywidgets.py
+13 −3 shinywidgets/static/output.js
+29 −0 sitecustomize.py
+1 −0 tests/__init__.py
+45 −0 tests/playwright/altair_rerender_cleanup/app.py
+8 −0 tests/playwright/altair_rerender_cleanup/test_altair_rerender_cleanup.py
+35 −0 tests/playwright/bokeh_rerender_cleanup/app.py
+8 −0 tests/playwright/bokeh_rerender_cleanup/test_bokeh_rerender_cleanup.py
+112 −0 tests/playwright/buffer_transport/app.py
+29 −0 tests/playwright/buffer_transport/test_buffer_transport.py
+31 −0 tests/playwright/conftest.py
+32 −0 tests/playwright/example_plotly_afterplot_stable/app.py
+49 −0 tests/playwright/example_plotly_afterplot_stable/test_example_plotly_afterplot_stable.py
+29 −0 tests/playwright/ipyleaflet_marker_click/app.py
+35 −0 tests/playwright/ipyleaflet_marker_click/test_ipyleaflet_marker_click.py
+34 −0 tests/playwright/ipyleaflet_rerender_cleanup/app.py
+8 −0 tests/playwright/ipyleaflet_rerender_cleanup/test_ipyleaflet_rerender_cleanup.py
+57 −0 tests/playwright/issue_221_isolate/app.py
+22 −0 tests/playwright/issue_221_isolate/test_issue_221_isolate.py
+2 −0 tests/playwright/playwright-pytest.ini
+35 −0 tests/playwright/plotly_rerender_cleanup/app.py
+71 −0 tests/playwright/plotly_rerender_cleanup/test_plotly_rerender_cleanup.py
+2 −0 tests/unit/__init__.py
+217 −0 tests/unit/_fakes.py
+2 −0 tests/unit/conftest.py
+176 −0 tests/unit/test_as_widget.py
+191 −0 tests/unit/test_comm_transport.py
+184 −0 tests/unit/test_dependencies.py
+86 −0 tests/unit/test_output_widget.py
+21 −0 tests/unit/test_render_widget.py
+132 −0 tests/unit/test_render_widget_base_layout_defaults.py
+207 −0 tests/unit/test_render_widget_base_lifecycle.py
+56 −0 tests/unit/test_serialization.py
+110 −0 tests/unit/test_shinywidgets_reactivity.py
+5 −0 tests/unit/test_smoke.py
+31 −0 tests/unit/test_utils.py
+16 −0 tests/unit/test_version_metadata.py
+403 −0 tests/unit/test_widget_bootstrap.py
+2,646 −0 uv.lock
18 changes: 9 additions & 9 deletions shinylive_lock.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"htmltools": {
"name": "htmltools",
"version": "0.6.0",
"filename": "htmltools-0.6.0-py3-none-any.whl",
"version": "0.6.1",
"filename": "htmltools-0.6.1-py3-none-any.whl",
"sha256": null,
"url": null,
"depends": [
Expand All @@ -15,8 +15,8 @@
},
"shiny": {
"name": "shiny",
"version": "1.6.0",
"filename": "shiny-1.6.0-py3-none-any.whl",
"version": "1.6.1",
"filename": "shiny-1.6.1-py3-none-any.whl",
"sha256": null,
"url": null,
"depends": [
Expand All @@ -40,16 +40,16 @@
},
"shinywidgets": {
"name": "shinywidgets",
"version": "0.5.2",
"filename": "shinywidgets-0.5.2-py3-none-any.whl",
"version": "0.8.0",
"filename": "shinywidgets-0.8.0-py3-none-any.whl",
"sha256": null,
"url": null,
"depends": [
{"name": "anywidget", "specs": []},
{"name": "ipywidgets", "specs": [[">=", "7.6.5"]]},
{"name": "jupyter_core", "specs": []},
{"name": "shiny", "specs": [[">=", "0.6.1.9005"]]},
{"name": "jupyter-core", "specs": []},
{"name": "python-dateutil", "specs": [[">=", "2.8.2"]]},
{"name": "anywidget", "specs": []}
{"name": "shiny", "specs": [[">=", "0.6.1.9005"]]}
],
"imports": [
"shinywidgets"
Expand Down
Loading