Commit graph

4439 commits

Author SHA1 Message Date
David Hewitt 7e638e233f
Merge pull request #2371 from indygreg/initconfig-311
ffi: add new 3.11 fields to PyConfig
2022-05-15 06:20:16 +01:00
David Hewitt 1215951afd
Merge pull request #2363 from davidhewitt/macro_rules_wrap
wrap_x: change macros back to `macro_rules!`
2022-05-14 22:14:51 +01:00
David Hewitt 7a9e70e2c7 wrap_x: change macros back to macro_rules! 2022-05-14 20:42:07 +01:00
David Hewitt a8b74a7f33
Merge pull request #2372 from messense/interpreter-config-import-lib
Auto generate Windows import libraries when using a pyo3 config file
2022-05-14 20:40:35 +01:00
messense ded0d9fc93
Allow false positive clippy::unnecessary-wraps lint 2022-05-14 20:45:03 +08:00
messense 742774cdb5
Auto generate Windows import libraries when using a pyo3 config file 2022-05-14 20:45:02 +08:00
Gregory Szorc f1c477b536 ffi: add new 3.11 fields to PyConfig
These are the new fields in 3.11 so far. 3.11 is supposedly feature
frozen, so hopefully we don't need to revisit this struct before 3.11
final.
2022-05-13 17:52:31 -07:00
Gregory Szorc 03cb561d41 ffi: add PyConfig::warn_default_encoding to 3.10+
This field was added in 3.10 but we missed it. This was causing
offsets of subsequent fields to be wrong. This could lead to
unexpected behavior or even crashes.
2022-05-13 17:49:58 -07:00
messense 87bd10c9a3
Merge pull request #2364 from messense/import-lib
Add support for generating non-abi3 python import libraries for Windows targets
2022-05-12 15:30:16 +08:00
messense 5508de8925
Update changelog for #2364 2022-05-12 14:32:55 +08:00
messense df6e9bcdb2
Change default python lib name for Windows when cross compiling
Stop treating `gnu` abi as mingw by default.
2022-05-12 14:32:21 +08:00
messense 5472fa6917
Add Windows non-abi3 cross compile test 2022-05-12 14:32:20 +08:00
messense c477718fe7
Add support for generating non-abi3 python import libraries for Windows
targets
2022-05-12 14:32:20 +08:00
messense 10cb5a1f95
pyo3-build-config: switch to python3_dll_a::ImportLibraryGenerator 2022-05-12 14:32:17 +08:00
David Hewitt 1482b526de
types: add dict views (#2358) 2022-05-11 20:34:22 +01:00
David Hewitt 1ae6b80b78
Merge pull request #2368 from davidhewitt/update-ffi-eval
ffi: remove eval.rs
2022-05-11 04:24:05 +01:00
David Hewitt 10b09297b1 ffi: remove eval.rs 2022-05-11 03:44:27 +01:00
messense 76c09ac3ed
Remove #[doc(hidden)] from trait impl items (#2365)
See https://github.com/rust-lang/rust/pull/96008
2022-05-10 19:26:53 +01:00
Colin Jermain f5357f9395
Updating debugging docs with more info on rust-gdb (#2361) 2022-05-10 07:00:56 +01:00
Bruno Kolenbrander c57e5098b8
Fix IntoPyCallbackOutput paper cuts (#2326)
* Implement IntoPy for arrays of IntoPy

* Improve `IntoPyCallbackOutput` compile error
2022-05-09 18:15:43 +01:00
David Hewitt bc8641c790
Merge pull request #2350 from mejrs/ignore-less
Expand on AsPyPointer docs and un-ignore doc examples
2022-05-06 06:51:54 +01:00
mejrs 5bdf6987c3 Delete section about immutability of pyclasses 2022-05-05 22:24:49 +02:00
David Hewitt 21bbe3f870
Merge pull request #2357 from PyO3/davidhewitt-patch-1
ffi: remove with_thread cfg
2022-05-05 08:28:24 +01:00
David Hewitt 5d8fd4d30e ffi: remove with_thread cfg 2022-05-05 07:26:05 +01:00
David Hewitt f6daa8d290
Merge pull request #2351 from cjermain/add_examples
Adding polars and rust-python-coverage PyO3 examples
2022-05-03 19:31:16 +01:00
Colin Jermain baa026958b Adding polars and rust-python-coverage PyO3 examples 2022-05-03 19:08:13 +01:00
mejrs 8921d5d1c0 Fix CI 2022-05-03 11:36:24 +02:00
David Hewitt 0d807fcb10
Merge pull request #2352 from PyO3/davidhewitt-patch-1
Fix CI for hashbrown 0.12.1
2022-05-03 07:00:42 +01:00
David Hewitt 0162df616e
Fix CI for hashbrown 0.12.1 2022-05-03 06:18:45 +01:00
mejrs f1e5d4c9a1 Un-ignore and expand on doc examples 2022-05-03 00:47:09 +02:00
mejrs f34b92a368 Expand conversions documentation 2022-05-03 00:46:53 +02:00
David Hewitt 37903c33f4
Merge pull request #2348 from alex/patch-1
fixed comment in string.rs
2022-05-02 18:36:56 +01:00
Alex Gaynor c6055c03f1
fixed comment in string.rs 2022-05-02 11:12:19 -06:00
Bruno Kolenbrander dce4377eb4
Allow more methods to take interned arguments (#2312)
* Allow more methods to take interned arguments

* Changelog

* Unify name bounds

* Resolve merge conflict

* reduce use of py_decref

* Add some attr tests

* Update migration
2022-05-02 11:13:15 +02:00
David Hewitt 97db563253
Merge pull request #2336 from PyO3/davidhewitt-patch-1
Update CHANGELOG.md
2022-04-26 08:52:46 +01:00
David Hewitt 8692b9b54b
Update CHANGELOG.md 2022-04-26 08:09:34 +01:00
David Hewitt 1596ab8a4b
Merge pull request #2333 from davidhewitt/remove-toborrowedobject
remove `ToBorrowedObject` trait
2022-04-26 06:23:35 +01:00
David Hewitt d8f4fc2426
Merge pull request #2334 from davidhewitt/debloat
opt: tidy some generic code bloat
2022-04-26 06:00:26 +01:00
David Hewitt 71f9f18d54 remove toborrowedobject trait 2022-04-26 05:48:34 +01:00
David Hewitt 4168feed1b opt: tidy some generic code bloat 2022-04-26 05:36:57 +01:00
Yuji Kanagawa 41d3b3562c
Merge pull request #2329 from cuishuang/main
fix some typos
2022-04-25 00:28:11 +09:00
cuishuang 19e32a0621 fix some typos
Signed-off-by: cuishuang <imcusg@gmail.com>
2022-04-24 22:06:32 +08:00
David Hewitt c6249f0214
Merge pull request #2327 from davidhewitt/remove-cls
cleanup: unused cls.rs
2022-04-24 11:47:39 +01:00
David Hewitt e05cec01e4 cleanup: unused cls.rs 2022-04-24 09:20:20 +01:00
David Hewitt 8ef9e54e13
Merge pull request #2287 from davidhewitt/kill-type-object
cleanup: deprecate PyTypeObject trait
2022-04-23 15:41:51 +01:00
David Hewitt 7e2d3117ce cleanup: deprecate PyTypeObject trait 2022-04-23 13:36:32 +01:00
David Hewitt 76bc2a6a4a
Merge pull request #2322 from davidhewitt/opt-in-pyproto
pyproto: make deprecated feature opt-in
2022-04-23 13:34:21 +01:00
David Hewitt ca8958c347
Merge pull request #1979 from mejrs/immutable
Opt out of PyCell borrow tracking
2022-04-23 13:34:02 +01:00
David Hewitt b196aa1d5a remove some redundant traits 2022-04-23 06:27:55 +01:00
David Hewitt e9bd41efb2 better mutability inheritance rules 2022-04-21 20:51:28 +01:00