wryview 0.3.1__tar.gz → 0.3.2__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.
@@ -2332,7 +2332,7 @@ dependencies = [
2332
2332
 
2333
2333
  [[package]]
2334
2334
  name = "wryview"
2335
- version = "0.3.1"
2335
+ version = "0.3.2"
2336
2336
  dependencies = [
2337
2337
  "gtk",
2338
2338
  "pyo3",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "wryview"
3
- version = "0.3.1"
3
+ version = "0.3.2"
4
4
  edition = "2021"
5
5
  description = "Comprehensive Python binding for wry — embeddable cross-platform webview."
6
6
  readme = "README.md"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wryview
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Classifier: Development Status :: 2 - Pre-Alpha
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: Programming Language :: Python :: 3.10
@@ -9,7 +9,7 @@ authors = [
9
9
  ]
10
10
  description = "Comprehensive Python binding for wry — cross-platform embeddable webview, no event loop required."
11
11
  readme = "README.md"
12
- version = "0.3.1"
12
+ version = "0.3.2"
13
13
  requires-python = ">=3.10"
14
14
  license = "MPL-2.0"
15
15
  license-files = ["LICENSE"]
@@ -28,5 +28,5 @@ Usage:
28
28
 
29
29
  from wryview._core import WebView, CookieDict, pump_events, ensure_gtk_init
30
30
 
31
- __version__ = "0.3.1"
31
+ __version__ = "0.3.2"
32
32
  __all__ = ["WebView", "CookieDict", "pump_events", "ensure_gtk_init"]
@@ -332,7 +332,13 @@ impl WebView {
332
332
  for (k, v) in &resp_headers {
333
333
  builder = builder.header(k.as_str(), v.as_str());
334
334
  }
335
- let _ = r.respond(builder.body(std::borrow::Cow::Owned(resp_body)).unwrap());
335
+ let response =
336
+ builder.body(std::borrow::Cow::Owned(resp_body)).unwrap();
337
+ Python::attach(|py| {
338
+ py.detach(move || {
339
+ let _ = r.respond(response);
340
+ });
341
+ });
336
342
  }
337
343
  Ok::<_, pyo3::PyErr>(unsafe { Python::assume_attached() }.None())
338
344
  }
File without changes
File without changes
File without changes
File without changes
File without changes