David Hewitt
11b5ae7f5f
update ffi structures for PyPy 7.3.15
2024-01-23 20:34:19 +00:00
jadedpasta
83f0f22efe
ffi: Add definition for PyType_GetModuleByDef
...
This API is available starting in 3.11. It is not part of the Stable ABI.
PyType_GetModuleByDef searches the MRO of the given type for a module
matching the given module spec. It can be useful for users use that
`pyo3_ffi` directly and want to support multiple interpreters/per
interpreter GIL. It is useful to obtain access to the module state from
special methods like `tp_new` that can't use the METH_METHOD calling
convention.
This API is not supported on PyPy yet, but guess the symbol name for the future.
2024-01-12 22:13:33 -06:00
David Hewitt
8fef7a5848
fix size of pypy private fields in Py_buffer definition
2024-01-12 15:59:14 +00:00
Adam Reichold
03285835bb
Use a definite version specification when depending on pyo3-build-config.
...
We already do this for other internal pyo3-* dependencies and it seems prudent
to apply this to pyo3-build-config as well.
2024-01-02 09:32:38 +01:00
Alex Gaynor
d92792f8ad
Fixes #3645 -- added `abi3-py312` feature
2023-12-21 10:40:14 -05:00
messense
28dda997f9
Add additional definitions for `_PyImport_Frozen*`
2023-12-03 21:47:00 +08:00
David Hewitt
41842f9e4b
fix pyo3-ffi beta clippy warnings
2023-11-28 07:29:45 +00:00
David Hewitt
4a43b2f454
bump version to 0.21.0-dev
2023-11-19 06:41:10 +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
29ad73b6d5
ci: updates for rust 1.74
2023-11-16 16:06:01 +00:00
Adam Reichold
2b91fea94f
Merge pull request #3548 from davidhewitt/nightly-code
...
ci: fix nightly unused import warning
2023-10-26 06:01:18 +00:00
David Hewitt
572a27d2d3
ci: fix nightly unused import warnings
2023-10-25 23:30:14 +01:00
David Hewitt
e284f3669f
add coverage for `emit_pyo3_cfgs`
2023-10-25 22:59:43 +01:00
messense
dca18b3e41
Fix `PyMemoryView_FromBuffer` cfg
2023-10-15 22:24:58 +08:00
messense
5b94241bd7
Add `PyMemoryView` type
2023-10-15 17:32:09 +08:00
David Hewitt
c77deee18e
release: 0.20.0
2023-10-11 14:39:19 +02:00
Erle Carrara
0e0e6623f3
fix _PyFrameEvalFunction. Since python 3.11 it receives a `_PyInterpreterFrame`
2023-10-09 23:36:01 -03:00
mejrs
0cccb9f64b
add PyInterpreterConfig api
2023-10-08 22:38:11 +02:00
messense
2d3dc65428
Merge pull request #3497 from davidhewitt/ci-3.12-debug
...
bump test-debug to 3.12
2023-10-05 03:14:05 +00:00
David Hewitt
cbd7370b20
Merge pull request #3490 from davidhewitt/ffi-marshal-limited
...
disable `marshal.rs` on `Py_LIMITED_API`
2023-10-04 19:05:01 +00:00
David Hewitt
6c6c607ad3
bump test-debug to 3.12
2023-10-04 19:58:27 +01:00
mejrs
aa011f4a9d
Update PyModuleDef_Slot types
2023-10-03 23:25:45 +02:00
David Hewitt
c80a61ee30
disable `marshal.rs` on `Py_LIMITED_API`
2023-10-02 21:36:17 +01:00
David Hewitt
bcb01049cc
Merge pull request #3404 from davidhewitt/fix-dealloc
...
call PyObject_GC_Untrack before deallocating
2023-09-11 05:18:34 +00:00
David Hewitt
fc6e22a554
Fix name of `_Py_LocalMonitors` in latest 3.12 RCs
2023-09-10 22:14:29 +02:00
David Hewitt
e28403e772
call PyObject_GC_Untrack before deallocating
2023-09-09 22:29:58 +01:00
David Hewitt
ad042f3bae
add comments to ffi def structures
...
Co-authored-by: Bruno Kolenbrander <59372212+mejrs@users.noreply.github.com>
2023-09-06 08:56:51 +01:00
David Hewitt
9336e5b605
Merge pull request #3403 from davidhewitt/ffi-objimpl
...
update definitions for objimpl.h
2023-08-19 12:02:32 +00:00
Adam Reichold
e6293a9608
Merge pull request #3405 from davidhewitt/debug-3.11
...
fix compile warning on pre-3.12 debug builds
2023-08-19 05:25:57 +00:00
David Hewitt
69475b0a83
update definitions for objimpl.h
2023-08-18 22:17:53 +01:00
David Hewitt
7fce07935c
fix compile warning on pre-3.12 debug builds
2023-08-18 22:15:29 +01:00
David Hewitt
eba2c59778
tidy up some file locations after dual licensing
2023-08-16 08:22:51 +01:00
David Hewitt
ff823ac3df
Merge pull request #3390 from puradox/fix/ffi-license
...
Replace pyo3-ffi LICENSE with ACKNOWLEDGEMENTS
2023-08-15 23:07:55 +00:00
Sam Balana
0607905771
Replace pyo3-ffi LICENSE with ACKNOWLEDGEMENTS
...
Replace the Python license from pyo3-ffi/LICENSE with an
ACKNOWLEDGEMENTS file. Relicense under the parent Apache 2.0 license.
pyo3-ffi contains a Rust reproduction of the CPython header files, only
copying what is absolutely necessary for binary compatibility. As such,
it is unnecessary to include the Python license.
Fixes #3124
2023-08-15 15:29:53 -07:00
DataTriny
3c3e9401a3
Dual-license
2023-08-15 23:39:45 +02:00
David Hewitt
b0f5901ce3
update structmember.rs for Python 3.12
2023-08-11 11:54:16 +01:00
David Hewitt
acb1bf7c0a
update fileobject.rs for Python 3.12
2023-08-11 11:54:16 +01:00
David Hewitt
5d7dfe2e95
update pydebug.rs for Python 3.12
2023-08-11 11:54:16 +01:00
Adam Reichold
1df7270e15
Merge pull request #3374 from Tpt/pathlike
...
Makes PathBuf FromPyObject implementation work on all os.PathLike
2023-08-09 14:50:28 +00:00
Tpt
dd04d2c4cc
Fixes linking of `PyOS_FSPath` on PyPy.
2023-08-09 16:19:17 +02:00
Alex Gaynor
51fdf3afef
Update constants for py3.12, which fixes struct sizes
...
See 766d2518ae8384c6bd7f82727defeb86847ccf64
2023-08-08 15:07:59 -04:00
David Hewitt
284c42d840
release: 0.19.2
2023-08-01 07:29:04 +01:00
David Hewitt
4e957e8bd4
update object.h definitions for Python 3.12
2023-07-30 15:37:06 +01:00
David Hewitt
e2c88d5a4e
optimize `float` -> `f64` conversions on non-abi3
2023-07-28 20:45:37 +01:00
David Hewitt
7a2fc86186
Merge pull request #3342 from davidhewitt/3.12-ffi-check-fixes
...
fix ffi check failures for 3.12.0b4
2023-07-25 11:59:55 +00:00
David Hewitt
655de94749
fix ffi check failures for 3.12.0b4
2023-07-25 08:25:34 +01:00
David Hewitt
3fa705a3c6
remove PyUnicode_WCHAR_KIND from docs on Py_3_12
2023-07-25 07:35:57 +01:00
Adam Reichold
8ce6c26c81
Merge pull request #3334 from davidhewitt/pyerr-display
...
add PyErr::display
2023-07-25 05:56:21 +00:00
David Hewitt
a15614844d
add PyErr::display
2023-07-24 22:14:55 +01:00
Marc Mueller
f8ca456f5f
Add PyType_GetDict for Python 3.12
2023-07-23 17:00:50 +02:00