Jij-Inc / pyo3-stub-gen

Stub file (*.pyi) generator for PyO3
Apache License 2.0
61 stars 12 forks source link

Bump the dependencies group across 1 directory with 32 updates #100

Closed dependabot[bot] closed 1 week ago

dependabot[bot] commented 2 weeks ago

Bumps the dependencies group with 21 updates in the / directory:

Package From To
anyhow 1.0.89 1.0.92
insta 1.40.0 1.41.1
numpy 0.21.0 0.22.1
prettyplease 0.2.22 0.2.25
proc-macro2 1.0.86 1.0.89
serde 1.0.210 1.0.214
anstream 0.6.15 0.6.17
anstyle 1.0.8 1.0.10
anstyle-parse 0.2.5 0.2.6
anstyle-query 1.1.1 1.1.2
autocfg 1.3.0 1.4.0
colorchoice 1.0.2 1.0.3
indexmap 2.5.0 2.6.0
libc 0.2.158 0.2.161
ndarray 0.15.6 0.16.1
once_cell 1.19.0 1.20.2
portable-atomic 1.8.0 1.9.0
regex 1.10.6 1.11.1
serde_spanned 0.6.7 0.6.8
toml_edit 0.22.21 0.22.22
winnow 0.6.18 0.6.20

Updates anyhow from 1.0.89 to 1.0.92

Release notes

Sourced from anyhow's releases.

1.0.92

  • Support Rust 1.82's &raw const and &raw mut syntax inside ensure! (#390)

1.0.91

  • Ensure OUT_DIR is left with deterministic contents after build script execution (#388)

1.0.90

  • Documentation improvements
Commits
  • fd03a8e Release 1.0.92
  • a16252b Merge pull request #390 from dtolnay/rawaddr
  • fcf2ef8 Compile &raw test on Rust 1.82+ only
  • 1e7e9fe Parse raw address expression syntax
  • 7d1a8f9 Add test of raw addr expression syntax
  • 6c52daa Release 1.0.91
  • 4986853 Merge pull request #388 from dtolnay/outdir
  • f130b76 Clean up dep-info files from OUT_DIR
  • a0b868a Release 1.0.90
  • 0f74169 Improve rendering of inline code in macros documentation
  • Additional commits viewable in compare view


Updates insta from 1.40.0 to 1.41.1

Release notes

Sourced from insta's releases.

1.41.1

Release Notes

  • Re-release of 1.41.0 to generate release artifacts correctly.

Install cargo-insta 1.41.1

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.41.1/cargo-insta-installer.sh | sh

Install prebuilt binaries via powershell script

powershell -c "irm https://github.com/mitsuhiko/insta/releases/download/1.41.1/cargo-insta-installer.ps1 | iex"

Download cargo-insta 1.41.1

File Platform Checksum
cargo-insta-aarch64-apple-darwin.tar.xz Apple Silicon macOS checksum
cargo-insta-x86_64-apple-darwin.tar.xz Intel macOS checksum
cargo-insta-x86_64-pc-windows-msvc.zip x64 Windows checksum
cargo-insta-x86_64-unknown-linux-gnu.tar.xz x64 Linux checksum
cargo-insta-x86_64-unknown-linux-musl.tar.xz x64 MUSL Linux checksum

1.41.0

  • Experimental support for binary snapshots. #610 (Florian Plattner)

  • --force-update-snapshots now causes cargo-insta to write every snapshot, regardless of whether snapshots fully match, and now implies --accept. This allows for --force-update-snapshots to update inline snapshots' delimiters and indentation.

    For the previous behavior of --force-update-snapshots, which limited writes to snapshots which didn't fully match, use --require-full-match. The main difference between --require-full-match and the existing behavior of --force-update-snapshots is a non-zero exit code on any snapshots which don't fully match.

    Like the previous behavior or --force-update-snapshots, --require-full-match doesn't track inline snapshots' delimiters or indentation, so can't update if those don't match. #644

  • Inline snapshots only use # characters as delimiters when required. #603

  • Warnings for undiscovered snapshots are more robust, and include files with custom snapshot extensions. #637

  • Insta runs correctly on packages which reference rust files in a parent path. #626

  • Warnings are printed when any snapshot uses a legacy format. #599

  • cargo insta --version now prints a version. #665

... (truncated)

Changelog

Sourced from insta's changelog.

1.41.1

  • Re-release of 1.41.1 to generate release artifacts correctly.

1.41.0

  • Experimental support for binary snapshots. #610 (Florian Plattner)

  • --force-update-snapshots now causes cargo-insta to write every snapshot, regardless of whether snapshots fully match, and now implies --accept. This allows for --force-update-snapshots to update inline snapshots' delimiters and indentation.

    For the previous behavior of --force-update-snapshots, which limited writes to snapshots which didn't fully match, use --require-full-match. The main difference between --require-full-match and the existing behavior of --force-update-snapshots is a non-zero exit code on any snapshots which don't fully match.

    Like the previous behavior of --force-update-snapshots, --require-full-match doesn't track inline snapshots' delimiters or indentation, so can't update if those don't match. #644

  • Inline snapshots only use # characters as delimiters when required. #603

  • Warnings for undiscovered snapshots are more robust, and include files with custom snapshot extensions. #637

  • Insta runs correctly on packages which reference rust files in a parent path. #626

  • Warnings are printed when any snapshot uses a legacy format. #599

  • cargo insta --version now prints a version. #665

  • insta now internally uses INSTA_UPDATE=force rather than INSTA_FORCE_UPDATE=1. (This doesn't affect users of cargo-insta, which handles this internally.) #482

  • cargo-insta's integration tests continue to grow over the past couple of versions, and now offer coverage of most of cargo-insta's interface.

Commits


Updates numpy from 0.21.0 to 0.22.1

Release notes

Sourced from numpy's releases.

rust-numpy version 0.22.1

This release fixes support for 32-bit Windows, and adds PyReadWriteArray::make_nonwriteable.

Thanks to @​jakelishman for the improvements!

rust-numpy version 0.22.0

This long-overdue release bumps PyO3 version to 0.22.0, bringing Python 3.13 support. Also included is support for numpy 2.0 as well as ndarray 0.16.

Thank you to the long list of contributors who made this happen, including:

@​adamreichold @​aMarcireau @​bschoenmaeckers @​davidhewitt @​euanwm @​itamarst @​JRRudy1 @​maffoo @​magnusuMET

Changelog

Sourced from numpy's changelog.

Changelog

  • v0.22.1

    • Fix building on 32-bit Windows. (#463)
    • Add PyReadwriteArray::make_nonwriteable. (#462)
    • Implement From<PyReadWriteArray> for PyReadonlyArray. (#462)
  • v0.22.0

    • Bump MSRV to 1.63. (#450)
    • Add permute and transpose methods for changing the order of axes of a PyArray. (#428)
    • Add support for NumPy v2 which had a number of changes to the C API. (#442)
    • Add support for ndarray 0.16. (#439)
    • Bumped pyo3 dependency to v0.22.0 which required the addition of several new methods to the Element trait. (#435)
  • v0.21.0

    • Migrate to the new Bound API introduced by PyO3 0.21. (#410) (#411) (#412) (#415) (#416) (#418) (#419) (#420) (#421) (#422)
    • Add a prelude module to simplify importing method traits required by the Bound API. (#417)
    • Extend documentation to cover some more surprising behaviours. (#405) (#414)
  • v0.20.0

    • Increase MSRV to 1.56 released in October 2021 and available in Debain 12, RHEL 9 and Alpine 3.17 following the same change for PyO3. (#378)
    • Add support for ASCII (PyFixedString<N>) and Unicode (PyFixedUnicode<N>) string arrays, i.e. dtypes SN and UN where N is the number of characters. (#378)
    • Add support for the bfloat16 dtype by extending the optional integration with the half crate. Note that the bfloat16 dtype is not part of NumPy itself so that usage requires third-party packages like Tensorflow. (#381)
    • Add PyArrayLike type which extracts PyReadonlyArray if a NumPy array of the correct type is given and attempts a conversion using numpy.asarray otherwise. (#383)
  • v0.19.0

    • Add PyUntypedArray as an untyped base type for PyArray which can be used to inspect arguments before more targeted downcasts. This is accompanied by some methods like dtype and shape moving from PyArray to PyUntypedArray. They are still accessible though, as PyArray dereferences to PyUntypedArray via the Deref trait. (#369)
    • Drop deprecated PyArray::from_exact_iter as it does not provide any benefits over PyArray::from_iter. (#370)
  • v0.18.0

    • Add conversions from and to datatypes provided by the nalgebra crate. (#347)
    • Drop our wrapper for NumPy iterators which were deprecated in v0.16.0 as ndarray's iteration facilities are almost always preferable. (#324)
    • Dynamic borrow checking now uses a capsule-based API and therefore works across multiple extensions using PyO3 and potentially other bindings or languages. (#361)
  • v0.17.2

    • Fix unsound aliasing into Box<[T]> when converting them into NumPy arrays. (#351)
  • v0.17.1

    • Fix use-after-free in PyArray::resize, PyArray::reshape and PyArray::reshape_with_order. (#341)
    • Fix UB in ToNpyDims::as_dims_ptr with dimensions of dynamic size (-1). (#344)
  • v0.17.0

    • Add dynamic borrow checking to safely construct references into the interior of NumPy arrays. (#274)
      • The deprecated iterator builders NpySingleIterBuilder::{readonly,readwrite} and NpyMultiIterBuilder::add_{readonly,readwrite} now take referencces to PyReadonlyArray and PyReadwriteArray instead of consuming them.
      • The destructive PyArray::resize method is now unsafe if used without an instance of PyReadwriteArray. (#302)
    • Add support for datetime64 and timedelta64 element types via the datetime module. (#308)
    • Add support for IEEE 754-2008 16-bit floating point numbers via an optional dependency on the half crate. (#314)
    • The inner, dot and einsum functions can also return a scalar instead of a zero-dimensional array to match NumPy's types (#285)
    • The PyArray::resize function supports n-dimensional contiguous arrays. (#312)
    • Deprecate PyArray::from_exact_iter after optimizing PyArray::from_iter. (#292)

... (truncated)

Commits
  • 56a96c2 release: 0.22.1
  • 327ab10 Add From\<PyReadwriteArray> for PyReadonlyArray
  • a4b922f Add safe interface to clear WRITEABLE flag
  • 6cd2a84 Re-enable builds on 32-bit Windows
  • 64145d2 Fix static-size FFI type aliases
  • 9095a77 release: 0.22.0
  • d07dbf5 apply check for core vs _core at runtime
  • 7e702be changed core module call to _core
  • f71d9c5 skip 3.13 test on numpy 1
  • 501c14a add python 3.13 to ci martrices
  • Additional commits viewable in compare view


Updates prettyplease from 0.2.22 to 0.2.25

Release notes

Sourced from prettyplease's releases.

0.2.25

0.2.24

  • Improve support for use<> syntax (#83)

0.2.23

  • Support formatting &raw const place and &raw mut place expressions (#82)
Commits
  • 50de5c6 Release 0.2.25
  • 06791ea Merge pull request #85 from dtolnay/externsafe
  • db38f77 Print safe and explicitly unsafe foreign items
  • 91ebe48 Merge pull request #84 from dtolnay/buildenv
  • 265ab3b Use $CARGO_PKG_VERSION from buildscript exec-time instead of build-time
  • c6f0815 Release 0.2.24
  • 4ca0f76 Merge pull request #83 from dtolnay/precisecapture
  • 3381c64 Pretty print TypeParamBound::PreciseCapture
  • a1701f7 Release 0.2.23
  • b4919cf Merge pull request #82 from dtolnay/rawaddr
  • Additional commits viewable in compare view


Updates proc-macro2 from 1.0.86 to 1.0.89

Release notes

Sourced from proc-macro2's releases.

1.0.89

  • Ensure OUT_DIR is left with deterministic contents after build script execution (#474)

1.0.88

  • Return accurate line and column from Span::start and Span::end inside proc macros on nightly (#472)

1.0.87

  • Check valid punctuation character in Punct::new (#470)
Commits
  • 671d87d Release 1.0.89
  • 9574d98 Merge pull request #474 from dtolnay/outdir
  • 3e8962c Clean up dep-info files from OUT_DIR
  • 6b3395a Release 1.0.88
  • faee27e Merge pull request #472 from dtolnay/startend
  • 44f8ff2 Restore nightly behavior of Span::start and Span::end
  • 50b477d Release 1.0.87
  • f0b6802 Merge pull request #471 from dtolnay/punctnew
  • 98ea261 Check valid punctuation character in Punct::new
  • d60aaad Ignore missing_panics_doc pedantic clippy lint
  • Additional commits viewable in compare view


Updates pyo3 from 0.21.2 to 0.22.5

Release notes

Sourced from pyo3's releases.

PyO3 0.22.5

This release fixes a compile regression from 0.22.4 where #[pymethods] with name __clear__ and clear would generate code with a naming conflict. Thanks @​awolverp for the report and @​Icxolu for the fix!

PyO3 0.22.4

This release is a security fix for PyO3 0.22.0 through 0.22.3.

The PyWeakrefMethods trait functions for reading borrowed values from Python weak references have been identified as unsound, because they did not account for the possibility the last strong reference could be cleared at any time, leading the borrowed value to be dangling and risk of use-after-free.

PyO3 0.22.4 protects against this issue by making these methods permanently leak strong references. The methods are also marked deprecated and will be removed in PyO3 0.23. Users should switch to use the use PyWeakrefMethods functions which return owned references (the deprecation messages indicate the appropriate upgrade paths).

These functions were added in PyO3 0.22.0; all versions from 0.22.0 through 0.22.3 have been yanked.

Aside from the security fix, PyO3 0.22.4 contains a number of other bugfixes, including:

  • A fix for cases where __traverse__ functions of base types were not called when using #[pyclass(extends = ...)]
  • A fix for a regression in 0.22.3 where PyO3 generated code would trigger compile failures with crates using #![forbid(unsafe_code)]

Thank you to the following contributors for the improvements:

@​davidhewitt @​ngoldbaum @​exg @​Icxolu

PyO3 0.22.3

This release contains a number of quality improvements building upon PyO3 0.22.2.

Python function calls (using .call0(), .call1(args) and .call(args, kwargs)) will now make use of the "vectorcall" calling conventions where possible, which can reduce overheads in many cases.

There have been several fix-ups to PyO3's FFI definitions. A new pyo3::ffi::compat namespace has been added which offers some backwards-compatible implementations of Python APIs otherwise normally only available on recent Pythons.

There have been numerous other bug-fixes and minor tweaks to improve user experience.

Thank you to the following contributors for the improvements:

@​birkenfeld @​ChayimFriedman2 @​csernazs @​davidhewitt @​Icxolu @​jakelishman @​LilyFoote @​ngoldbaum @​Zyell

PyO3 0.22.2

This release contains some minor reliability fixes building upon PyO3 0.22.1.

As PyO3 is still working on supporting freethreaded Python (upcoming in 3.13), support has been gated behind an UNSAFE_PYO3_BUILD_FREE_THREADED=1 environment variable to avoid unsuspecting users running into broken builds.

Packages built for the abi3 stable ABI will now use FFI functions for refcounting instead of inline reference count modifications on all versions of the stable ABI (previously only abi3 builds for 3.12 and up would use FFI functions). This helps mitigate interactions of old versions of the stable ABI with future CPython releases which do more complex reference counting (e.g. immortal objects, freethreaded reference counting).

... (truncated)

Changelog

Sourced from pyo3's changelog.

[0.22.5] - 2024-10-15

Fixed

  • Fix regression in 0.22.4 of naming collision in __clear__ slot and clear method generated code. #4619

[0.22.4] - 2024-10-12

Added

  • Add FFI definition PyWeakref_GetRef and compat::PyWeakref_GetRef. #4528

Changed

  • Deprecate _borrowed methods on PyWeakRef and PyWeakrefProxy (just use the owning forms). #4590

Fixed

  • Revert removal of private FFI function _PyLong_NumBits on Python 3.13 and later. #4450
  • Fix __traverse__ functions for base classes not being called by subclasses created with #[pyclass(extends = ...)]. #4563
  • Fix regression in 0.22.3 failing compiles under #![forbid(unsafe_code)]. #4574
  • Workaround possible use-after-free in _borrowed methods on PyWeakRef and PyWeakrefProxy by leaking their contents. #4590
  • Fix crash calling PyType_GetSlot on static types before Python 3.10. #4599

[0.22.3] - 2024-09-15

Added

  • Add pyo3::ffi::compat namespace with compatibility shims for C API functions added in recent versions of Python.
  • Add FFI definition PyDict_GetItemRef on Python 3.13 and newer, and compat::PyDict_GetItemRef for all versions. #4355
  • Add FFI definition PyList_GetItemRef on Python 3.13 and newer, and pyo3_ffi::compat::PyList_GetItemRef for all versions. #4410
  • Add FFI definitions compat::Py_NewRef and compat::Py_XNewRef. #4445
  • Add FFI definitions compat::PyObject_CallNoArgs and compat::PyObject_CallMethodNoArgs. #4461
  • Add GilOnceCell<Py<T>>::clone_ref. #4511

Changed

  • Improve error messages for #[pyfunction] defined inside #[pymethods]. #4349
  • Improve performance of calls to Python by using the vectorcall calling convention where possible. #4456
  • Mention the type name in the exception message when trying to instantiate a class with no constructor defined. #4481

Removed

  • Remove private FFI definition _Py_PackageContext. #4420

Fixed

  • Fix compile failure in declarative #[pymodule] under presence of #![no_implicit_prelude]. #4328

... (truncated)

Commits


Updates serde from 1.0.210 to 1.0.214

Release notes

Sourced from serde's releases.

v1.0.214

  • Implement IntoDeserializer for all Deserializers in serde::de::value module (#2568, thanks @​Mingun)

v1.0.213

  • Fix support for macro-generated with attributes inside a newtype struct (#2847)

v1.0.212

  • Fix hygiene of macro-generated local variable accesses in serde(with) wrappers (#2845)

v1.0.211

  • Improve error reporting about mismatched signature in with and default attributes (#2558, thanks @​Mingun)
  • Show variant aliases in error message when variant deserialization fails (#2566, thanks @​Mingun)
  • Improve binary size of untagged enum and internally tagged enum deserialization by about 12% (#2821)
Commits
  • 4180621 Release 1.0.214
  • 210373b Merge pull request #2568 from Mingun/into_deserializer-for-deserializers
  • 9cda015 Implement IntoDeserializer for all Deserializers in serde::de::value module
  • 58a8d22 Release 1.0.213
  • ef0ed22 Merge pull request #2847 from dtolnay/newtypewith
  • 79925ac Ignore dead_code warning in regression test
  • b60e409 Hygiene for macro-generated newtype struct deserialization with 'with' attr
  • fdc36e5 Add regression test for issue 2846
  • 49e11ce Ignore trivially_copy_pass_by_ref pedantic clippy lint in test
  • 7ae1b5f Release 1.0.212
  • Additional commits viewable in compare view


Updates syn from 2.0.77 to 2.0.87

Release notes

Sourced from syn's releases.

2.0.87

2.0.86

  • Support peeking the end of a parse stream (#1689)
  • Allow parse_quote! to produce Vec<Attribute> (#1775)

2.0.85

  • Preserve extern static unsafety in ForeignItem::Verbatim (#1773)

2.0.84

2.0.83

  • Documentation improvements

2.0.82

  • Provide Parse impls for PreciseCapture and CapturedParam (#1757, #1758)
  • Support parsing unsafe attributes (#1759)
  • Add Fold and VisitMut methods for Vec<Attribute> (#1762)

2.0.81

  • Add TypeParamBound::PreciseCapture to represent precise capture syntax impl Trait + use<'a, T> (#1752, #1753, #1754)

2.0.80

  • Add Expr::RawAddr (#1743)
  • Reject precise captures and ~const in inappropriate syntax positions (#1747)
  • Reject trait bound containing only precise capture (#1748)

2.0.79

  • Fix infinite loop on parsing chained ranges (#1741)
  • Fix panic in parsing use items containing absolute paths (#1742)

2.0.78

  • Fix infinite loop on chained comparison (#1739)
Commits
  • a777cff Release 2.0.87
  • 1f103d4 Merge pull request #1779 from dtolnay/scan
  • 0986a66 Ignore enum_glob_use pedantic clippy lint
  • ca97c7d Translate expr scanner to table driven
  • 8039cb3 Test that every expr can be scanned
  • 0132c44 Make scan_expr compilable from integration test
  • 7c102c3 Extract non-full expr scanner to module
  • ceaf4d6 Merge pull request #1778 from dtolnay/exprpeek
  • a890e9d Expose can_begin_expr as Expr::peek
  • 12f068c Merge pull request #1777 from dtolnay/anygroup
  • Additional commits viewable in compare view


Updates anstream from 0.6.15 to 0.6.17

Commits
  • 5628f47 chore: Release
  • 42d4175 chore: Release
  • 924fc50 chore: Release
  • 313e16a docs: Update changelog
  • 2bbc343 Merge pull request #225 from DaniPopes/as-locked-write-impls
  • 8639e08 feat: Implement AsLockedWrite generically too
  • f4a1f98 Merge pull request #224 from DaniPopes/raw-stream-autotraits
  • ed1dbd7 feat: Implement AutoStream for dyn Write + auto traits
  • 8a57dcc Merge pull request #223 from DaniPopes/raw-stream-refmut
  • a1cbc88 refactor: Implement RawStream for Box<T> generically
  • Additional commits viewable in compare view


Updates anstyle from 1.0.8 to 1.0.10

Commits


Updates anstyle-parse from 0.2.5 to 0.2.6

Commits
  • 5628f47 chore: Release
  • 42d4175 chore: Release
  • 924fc50 chore: Release
  • 313e16a docs: Update changelog
  • 2bbc343 Merge pull request #225 from DaniPopes/as-locked-write-impls
  • 8639e08 feat: Implement AsLockedWrite generically too
  • f4a1f98 Merge pull request #224 from DaniPopes/raw-stream-autotraits
  • ed1dbd7 feat: Implement AutoStream for dyn Write + auto traits
  • 8a57dcc Merge pull request #223 from DaniPopes/raw-stream-refmut
  • a1cbc88 refactor: Implement RawStream for Box<T> generically
  • Additional commits viewable in compare view


Updates anstyle-query from 1.1.1 to 1.1.2

Commits
  • 5628f47 chore: Release
  • 42d4175 chore: Release
  • 924fc50 chore: Release
  • 313e16a docs: Update changelog
  • 2bbc343 Merge pull request #225 from DaniPopes/as-locked-write-impls
  • 8639e08 feat: Implement AsLockedWrite generically too
  • f4a1f98 Merge pull request #224 from DaniPopes/raw-stream-autotraits
  • ed1dbd7 feat: Implement AutoStream for dyn Write + auto traits
  • 8a57dcc Merge pull request #223 from DaniPopes/raw-stream-refmut
  • a1cbc88 refactor: Implement RawStream for Box<T> generically
  • Additional commits viewable in compare view


Updates anstyle-wincon from 3.0.4 to 3.0.6

Commits
  • 5628f47 chore: Release
  • 42d4175 chore: Release
  • 924fc50 chore: Release
  • 313e16a docs: Update changelog
  • 2bbc343 Merge pull request #225 from DaniPopes/as-locked-write-impls
  • 8639e08 feat: Implement AsLockedWrite generically too
  • f4a1f98 Merge pull request #224 from DaniPopes/raw-stream-autotraits
  • ed1dbd7 feat: Implement AutoStream for dyn Write + auto traits
  • 8a57dcc Merge pull request #223 from DaniPopes/raw-stream-refmut
  • a1cbc88 refactor: Implement RawStream for Box<T> generically
  • Additional commits viewable in compare view


Updates autocfg from 1.3.0 to 1.4.0

Commits
  • d07df66 Merge pull request #73 from cuviper/release-1.4.0
  • f6066f0 Release 1.4.0
  • 8af60ec Merge pull request #70 from Techcable/feature/rustc-check-cfg
  • 52a995b Apply suggestions from code review
  • a8703c1 Attempt rust 1.0 compat for ci/verify-check-cfg
  • ac78be8 Add ci test crate for check-cfg
  • 0b4a761 Have emit_has methods delegate wherever possible
  • 546f7c6 Fix minor doc issues
  • e0e0f18 Automatically emit rustc-check-cfg directives for AutoCfg
  • 1953a17 Merge pull request #72 from cuviper/pretty-way
  • Additional commits viewable in compare view


Updates colorchoice from 1.0.2 to 1.0.3

Commits