figpack 0.3.18__tar.gz → 0.3.19__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {figpack-0.3.18/figpack.egg-info → figpack-0.3.19}/PKG-INFO +1 -1
- {figpack-0.3.18 → figpack-0.3.19}/figpack/__init__.py +1 -1
- {figpack-0.3.18 → figpack-0.3.19}/figpack/core/_upload_bundle.py +2 -2
- {figpack-0.3.18 → figpack-0.3.19/figpack.egg-info}/PKG-INFO +1 -1
- {figpack-0.3.18 → figpack-0.3.19}/pyproject.toml +1 -1
- {figpack-0.3.18 → figpack-0.3.19}/tests/test_upload_bundle.py +3 -1
- {figpack-0.3.18 → figpack-0.3.19}/LICENSE +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/MANIFEST.in +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/README.md +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/cli.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/core/__init__.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/core/_bundle_utils.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/core/_figure_utils.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/core/_file_handler.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/core/_patch_figure.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/core/_revert_patch_figure.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/core/_save_figure.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/core/_server_manager.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/core/_show_view.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/core/_view_figure.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/core/_zarr_consolidate.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/core/config.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/core/extension_view.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/core/figpack_extension.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/core/figpack_view.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/core/zarr.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/extensions.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/figpack-figure-dist/assets/index-CSMGUquF.js +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/figpack-figure-dist/assets/index-GPjx4QpG.css +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/figpack-figure-dist/assets/neurosift-logo-CLsuwLMO.png +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/figpack-figure-dist/index.html +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/utils/__init__.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/views/Box.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/views/CaptionedView.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/views/DataFrame.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/views/Gallery.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/views/GalleryItem.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/views/Iframe.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/views/Image.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/views/LayoutItem.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/views/Markdown.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/views/MatplotlibFigure.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/views/MountainLayout.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/views/MountainLayoutItem.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/views/MultiChannelTimeseries.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/views/PlotlyExtension/PlotlyExtension.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/views/PlotlyExtension/__init__.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/views/PlotlyExtension/_plotly_extension.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/views/PlotlyExtension/plotly_view.js +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/views/Spectrogram.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/views/Splitter.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/views/TabLayout.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/views/TabLayoutItem.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/views/TimeseriesGraph.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/views/VerticalLayout.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/views/VerticalLayoutItem.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack/views/__init__.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack-serve/worker/container/app.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack.egg-info/SOURCES.txt +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack.egg-info/dependency_links.txt +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack.egg-info/entry_points.txt +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack.egg-info/requires.txt +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/figpack.egg-info/top_level.txt +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/setup.cfg +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/tests/test_box.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/tests/test_cli.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/tests/test_core.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/tests/test_dataframe.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/tests/test_extension_system.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/tests/test_figpack_view.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/tests/test_file_handler.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/tests/test_gallery.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/tests/test_image.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/tests/test_markdown.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/tests/test_matplotlib_figure.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/tests/test_multichannel_timeseries.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/tests/test_plotly_figure.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/tests/test_server_manager.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/tests/test_spectrogram.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/tests/test_splitter.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/tests/test_tablayout.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/tests/test_timeseries_graph.py +0 -0
- {figpack-0.3.18 → figpack-0.3.19}/tests/test_view_figure.py +0 -0
|
@@ -102,11 +102,11 @@ def _upload_single_file_with_signed_url(
|
|
|
102
102
|
signed_url, data=f, headers={"Content-Type": content_type}
|
|
103
103
|
)
|
|
104
104
|
|
|
105
|
-
if upload_response.
|
|
105
|
+
if 200 <= upload_response.status_code < 300:
|
|
106
106
|
return relative_path
|
|
107
107
|
|
|
108
108
|
last_exception = Exception(
|
|
109
|
-
f"Failed to upload {relative_path} to signed URL: HTTP {upload_response.status_code}"
|
|
109
|
+
f"Failed to upload {relative_path} to signed URL: HTTP {upload_response.status_code} - {upload_response.text[:500]}"
|
|
110
110
|
)
|
|
111
111
|
except Exception as e:
|
|
112
112
|
last_exception = e
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "figpack"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.19"
|
|
8
8
|
description = "A Python package for creating shareable, interactive visualizations in the browser"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.8"
|
|
@@ -86,6 +86,7 @@ def test_upload_single_file_with_signed_url(tmp_path):
|
|
|
86
86
|
|
|
87
87
|
with mock.patch("requests.put") as mock_put:
|
|
88
88
|
mock_put.return_value.ok = True
|
|
89
|
+
mock_put.return_value.status_code = 200
|
|
89
90
|
|
|
90
91
|
result = _upload_single_file_with_signed_url(
|
|
91
92
|
"test.txt", test_file, "signed-url", num_retries=2
|
|
@@ -107,7 +108,7 @@ def test_upload_single_file_with_retry(tmp_path):
|
|
|
107
108
|
# First attempt fails, second succeeds
|
|
108
109
|
mock_put.side_effect = [
|
|
109
110
|
mock.Mock(ok=False, status_code=500),
|
|
110
|
-
mock.Mock(ok=True),
|
|
111
|
+
mock.Mock(ok=True, status_code=200),
|
|
111
112
|
]
|
|
112
113
|
|
|
113
114
|
result = _upload_single_file_with_signed_url(
|
|
@@ -222,6 +223,7 @@ def test_upload_bundle(tmp_path):
|
|
|
222
223
|
|
|
223
224
|
mock_upload_response = mock.Mock()
|
|
224
225
|
mock_upload_response.ok = True
|
|
226
|
+
mock_upload_response.status_code = 200
|
|
225
227
|
|
|
226
228
|
mock_finalize_response = mock.Mock()
|
|
227
229
|
mock_finalize_response.ok = True
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{figpack-0.3.18 → figpack-0.3.19}/figpack/figpack-figure-dist/assets/neurosift-logo-CLsuwLMO.png
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|