Commit graph

5802 commits

Author SHA1 Message Date
Joseph Perez 2ca9f59d6f
refactor: drop futures_util dependency 2023-12-04 18:56:34 +01:00
Joseph Perez 8a674c2bd3
feat: add coroutine::CancelHandle 2023-12-04 07:46:51 +01:00
David Hewitt 81ad2e8bab
Merge pull request #3598 from davidhewitt/clippy-beta
ci: run beta clippy as an allowed-to-fail job
2023-11-29 06:47:21 +00:00
David Hewitt 016b11069e
Merge pull request #3604 from alex/monomorphize-create_type_object
Refactor create_type_object so that most of the code is monomorphic
2023-11-29 06:47:03 +00:00
Alex Gaynor dd6e0339d3 Refactor create_type_object so that most of the code is monomorphic
In pyca/cryptography this function is the #1 source of lines of generated LLVM IR, because it is duplicated 42x (and growing!). By rewriting it so most of the logic is monomorphic, we reduce the generated LLVM IR for this function by 4x.
2023-11-28 20:09:34 -05:00
David Hewitt cf67c2ce46 fix test-serde beta clippy warning 2023-11-28 07:29:45 +00:00
David Hewitt 41842f9e4b fix pyo3-ffi beta clippy warnings 2023-11-28 07:29:45 +00:00
David Hewitt 8e5ef9058b ci: run beta clippy as an allowed-to-fail job 2023-11-28 07:29:45 +00:00
David Hewitt e62e6cad5d
Merge pull request #3603 from davidhewitt/0.19-deprecations
remove all functionality deprecated in 0.19
2023-11-28 06:47:30 +00:00
David Hewitt 53311a90eb
Merge pull request #3602 from davidhewitt/dead-kws
remove some unused keyword declarations
2023-11-28 06:45:43 +00:00
Alex Gaynor 5080deedbf
Merge pull request #3564 from PyO3/alex-patch-1
fixes #3561 -- silence new clippy warning
2023-11-27 22:41:50 +00:00
Alex Gaynor fae209419c fixes #3561 -- silence new clippy warning 2023-11-27 17:06:59 -05:00
David Hewitt 5c6d49084f remove all functionality deprecated in 0.19 2023-11-27 22:02:19 +00:00
David Hewitt e76797a1d6 remove some unused keyword declarations 2023-11-27 21:32:01 +00:00
David Hewitt 0f34fcd4b7
Merge pull request #3508 from mejrs/sub2
Create subinterpreter example
2023-11-26 10:42:31 +00:00
mejrs 597a184b4f Create subinterpreter example 2023-11-26 09:49:56 +00:00
David Hewitt d8002c4b2b
Merge pull request #3588 from wyfo/coroutine_name
feat: add coroutine `__name__`/`__qualname__`
2023-11-26 09:23:29 +00:00
Joseph Perez 781b9e3983
feat: add coroutine __name__/__qualname__ and not-awaited warning 2023-11-25 21:51:20 +01:00
Adam Reichold 1203921d5c
Merge pull request #3456 from aldanor/feature/either
Add conversion support for `either::Either`
2023-11-25 09:37:49 +00:00
Adam Reichold 81bc838acd
Merge pull request #3577 from davidhewitt/none-typeinfo
Implement `PyTypeInfo` for `PyEllipsis`, `PyNone`, and `PyNotImplemented`
2023-11-25 09:36:43 +00:00
David Hewitt 9f66846238
Merge pull request #3595 from davidhewitt/ok-wrap
refactor `OkWrap` to not call `.into_py(py)`
2023-11-25 05:43:54 +00:00
messense cbd06309ff
Merge pull request #3596 from davidhewitt/smallvec-docs
docs: fixup docs for smallvec feature
2023-11-25 01:36:51 +00:00
David Hewitt cd8526ecc6 Implement PyTypeInfo for PyEllipsis, PyNone, and PyNotImplemented 2023-11-24 22:31:39 +00:00
David Hewitt bead83f4b0 docs: fixup docs for smallvec feature 2023-11-24 22:11:40 +00:00
Ivan Smirnov a75464ee26 add conversion support for either::Either 2023-11-24 22:09:34 +00:00
David Hewitt c814078866 refactor OkWrap to not call .into_py(py) 2023-11-24 10:41:08 +00:00
David Hewitt 31b871a9c0
Merge pull request #3594 from davidhewitt/remove_type_is_pymodule
remove `type_is_pymodule`
2023-11-24 10:09:50 +00:00
David Hewitt 5ac56b8eb0 improve error for invalid #[classmethod] receivers 2023-11-24 03:24:46 +00:00
David Hewitt aba3a3552d remove type_is_pymodule 2023-11-22 21:30:10 +00:00
David Hewitt 81df150823
Merge pull request #3593 from wyfo/fix_nox
fix: replace removed `fmt` session by `rustfmt` and `ruff`
2023-11-22 20:51:31 +00:00
Joseph Perez 226a2a3f7a
fix: replace removed fmt session by rustfmt and ruff 2023-11-22 21:00:51 +01:00
David Hewitt 69870d2298
Merge pull request #3540 from wyfo/coroutine
feat: support `async fn` in macros with coroutine implementation
2023-11-22 19:52:15 +00:00
David Hewitt 3f0dfa9698
Merge pull request #3587 from wyfo/classmethod_into
feat: allow classmethods to receive `Py<PyType>`
2023-11-22 19:34:19 +00:00
Joseph Perez 627841f1e2
feat: support async fn in macros with coroutine implementation 2023-11-22 20:25:36 +01:00
Joseph Perez 744de3a142
feat: allow classmethod/pass_module to receive owned types
This is necessary for async functions
2023-11-22 07:45:59 +01:00
David Hewitt abe518d164
Merge pull request #3586 from davidhewitt/semver-checks-v2
enable cargo-semver-checks, try 2
2023-11-20 07:07:44 +00:00
David Hewitt 7b07d6d21b
Merge pull request #3578 from davidhewitt/typed-helpers
Change return types of `py.None()`, `py.NotImplemented()` and `py.Ellipsis()` to typed singletons
2023-11-20 07:07:12 +00:00
David Hewitt 4a43b2f454 bump version to 0.21.0-dev 2023-11-19 06:41:10 +00:00
David Hewitt 24f3d0da62 enable cargo-semver-checks, try 2 2023-11-18 13:25:05 +00:00
Adam Reichold 99858236bd
Merge pull request #3583 from davidhewitt/1.74-lints
ci: move lints to new 1.74 cargo.toml tables
2023-11-18 09:56:11 +00:00
David Hewitt bd0174aa5d Change return types of py.None(), py.NotImplemented() and py.Ellipsis() to typed singletons 2023-11-17 16:16:19 +00:00
David Hewitt a9305ab389 ci: move lints to new 1.74 cargo.toml tables 2023-11-17 15:41:52 +00:00
David Hewitt d89c38822e
Merge pull request #3579 from davidhewitt/rust-1.74
ci: updates for rust 1.74
2023-11-16 17:02:59 +00:00
David Hewitt 29ad73b6d5 ci: updates for rust 1.74 2023-11-16 16:06:01 +00:00
David Hewitt 1e28ba7fd0
Merge pull request #3570 from suriya-ganesh/patch-1
docs: fix missing char conversion
2023-11-15 00:54:44 +00:00
David Hewitt 78ae491557
Merge pull request #3575 from davidhewitt/no-rust-toolchain
ci: try to run without rust-toolchain.toml
2023-11-15 00:41:28 +00:00
David Hewitt ef9741850f ci: try to run without rust-toolchain.toml 2023-11-14 19:54:39 +00:00
Surya 0ff84d250e
fix missing char conversion 2023-11-10 09:27:01 -05:00
Bruno Kolenbrander c8fdb80630
Merge pull request #3559 from davidhewitt/cross-compile-link
add link to user guide to cross compile error message
2023-10-30 23:19:08 +00:00
David Hewitt 852e4fea04 add link to user guide to cross compile error message 2023-10-30 22:21:56 +00:00