dependabot[bot] opened a new pull request, #516: URL: https://github.com/apache/arrow-datafusion-python/pull/516
Bumps [pyo3-build-config](https://github.com/pyo3/pyo3) from 0.19.2 to 0.20.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pyo3/pyo3/releases">pyo3-build-config's releases</a>.</em></p> <blockquote> <h2>PyO3 0.20.0</h2> <p>This release is the first PyO3 release to be dual-licensed under Apache 2.0 OR MIT licensing (expanding from just Apache 2.0 of previous releases).</p> <p>Python 3.12 stable is now supported. The minimum supported Rust version has been increased to Rust 1.56.</p> <p>The <code>__eq__</code>, <code>__ne__</code>,<code> __lt__</code>, <code>__le__</code>, <code>__gt__</code> and <code>__ge__</code> magic methods are now usable in <code>#[pymethods]</code> to implement Python operators as an alternative to the <code>__richcmp__</code> method PyO3 already offered.</p> <p><code>#[pyclass(rename_all = "renaming_rule")]</code> has been added to rename all fields of structs exposed to Python (e.g. <code>rename_all = "snake_case"</code>) .</p> <p><code>PyDict::get_item</code> now returns <code>Result<Option<&PyAny>></code> instead of just <code>Option<&PyAny></code>. The previous implementation which ignored Python errors used APIs now considered deprecated by the Python language designers; it is now considered best practice to bubble up any exception raised during dictionary <code>__getitem__</code>. For most users migration for this change will simply require addition of a <code>?</code> on each use of <code>PyDict::get_item</code>.</p> <p>Note that Python 3.7 is end of life but PyO3 will continue to support for now as a number of downstream Python packages still have high proportions of downloads on 3.7. A future release is expected to drop Python 3.7 when these numbers reduce.</p> <p>There have been numerous other smaller improvements, changes and fixes. For full details see the <a href="https://pyo3.rs/v0.20.0/changelog.html">CHANGELOG</a>.</p> <p>Please consult the <a href="https://pyo3.rs/v0.20.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/adriangb"><code>@adriangb</code></a> <a href="https://github.com/alex"><code>@alex</code></a> <a href="https://github.com/BooleanCat"><code>@BooleanCat</code></a> <a href="https://github.com/CallMeMSL"><code>@CallMeMSL</code></a> <a href="https://github.com/cdce8p"><code>@cdce8p</code></a> <a href="https://github.com/DataTriny"><code>@DataTriny</code></a> <a href="https://github.com/davidhewitt"><code>@davidhewitt</code></a> <a href="https://github.com/ecarrara"><code>@ecarrara</code></a> <a href="https://github.com/GoldsteinE"><code>@GoldsteinE</code></a> <a href="https://github.com/grantslatton"><code>@grantslatton</code></a> <a href="https://github.com/Hofer-Julian"><code>@Hofer-Julian</code></a> <a href="https://github.com/ijl"><code>@ijl</code></a> <a href="https://github.com/iliya-malecki"><code>@iliya-malecki</code></a> <a href="https://github.com/jakelishman"><code>@jakelishman</code></a> <a href="https://github.com/jeffs"><code>@jeffs</code></a> <a href="https://github.com/juntyr"><code>@juntyr</code></a> <a href="https://github.com/krpatter-intc"><code>@krpatter-intc</code></a> <a href="https://github.com/lucatrv"><code>@lucatrv</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/mhils"><code>@mhils</code></a> <a href="https://github.com/panpilkarz"><code>@panpilkarz</code></a> <a href="https://github.com/puradox"><code>@puradox</code></a> <a href="https://github.com/ringsaturn"><code>@ringsaturn</code></a> <a href="https://github.com/rytheo"><code>@rytheo</code></a> <a href="https://github.com/SigureMo"><code>@SigureMo</code></a> <a href="https://github.com/smheidrich"><code>@smheidrich</code></a> <a href="https://github.com/Tpt"><code>@Tpt</code></a> <a href="https://github.com/youknowone"><code>@youknowone</code></a> <a href="https://github.com/zakstucke"><code>@zakstucke</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-build-config's changelog</a>.</em></p> <blockquote> <h2>[0.20.0] - 2023-10-11</h2> <h3>Packaging</h3> <ul> <li>Dual-license PyO3 under either the Apache 2.0 OR the MIT license. This makes the project GPLv2 compatible. <a href="https://redirect.github.com/PyO3/pyo3/pull/3108">#3108</a></li> <li>Update MSRV to Rust 1.56. <a href="https://redirect.github.com/PyO3/pyo3/pull/3208">#3208</a></li> <li>Bump <code>indoc</code> dependency to 2.0 and <code>unindent</code> dependency to 0.2. <a href="https://redirect.github.com/PyO3/pyo3/pull/3237">#3237</a></li> <li>Bump <code>syn</code> dependency to 2.0. <a href="https://redirect.github.com/PyO3/pyo3/pull/3239">#3239</a></li> <li>Drop support for debug builds of Python 3.7. <a href="https://redirect.github.com/PyO3/pyo3/pull/3387">#3387</a></li> <li>Bump <code>chrono</code> optional dependency to require 0.4.25 or newer. <a href="https://redirect.github.com/PyO3/pyo3/pull/3427">#3427</a></li> <li>Support Python 3.12. <a href="https://redirect.github.com/PyO3/pyo3/pull/3488">#3488</a></li> </ul> <h3>Added</h3> <ul> <li>Support <code>__lt__</code>, <code>__le__</code>, <code>__eq__</code>, <code>__ne__</code>, <code>__gt__</code> and <code>__ge__</code> in <code>#[pymethods]</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/3203">#3203</a></li> <li>Add FFI definition <code>Py_GETENV</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/3336">#3336</a></li> <li>Add <code>as_ptr</code> and <code>into_ptr</code> inherent methods for <code>Py</code>, <code>PyAny</code>, <code>PyRef</code>, and <code>PyRefMut</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/3359">#3359</a></li> <li>Implement <code>DoubleEndedIterator</code> for <code>PyTupleIterator</code> and <code>PyListIterator</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/3366">#3366</a></li> <li>Add <code>#[pyclass(rename_all = "...")]</code> option: this allows renaming all getters and setters of a struct, or all variants of an enum. Available renaming rules are: <code>"camelCase"</code>, <code>"kebab-case"</code>, <code>"lowercase"</code>, <code>"PascalCase"</code>, <code>"SCREAMING-KEBAB-CASE"</code>, <code>"SCREAMING_SNAKE_CASE"</code>, <code>"snake_case"</code>, <code>"UPPERCASE"</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/3384">#3384</a></li> <li>Add FFI definitions <code>PyObject_GC_IsTracked</code> and <code>PyObject_GC_IsFinalized</code> on Python 3.9 and up (PyPy 3.10 and up). <a href="https://redirect.github.com/PyO3/pyo3/pull/3403">#3403</a></li> <li>Add types for <code>None</code>, <code>Ellipsis</code>, and <code>NotImplemented</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/3408">#3408</a></li> <li>Add FFI definitions for the <code>Py_mod_multiple_interpreters</code> constant and its possible values. <a href="https://redirect.github.com/PyO3/pyo3/pull/3494">#3494</a></li> <li>Add FFI definitions for <code>PyInterpreterConfig</code> struct, its constants and <code>Py_NewInterpreterFromConfig</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/3502">#3502</a></li> </ul> <h3>Changed</h3> <ul> <li>Change <code>PySet::discard</code> to return <code>PyResult<bool></code> (previously returned nothing). <a href="https://redirect.github.com/PyO3/pyo3/pull/3281">#3281</a></li> <li>Optimize implmentation of <code>IntoPy</code> for Rust tuples to Python tuples. <a href="https://redirect.github.com/PyO3/pyo3/pull/3321">#3321</a></li> <li>Change <code>PyDict::get_item</code> to no longer suppress arbitrary exceptions (the return type is now <code>PyResult<Option<&PyAny>></code> instead of <code>Option<&PyAny></code>), and deprecate <code>PyDict::get_item_with_error</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/3330">#3330</a></li> <li>Deprecate FFI definitions which are deprecated in Python 3.12. <a href="https://redirect.github.com/PyO3/pyo3/pull/3336">#3336</a></li> <li><code>AsPyPointer</code> is now an <code>unsafe trait</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/3358">#3358</a></li> <li>Accept all <code>os.PathLike</code> values in implementation of <code>FromPyObject</code> for <code>PathBuf</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/3374">#3374</a></li> <li>Add <code>__builtins__</code> to globals in <code>py.run()</code> and <code>py.eval()</code> if they're missing. <a href="https://redirect.github.com/PyO3/pyo3/pull/3378">#3378</a></li> <li>Optimize implementation of <code>FromPyObject</code> for <code>BigInt</code> and <code>BigUint</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/3379">#3379</a></li> <li><code>PyIterator::from_object</code> and <code>PyByteArray::from</code> now take a single argument of type <code>&PyAny</code> (previously took two arguments <code>Python</code> and <code>AsPyPointer</code>). <a href="https://redirect.github.com/PyO3/pyo3/pull/3389">#3389</a></li> <li>Replace <code>AsPyPointer</code> with <code>AsRef<PyAny></code> as a bound in the blanket implementation of <code>From<&T> for PyObject</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/3391">#3391</a></li> <li>Replace blanket <code>impl IntoPy<PyObject> for &T where T: AsPyPointer</code> with implementations of <code>impl IntoPy<PyObject></code> for <code>&PyAny</code>, <code>&T where T: AsRef<PyAny></code>, and <code>&Py<T></code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/3393">#3393</a></li> <li>Preserve <code>std::io::Error</code> kind in implementation of <code>From<std::io::IntoInnerError></code> for <code>PyErr</code> <a href="https://redirect.github.com/PyO3/pyo3/pull/3396">#3396</a></li> <li>Try to select a relevant <code>ErrorKind</code> in implementation of <code>From<PyErr></code> for <code>OSError</code> subclass. <a href="https://redirect.github.com/PyO3/pyo3/pull/3397">#3397</a></li> <li>Retrieve the original <code>PyErr</code> in implementation of <code>From<std::io::Error></code> for <code>PyErr</code> if the <code>std::io::Error</code> has been built using a Python exception (previously would create a new exception wrapping the <code>std::io::Error</code>). <a href="https://redirect.github.com/PyO3/pyo3/pull/3402">#3402</a></li> <li><code>#[pymodule]</code> will now return the same module object on repeated import by the same Python interpreter, on Python 3.9 and up. <a href="https://redirect.github.com/PyO3/pyo3/pull/3446">#3446</a></li> <li>Truncate leap-seconds and warn when converting <code>chrono</code> types to Python <code>datetime</code> types (<code>datetime</code> cannot represent leap-seconds). <a href="https://redirect.github.com/PyO3/pyo3/pull/3458">#3458</a></li> <li><code>Err</code> returned from <code>#[pyfunction]</code> will now have a non-None <code>__context__</code> if called from inside a <code>catch</code> block. <a href="https://redirect.github.com/PyO3/pyo3/pull/3455">#3455</a></li> <li>Deprecate undocumented <code>#[__new__]</code> form of <code>#[new]</code> attribute. <a href="https://redirect.github.com/PyO3/pyo3/pull/3505">#3505</a></li> </ul> <h3>Removed</h3> <ul> <li>Remove all functionality deprecated in PyO3 0.18, including <code>#[args]</code> attribute for <code>#[pymethods]</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/3232">#3232</a></li> <li>Remove <code>IntoPyPointer</code> trait in favour of <code>into_ptr</code> inherent methods. <a href="https://redirect.github.com/PyO3/pyo3/pull/3385">#3385</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/c77deee18ec545b3b5fa480068e5da62a33e7c42"><code>c77deee</code></a> release: 0.20.0</li> <li><a href="https://github.com/PyO3/pyo3/commit/b03c4cb33cc30da738270a4db8322d5d9b74fb8c"><code>b03c4cb</code></a> Merge pull request <a href="https://redirect.github.com/pyo3/pyo3/issues/3506">#3506</a> from davidhewitt/default-ne</li> <li><a href="https://github.com/PyO3/pyo3/commit/e1d4173827f1881411baf20cd379b1ce77b88acb"><code>e1d4173</code></a> Fix bug in default implementation of <code>__ne__</code></li> <li><a href="https://github.com/PyO3/pyo3/commit/b73c06948cb2924ce39f676319dd2ec6cd83f147"><code>b73c069</code></a> Merge pull request <a href="https://redirect.github.com/pyo3/pyo3/issues/3504">#3504</a> from davidhewitt/classmethod-receiver</li> <li><a href="https://github.com/PyO3/pyo3/commit/76bf521ed07ab41dced572f6e7ebdd71cee72be6"><code>76bf521</code></a> Merge pull request <a href="https://redirect.github.com/pyo3/pyo3/issues/3505">#3505</a> from davidhewitt/deprecate_dunder_new</li> <li><a href="https://github.com/PyO3/pyo3/commit/6c90325a1ce4ef9eeda9e50d8c421abde0e3212d"><code>6c90325</code></a> deprecate undocumented <code>#[__new__]</code> form of <code>#[new]</code></li> <li><a href="https://github.com/PyO3/pyo3/commit/c0b5004cfaec28cda6ec77202180e27e21e0198a"><code>c0b5004</code></a> Merge pull request <a href="https://redirect.github.com/pyo3/pyo3/issues/3455">#3455</a> from davidhewitt/normalized-exceptions</li> <li><a href="https://github.com/PyO3/pyo3/commit/80bbb30f56077fd66b619c3a08e4e38af433de7b"><code>80bbb30</code></a> Merge pull request <a href="https://redirect.github.com/pyo3/pyo3/issues/3500">#3500</a> from ecarrara/fix-eval-frame-py311</li> <li><a href="https://github.com/PyO3/pyo3/commit/ddc04ea0939d8997659d512dd801f114a4e87aae"><code>ddc04ea</code></a> emit helpful error hint for classmethod with receiver</li> <li><a href="https://github.com/PyO3/pyo3/commit/0e0e6623f37b64f09e0abd957e19e3490bffbef8"><code>0e0e662</code></a> fix _PyFrameEvalFunction. Since python 3.11 it receives a <code>_PyInterpreterFrame</code></li> <li>Additional commits viewable in <a href="https://github.com/pyo3/pyo3/compare/v0.19.2...v0.20.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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 show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
