Commit graph

4572 commits

Author SHA1 Message Date
David Hewitt 2769963536
Merge pull request #2418 from davidhewitt/update-actions
ci: update action versions
2022-06-02 08:52:07 +01:00
David Hewitt 02e6d486ea ci: update action versions 2022-06-02 07:32:51 +01:00
David Hewitt 53fd6db4e4
Merge pull request #2415 from davidhewitt/pin-3.11
ci: pin to 3.11.0-beta.1
2022-06-01 20:36:06 +01:00
David Hewitt 1fbde0e4d0 ci: pin to 3.11.0-beta.1 2022-06-01 16:03:48 +01:00
messense 8191153eba
Merge pull request #2408 from alex/frame-code-objects
Added new PyCode and PyFrame objects.
2022-06-01 10:11:59 +08:00
Alex Gaynor f6a24972e9 Added new PyCode and PyFrame objects.
They currently do not expose any APIs, but are significantly easier to work with than raw pointers :-)
2022-05-31 16:57:10 -04:00
Bruno Kolenbrander 4f9d3d7306
Protect iterators against concurrent modification (#2380) 2022-05-31 20:13:04 +01:00
messense f84c740e41
Merge pull request #2406 from alex/patch-1
Expose PyFrame_GetCode
2022-05-29 11:30:13 +08:00
Alex Gaynor 7a7926c0ff
Update pyframe.rs 2022-05-28 22:45:50 -04:00
messense 25d2db9058
Merge pull request #2404 from messense/fixup-lib_name
Fixup `lib_name` when using `PYO3_CONFIG_FILE`
2022-05-29 10:36:04 +08:00
Alex Gaynor c2faef4b64
Make Py_tracefunc an unsafe func
There's basically no way to safely write a function with raw pointers for parameters.
2022-05-28 22:28:19 -04:00
Alex Gaynor b651502c11
Expose PyFrame_GetCode 2022-05-28 15:47:47 -04:00
messense 284c03af62
Add a changelog entry 2022-05-28 16:18:56 +08:00
messense 2bd24565c4
Rename fixup_import_libs to generate_import_libs 2022-05-28 15:07:10 +08:00
messense 4787ad75c9
Add a default_lib_name_for_target function 2022-05-28 14:59:10 +08:00
messense 4986d8ee7f
Fixup lib_name when using PYO3_CONFIG_FILE 2022-05-28 13:58:54 +08:00
David Hewitt eafbbc5417
Merge pull request #2399 from davidhewitt/avoid-duplicate-pymethods
pymethods: prevent methods sharing the same name
2022-05-24 22:22:31 +01:00
David Hewitt 879eb14e27
Merge pull request #2395 from davidhewitt/fix-class-raw-ident
macros: fix raw-ident pyclasses having r# at the start of the Python name
2022-05-24 22:08:56 +01:00
David Hewitt 71abeeff8b macros: fix raw-ident pyclasses having r# at the start of the Python name 2022-05-24 21:34:23 +01:00
David Hewitt a306365db8 pymethods: prevent methods sharing the same name 2022-05-24 21:15:30 +01:00
David Hewitt 126bf49b8b
Merge pull request #2377 from herquan/herquan_cr1
Add macro append_to_inittab (issue #2359)
2022-05-24 08:02:47 +01:00
herquan 2ec477344d Add macro append_to_inittab
Sometimes we need to debug in a real environment with our module installed. `append_to_inittab` will be a wrapper for PyImport_AppendInittab (https://docs.python.org/3/c-api/import.html#c.PyImport_AppendInittab) and help us to do this
2022-05-24 07:42:15 +01:00
David Hewitt a21bd6f967
Merge pull request #2385 from davidhewitt/classattr-results
Allow `#[classattr]` methods to be fallible
2022-05-21 19:09:07 +01:00
David Hewitt 48690525e1
Merge pull request #2386 from davidhewitt/datetime-docs
datetime: remove reference to leap seconds
2022-05-19 06:29:52 +01:00
David Hewitt 82b26b7cfa datetime: remove reference to leap seconds 2022-05-17 21:21:15 +01:00
David Hewitt 0de0e3f8d6 Allow #[classattr] methods to be fallible 2022-05-17 21:19:41 +01:00
David Hewitt e16dad3dd6
Merge pull request #2387 from davidhewitt/fix-internal-docs
docs: fix nightly build
2022-05-17 20:11:36 +01:00
David Hewitt 570107d103 docs: fix nightly build 2022-05-17 19:48:40 +01:00
David Hewitt 23a3069d53
Merge pull request #2376 from davidhewitt/changelog-0.16.5
update main to reflect 0.16.5 release
2022-05-16 06:00:40 +01:00
David Hewitt 3dcbcb7a95 update main to reflect 0.16.5 release 2022-05-15 20:31:00 +01:00
David Hewitt 3544b61390
Merge pull request #2374 from davidhewitt/test-initconfig
add regression test for PEP 587
2022-05-15 17:16:00 +01:00
David Hewitt a85c622a3d ci: unpin 3.11-dev 2022-05-15 16:08:21 +01:00
David Hewitt 8636db67f5 add regression test for PEP 587 2022-05-15 16:08:21 +01:00
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