You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/08/24 13:27:31 UTC

[GitHub] [arrow-rs] dependabot[bot] opened a new pull request, #2577: Update pyo3 requirement from 0.16 to 0.17

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

   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.17.0</h2>
   <p>This release contains a focus on quality improvements over the PyO3 0.16 releases.</p>
   <p>There have been new API types added such as <code>PyDictKeys</code>, <code>PyDictValues</code>, <code>PyDictItems</code>, <code>PyCode</code>, <code>PyFrame</code>, and <code>PySuper</code>. The <code>PyMapping</code> and <code>PySequence</code> types have changed so they are more directly compatible with the corresponding Python <code>Mapping</code> and <code>Sequence</code> base classes in the <code>collections.abc</code> module (this is a breaking change).</p>
   <p>A new <code>#[pyclass(frozen)]</code> option has been added to opt-out of runtime borrow checking by removing the ability to access <code>&amp;mut self</code> for objects owned by Python.</p>
   <p>There have been a number of soundness fixes, both to the <code>PyCapsule</code> type (see the CHANGELOG for more details) and to a number of FFI bindings which had fallen out of sync with newer Python and PyPy releases.</p>
   <p>There have been numerous other smaller improvements, changes and fixes. For full details see the <a href="https://pyo3.rs/v0.17.0/changelog.html">CHANGELOG</a>.</p>
   <p>Please consult the <a href="https://pyo3.rs/v0.17.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/acshi"><code>@​acshi</code></a>
   <a href="https://github.com/aganders3"><code>@​aganders3</code></a>
   <a href="https://github.com/alex"><code>@​alex</code></a>
   <a href="https://github.com/birkenfeld"><code>@​birkenfeld</code></a>
   <a href="https://github.com/cjermain"><code>@​cjermain</code></a>
   <a href="https://github.com/Cryptex-github"><code>@​Cryptex-github</code></a>
   <a href="https://github.com/cuishuang"><code>@​cuishuang</code></a>
   <a href="https://github.com/davidhewitt"><code>@​davidhewitt</code></a>
   <a href="https://github.com/drewkett"><code>@​drewkett</code></a>
   <a href="https://github.com/dswij"><code>@​dswij</code></a>
   <a href="https://github.com/herquan"><code>@​herquan</code></a>
   <a href="https://github.com/hoodmane"><code>@​hoodmane</code></a>
   <a href="https://github.com/ikrivosheev"><code>@​ikrivosheev</code></a>
   <a href="https://github.com/indygreg"><code>@​indygreg</code></a>
   <a href="https://github.com/jeertmans"><code>@​jeertmans</code></a>
   <a href="https://github.com/jinlow"><code>@​jinlow</code></a>
   <a href="https://github.com/jonaspleyer"><code>@​jonaspleyer</code></a>
   <a href="https://github.com/kngwyu"><code>@​kngwyu</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/n8henrie"><code>@​n8henrie</code></a>
   <a href="https://github.com/PigeonF"><code>@​PigeonF</code></a>
   <a href="https://github.com/PWhiddy"><code>@​PWhiddy</code></a>
   <a href="https://github.com/ravenexp"><code>@​ravenexp</code></a>
   <a href="https://github.com/savente93"><code>@​savente93</code></a>
   <a href="https://github.com/yankun1992"><code>@​yankun1992</code></a>
   <a href="https://github.com/yodaldevoid"><code>@​yodaldevoid</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.17.0] - 2022-08-23</h2>
   <h3>Packaging</h3>
   <ul>
   <li>Update inventory dependency to <code>0.3</code> (the <code>multiple-pymethods</code> feature now requires Rust 1.62 for correctness). <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2492">#2492</a></li>
   </ul>
   <h3>Added</h3>
   <ul>
   <li>Add <code>timezone_utc</code>. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/1588">#1588</a></li>
   <li>Implement <code>ToPyObject</code> for <code>[T; N]</code>. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2313">#2313</a></li>
   <li>Add <code>PyDictKeys</code>, <code>PyDictValues</code> and <code>PyDictItems</code> Rust types. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2358">#2358</a></li>
   <li>Add <code>append_to_inittab</code>. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2377">#2377</a></li>
   <li>Add FFI definition <code>PyFrame_GetCode</code>. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2406">#2406</a></li>
   <li>Add <code>PyCode</code> and <code>PyFrame</code> high level objects. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2408">#2408</a></li>
   <li>Add FFI definitions <code>Py_fstring_input</code>, <code>sendfunc</code>, and <code>_PyErr_StackItem</code>. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2423">#2423</a></li>
   <li>Add <code>PyDateTime::new_with_fold</code>, <code>PyTime::new_with_fold</code>, <code>PyTime::get_fold</code>, and <code>PyDateTime::get_fold</code> for PyPy. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2428">#2428</a></li>
   <li>Accept <code>#[pyo3(name)]</code> on enum variants. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2457">#2457</a></li>
   <li>Add <code>CompareOp::matches</code> to implement <code>__richcmp__</code> as the result of a Rust <code>std::cmp::Ordering</code> comparison. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2460">#2460</a></li>
   <li>Add <code>PySuper</code> type. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2486">#2486</a></li>
   <li>Support PyPy on Windows with the <code>generate-import-lib</code> feature. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2506">#2506</a></li>
   <li>Add FFI definitions <code>Py_EnterRecursiveCall</code> and <code>Py_LeaveRecursiveCall</code>. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2511">#2511</a></li>
   <li>Add <code>PyDict::get_item_with_error</code>. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2536">#2536</a></li>
   <li>Add <code>#[pyclass(sequence)]</code> option. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2567">#2567</a></li>
   </ul>
   <h3>Changed</h3>
   <ul>
   <li>Change datetime constructors taking a <code>tzinfo</code> to take <code>Option&lt;&amp;PyTzInfo&gt;</code> instead of <code>Option&lt;&amp;PyObject&gt;</code>: <code>PyDateTime::new</code>, <code>PyDateTime::new_with_fold</code>, <code>PyTime::new</code>, and <code>PyTime::new_with_fold</code>. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/1588">#1588</a></li>
   <li>Move <code>PyTypeObject::type_object</code> method to the <code>PyTypeInfo</code> trait, and deprecate the <code>PyTypeObject</code> trait. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2287">#2287</a></li>
   <li>Methods of <code>Py</code> and <code>PyAny</code> now accept <code>impl IntoPy&lt;Py&lt;PyString&gt;&gt;</code> rather than just <code>&amp;str</code> to allow use of the <code>intern!</code> macro. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2312">#2312</a></li>
   <li>Change the deprecated <code>pyproto</code> feature to be opt-in instead of opt-out. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2322">#2322</a></li>
   <li>Emit better error messages when <code>#[pyfunction]</code> return types do not implement <code>IntoPy</code>. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2326">#2326</a></li>
   <li>Require <code>T: IntoPy</code> for <code>impl&lt;T, const N: usize&gt; IntoPy&lt;PyObject&gt; for [T; N]</code> instead of <code>T: ToPyObject</code>. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2326">#2326</a></li>
   <li>Deprecate the <code>ToBorrowedObject</code> trait. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2333">#2333</a></li>
   <li>Iterators over <code>PySet</code> and <code>PyDict</code> will now panic if the underlying collection is mutated during the iteration. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2380">#2380</a></li>
   <li>Iterators over <code>PySet</code> and <code>PyDict</code> will now panic if the underlying collection is mutated during the iteration. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2380">#2380</a></li>
   <li>Allow <code>#[classattr]</code> methods to be fallible. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2385">#2385</a></li>
   <li>Prevent multiple <code>#[pymethods]</code> with the same name for a single <code>#[pyclass]</code>. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2399">#2399</a></li>
   <li>Fixup <code>lib_name</code> when using <code>PYO3_CONFIG_FILE</code>. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2404">#2404</a></li>
   <li>Add a message to the <code>ValueError</code> raised by the <code>#[derive(FromPyObject)]</code> implementation for a tuple struct. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2414">#2414</a></li>
   <li>Allow <code>#[classattr]</code> methods to take <code>Python</code> argument. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2456">#2456</a></li>
   <li>Rework <code>PyCapsule</code> type to resolve soundness issues: <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2485">#2485</a>
   <ul>
   <li><code>PyCapsule::new</code> and <code>PyCapsule::new_with_destructor</code> now take <code>name: Option&lt;CString&gt;</code> instead of <code>&amp;CStr</code>.</li>
   <li>The destructor <code>F</code> in <code>PyCapsule::new_with_destructor</code> must now be <code>Send</code>.</li>
   <li><code>PyCapsule::get_context</code> deprecated in favour of <code>PyCapsule::context</code> which doesn't take a <code>py: Python&lt;'_&gt;</code> argument.</li>
   <li><code>PyCapsule::set_context</code> no longer takes a <code>py: Python&lt;'_&gt;</code> argument.</li>
   <li><code>PyCapsule::name</code> now returns <code>PyResult&lt;Option&lt;&amp;CStr&gt;&gt;</code> instead of <code>&amp;CStr</code>.</li>
   </ul>
   </li>
   <li><code>FromPyObject::extract</code> for <code>Vec&lt;T&gt;</code> no longer accepts Python <code>str</code> inputs. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2500">#2500</a></li>
   <li>Ensure each <code>#[pymodule]</code> is only initialized once. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2523">#2523</a></li>
   <li><code>pyo3_build_config::add_extension_module_link_args</code> now also emits linker arguments for <code>wasm32-unknown-emscripten</code>. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2538">#2538</a></li>
   <li>Type checks for <code>PySequence</code> and <code>PyMapping</code> now require inputs to inherit from (or register with) <code>collections.abc.Sequence</code> and <code>collections.abc.Mapping</code> respectively. <a href="https://github-redirect.dependabot.com/PyO3/pyo3/pull/2477">#2477</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/04c1ac87f15048197daa361afaf02341018354d6"><code>04c1ac8</code></a> release: 0.17.0</li>
   <li><a href="https://github.com/PyO3/pyo3/commit/bc03d6a98d64982cb6dff0c2690456cd88f56c8a"><code>bc03d6a</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/pyo3/pyo3/issues/2580">#2580</a> from davidhewitt/docs-bonanza</li>
   <li><a href="https://github.com/PyO3/pyo3/commit/f7537909a123f682355e5a61a2ab499637312d55"><code>f753790</code></a> guide: note existence of PyFunction::new_closure</li>
   <li><a href="https://github.com/PyO3/pyo3/commit/86a11164e0290c5df7a1897a6d448d3d0e4eb41b"><code>86a1116</code></a> guide: note <strong>hash</strong> can have any integer type up to 64 bits</li>
   <li><a href="https://github.com/PyO3/pyo3/commit/c5ecf4789066d2b1a77d37b121b5258830a029c2"><code>c5ecf47</code></a> docs: note <code>__richcmp__</code> disables default <code>__hash__</code></li>
   <li><a href="https://github.com/PyO3/pyo3/commit/f7ebda8ce3f736d5ba335a516fd9b7bdf1b50823"><code>f7ebda8</code></a> docs: note with_gil auto-creates thread state</li>
   <li><a href="https://github.com/PyO3/pyo3/commit/fb05e1d7a7e71ade994d97041d35362ea8c0af62"><code>fb05e1d</code></a> guide: additional detail on how to handle foreign errors</li>
   <li><a href="https://github.com/PyO3/pyo3/commit/580e747521126109bbd2f46b1ed9e71b3dc34abc"><code>580e747</code></a> guide: use sentence case, move function signatures to own section</li>
   <li><a href="https://github.com/PyO3/pyo3/commit/af60a359c56f179dd560862451199ff8ad682314"><code>af60a35</code></a> guide: don't use <code>::pyo3</code></li>
   <li><a href="https://github.com/PyO3/pyo3/commit/ef8ccc0debd400d94fffacbac497df8584f4e963"><code>ef8ccc0</code></a> docs: demonstrate <code>NotImplemented</code> in <code>__richcmp__</code></li>
   <li>Additional commits viewable in <a href="https://github.com/pyo3/pyo3/compare/v0.16.0...v0.17.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] dependabot[bot] commented on pull request #2577: Update pyo3 requirement from 0.16 to 0.17

Posted by GitBox <gi...@apache.org>.
dependabot[bot] commented on PR #2577:
URL: https://github.com/apache/arrow-rs/pull/2577#issuecomment-1225755544

   OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting `@dependabot ignore this major version` or `@dependabot ignore this minor version`. You can also ignore all major, minor, or patch releases for a dependency by adding an [`ignore` condition](https://docs.github.com/en/code-security/supply-chain-security/configuration-options-for-dependency-updates#ignore) with the desired `update_types` to your config file.
   
   If you change your mind, just re-open this PR and I'll resolve any conflicts on it.


-- 
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 closed pull request #2577: Update pyo3 requirement from 0.16 to 0.17

Posted by GitBox <gi...@apache.org>.
tustvold closed pull request #2577: Update pyo3 requirement from 0.16 to 0.17
URL: https://github.com/apache/arrow-rs/pull/2577


-- 
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