You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "dependabot[bot] (via GitHub)" <gi...@apache.org> on 2023/06/01 14:09:40 UTC

[GitHub] [arrow-rs] dependabot[bot] opened a new pull request, #4335: Update pyo3 requirement from 0.18 to 0.19

dependabot[bot] opened a new pull request, #4335:
URL: https://github.com/apache/arrow-rs/pull/4335

   Updates the requirements on [pyo3](https://github.com/pyo3/pyo3) to permit the latest version.
   <details>
   <summary>Release notes</summary>
   <p><em>Sourced from <a href="https://github.com/pyo3/pyo3/releases">pyo3's releases</a>.</em></p>
   <blockquote>
   <h2>PyO3 0.19.0</h2>
   <p>This release completes the implementation of automatically generated <code>__text_signature__</code> for <code>#[pymethods]</code>  and <code>#[pyfunctions]</code> by extending support for <code>#[new]</code> functions as well as rendering the value of simple default values such as integers, bools, and <code>None</code> in the generated signature.</p>
   <p>Support for <code>rust_decimal</code> conversions to Python's <code>decimal.Decimal</code> has been added.</p>
   <p>Usage of <code>#[pyclass(frozen)]</code> types becomes more powerful with the addition of <code>Py::get</code> to access contents of frozen classes without needing the Python GIL.</p>
   <p>Some important fixes and removals have landed:</p>
   <ul>
   <li><code>__traverse__</code> implementations may no longer access Python APIs or acquire the Python GIL. Attempting to use <code>Python::with_gil</code> will panic.</li>
   <li><code>#[pyclass(unsendable)]</code> types will now warn and skip <code>Drop</code> implementations when dropped on a thread other than the one the type was created on.</li>
   <li>The deprecated <code>Python::acquire_gil</code> has been removed.</li>
   </ul>
   <p>There have been numerous other smaller improvements, changes and fixes. For full details see the <a href="https://pyo3.rs/v0.19.0/changelog.html">CHANGELOG</a>.</p>
   <p>Please consult the <a href="https://pyo3.rs/v0.19.0/migration.html">migration guide</a> for help upgrading.</p>
   <p>Thank you to everyone who contributed code, documentation, design ideas, bug reports, and feedback. The following users' commits are included in this release:</p>
   <p><a href="https://github.com/adamreichold"><code>@​adamreichold</code></a>
   <a href="https://github.com/AdilZouitine"><code>@​AdilZouitine</code></a>
   <a href="https://github.com/adriangb"><code>@​adriangb</code></a>
   <a href="https://github.com/alex"><code>@​alex</code></a>
   <a href="https://github.com/AntoineRR"><code>@​AntoineRR</code></a>
   <a href="https://github.com/BlueGlassBlock"><code>@​BlueGlassBlock</code></a>
   <a href="https://github.com/cardoe"><code>@​cardoe</code></a>
   <a href="https://github.com/cfour2"><code>@​cfour2</code></a>
   <a href="https://github.com/davidhewitt"><code>@​davidhewitt</code></a>
   <a href="https://github.com/decathorpe"><code>@​decathorpe</code></a>
   <a href="https://github.com/Enyium"><code>@​Enyium</code></a>
   <a href="https://github.com/est31"><code>@​est31</code></a>
   <a href="https://github.com/iajoiner"><code>@​iajoiner</code></a>
   <a href="https://github.com/ijl"><code>@​ijl</code></a>
   <a href="https://github.com/jond01"><code>@​jond01</code></a>
   <a href="https://github.com/kngwyu"><code>@​kngwyu</code></a>
   <a href="https://github.com/lifthrasiir"><code>@​lifthrasiir</code></a>
   <a href="https://github.com/lycantropos"><code>@​lycantropos</code></a>
   <a href="https://github.com/mattip"><code>@​mattip</code></a>
   <a href="https://github.com/mejrs"><code>@​mejrs</code></a>
   <a href="https://github.com/messense"><code>@​messense</code></a>
   <a href="https://github.com/OliverBalfour"><code>@​OliverBalfour</code></a>
   <a href="https://github.com/samuelcolvin"><code>@​samuelcolvin</code></a>
   <a href="https://github.com/sollyucko"><code>@​sollyucko</code></a>
   <a href="https://github.com/stuhood"><code>@​stuhood</code></a>
   <a href="https://github.com/suyanhanx"><code>@​suyanhanx</code></a>
   <a href="https://github.com/Walnut356"><code>@​Walnut356</code></a>
   <a href="https://github.com/why-not-try-calmer"><code>@​why-not-try-calmer</code></a>
   <a href="https://github.com/willstott101"><code>@​willstott101</code></a>
   <a href="https://github.com/wjones127"><code>@​wjones127</code></a>
   <a href="https://github.com/xcharleslin"><code>@​xcharleslin</code></a></p>
   </blockquote>
   </details>
   <details>
   <summary>Changelog</summary>
   <p><em>Sourced from <a href="https://github.com/PyO3/pyo3/blob/main/CHANGELOG.md">pyo3's changelog</a>.</em></p>
   <blockquote>
   <h2>[0.19.0] - 2023-05-31</h2>
   <h3>Packaging</h3>
   <ul>
   <li>Correct dependency on syn to version 1.0.85 instead of the incorrect version 1.0.56. <a href="https://redirect.github.com/PyO3/pyo3/pull/3152">#3152</a></li>
   </ul>
   <h3>Added</h3>
   <ul>
   <li>Accept <code>text_signature</code> option (and automatically generate signature) for <code>#[new]</code> in <code>#[pymethods]</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/2980">#2980</a></li>
   <li>Add support for converting to and from Python's <code>decimal.Decimal</code> and <code>rust_decimal::Decimal</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/3016">#3016</a></li>
   <li>Add <code>#[pyo3(from_item_all)]</code> when deriving <code>FromPyObject</code> to specify <code>get_item</code> as getter for all fields. <a href="https://redirect.github.com/PyO3/pyo3/pull/3120">#3120</a></li>
   <li>Add <code>pyo3::exceptions::PyBaseExceptionGroup</code> for Python 3.11, and corresponding FFI definition <code>PyExc_BaseExceptionGroup</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/3141">#3141</a></li>
   <li>Accept <code>#[new]</code> with <code>#[classmethod]</code> to create a constructor which receives a (subtype's) class/<code>PyType</code> as its first argument. <a href="https://redirect.github.com/PyO3/pyo3/pull/3157">#3157</a></li>
   <li>Add <code>PyClass::get</code> and <code>Py::get</code> for GIL-indepedent access to classes with <code>#[pyclass(frozen)]</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/3158">#3158</a></li>
   <li>Add <code>PyAny::is_exact_instance</code> and <code>PyAny::is_exact_instance_of</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/3161">#3161</a></li>
   </ul>
   <h3>Changed</h3>
   <ul>
   <li><code>PyAny::is_instance_of::&lt;T&gt;(obj)</code> is now equivalent to <code>T::is_type_of(obj)</code>, and now returns <code>bool</code> instead of <code>PyResult&lt;bool&gt;</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/2881">#2881</a></li>
   <li>Deprecate <code>text_signature</code> option on <code>#[pyclass]</code> structs. <a href="https://redirect.github.com/PyO3/pyo3/pull/2980">#2980</a></li>
   <li>No longer wrap <code>anyhow::Error</code>/<code>eyre::Report</code> containing a basic <code>PyErr</code> without a chain in a <code>PyRuntimeError</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/3004">#3004</a></li>
   <li>
   <ul>
   <li>Change <code>#[getter]</code> and <code>#[setter]</code> to use a common call &quot;trampoline&quot; to slightly reduce generated code size and compile times. <a href="https://redirect.github.com/PyO3/pyo3/pull/3029">#3029</a></li>
   </ul>
   </li>
   <li>Improve default values for str, numbers and bool in automatically-generated <code>text_signature</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/3050">#3050</a></li>
   <li>Improve default value for <code>None</code> in automatically-generated <code>text_signature</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/3066">#3066</a></li>
   <li>Rename <code>PySequence::list</code> and <code>PySequence::tuple</code> to <code>PySequence::to_list</code> and <code>PySequence::to_tuple</code>. (The old names continue to exist as deprecated forms.) <a href="https://redirect.github.com/PyO3/pyo3/pull/3111">#3111</a></li>
   <li>Extend the lifetime of the GIL token returned by <code>PyRef::py</code> and <code>PyRefMut::py</code> to match the underlying borrow. <a href="https://redirect.github.com/PyO3/pyo3/pull/3131">#3131</a></li>
   <li>Safe access to the GIL, for example via <code>Python::with_gil</code>, is now locked inside of implementations of the <code>__traverse__</code> slot. <a href="https://redirect.github.com/PyO3/pyo3/pull/3168">#3168</a></li>
   </ul>
   <h3>Removed</h3>
   <ul>
   <li>Remove all functionality deprecated in PyO3 0.17, most prominently <code>Python::acquire_gil</code> is replaced by <code>Python::with_gil</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/2981">#2981</a></li>
   </ul>
   <h3>Fixed</h3>
   <ul>
   <li>Correct FFI definitions <code>PyGetSetDef</code>, <code>PyMemberDef</code>, <code>PyStructSequence_Field</code> and <code>PyStructSequence_Desc</code> to have <code>*const c_char</code> members for <code>name</code> and <code>doc</code> (not <code>*mut c_char</code>). <a href="https://redirect.github.com/PyO3/pyo3/pull/3036">#3036</a></li>
   <li>Fix panic on <code>fmt::Display</code>, instead return <code>&quot;&lt;unprintable object&gt;&quot;</code> string and report error via <code>sys.unraisablehook()</code> <a href="https://redirect.github.com/PyO3/pyo3/pull/3062">#3062</a></li>
   <li>Fix a compile error of &quot;temporary value dropped while borrowed&quot; when <code>#[pyfunction]</code>s take references into <code>#[pyclass]</code>es <a href="https://redirect.github.com/PyO3/pyo3/pull/3142">#3142</a></li>
   <li>Fix crashes caused by PyO3 applying deferred reference count updates when entering a <code>__traverse__</code> implementation. <a href="https://redirect.github.com/PyO3/pyo3/pull/3168">#3168</a></li>
   <li>Forbid running the <code>Drop</code> implementations of unsendable classes on other threads. <a href="https://redirect.github.com/PyO3/pyo3/pull/3176">#3176</a></li>
   <li>Fix a compile error when <code>#[pymethods]</code> items come from somewhere else (for example, as a macro argument) and a custom receiver like <code>Py&lt;Self&gt;</code> is used. <a href="https://redirect.github.com/PyO3/pyo3/pull/3178">#3178</a></li>
   </ul>
   <h2>[0.18.3] - 2023-04-13</h2>
   <h3>Added</h3>
   <ul>
   <li>Add <code>GILProtected&lt;T&gt;</code> to mediate concurrent access to a value using Python's global interpreter lock (GIL). <a href="https://redirect.github.com/PyO3/pyo3/pull/2975">#2975</a></li>
   <li>Support <code>PyASCIIObject</code> / <code>PyUnicode</code> and associated methods on big-endian architectures. <a href="https://redirect.github.com/PyO3/pyo3/pull/3015">#3015</a></li>
   <li>Add FFI definition <code>_PyDict_Contains_KnownHash()</code> for CPython 3.10 and up. <a href="https://redirect.github.com/PyO3/pyo3/pull/3088">#3088</a></li>
   </ul>
   <!-- raw HTML omitted -->
   </blockquote>
   <p>... (truncated)</p>
   </details>
   <details>
   <summary>Commits</summary>
   <ul>
   <li><a href="https://github.com/PyO3/pyo3/commit/2500e22e13642f5bf91d4696d8a8d9e2ae075344"><code>2500e22</code></a> release: 0.19.0</li>
   <li><a href="https://github.com/PyO3/pyo3/commit/c7dd2e3cd716376376d978e11ae57db41b42a9ba"><code>c7dd2e3</code></a> Merge <a href="https://redirect.github.com/pyo3/pyo3/issues/3194">#3194</a></li>
   <li><a href="https://github.com/PyO3/pyo3/commit/c928a7a38417dd3219e4587a9f85e52ac309b660"><code>c928a7a</code></a> pin chrono for msrv build</li>
   <li><a href="https://github.com/PyO3/pyo3/commit/03137e411e0ab3002ffbcad069d7a53f0f4c7b7f"><code>03137e4</code></a> Merge <a href="https://redirect.github.com/pyo3/pyo3/issues/3188">#3188</a></li>
   <li><a href="https://github.com/PyO3/pyo3/commit/c2d4e8ad1f3c734f6be7d0fd832d8a6238d99976"><code>c2d4e8a</code></a> Use a full path for <code>#[new]</code> method which is also <code>#[classmethod]</code>.</li>
   <li><a href="https://github.com/PyO3/pyo3/commit/d930bc14d929f977b689f14a81de71fc9a771152"><code>d930bc1</code></a> Verify that various macros do work without any PyO3 imports.</li>
   <li><a href="https://github.com/PyO3/pyo3/commit/cd4b27ff5fce4eb67df9fdf753c1566e32fded7d"><code>cd4b27f</code></a> Merge <a href="https://redirect.github.com/pyo3/pyo3/issues/3183">#3183</a></li>
   <li><a href="https://github.com/PyO3/pyo3/commit/f0b7399705616c08b0f6751bd1b4e4e3d2d00ef2"><code>f0b7399</code></a> Add benchmark showing that extract::&lt;i64&gt; is costly due to PyNumber_Index try...</li>
   <li><a href="https://github.com/PyO3/pyo3/commit/0e503386753b1210cd9e002a6a07a1581a490f8d"><code>0e50338</code></a> Merge <a href="https://redirect.github.com/pyo3/pyo3/issues/3171">#3171</a></li>
   <li><a href="https://github.com/PyO3/pyo3/commit/0f628c942d73ca97c83fe29ee2ffe4dd4201ef51"><code>0f628c9</code></a> Be more explicit of the soundness hole implied by tying Ungil to Send and men...</li>
   <li>Additional commits viewable in <a href="https://github.com/pyo3/pyo3/compare/v0.18.0...v0.19.0">compare view</a></li>
   </ul>
   </details>
   <br />
   
   
   Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
   
   [//]: # (dependabot-automerge-start)
   [//]: # (dependabot-automerge-end)
   
   ---
   
   <details>
   <summary>Dependabot commands and options</summary>
   <br />
   
   You can trigger Dependabot actions by commenting on this PR:
   - `@dependabot rebase` will rebase this PR
   - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
   - `@dependabot merge` will merge this PR after your CI passes on it
   - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
   - `@dependabot cancel merge` will cancel a previously requested merge and block automerging
   - `@dependabot reopen` will reopen this PR if it is closed
   - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
   - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
   - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
   - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
   
   
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] tustvold merged pull request #4335: Update pyo3 requirement from 0.18 to 0.19

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold merged PR #4335:
URL: https://github.com/apache/arrow-rs/pull/4335


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org