Commit Graph

2540 Commits

Author SHA1 Message Date
Alex Gaynor 9d8559158b Hack __text_signature__ back to working with abi3 2020-09-19 11:43:57 -04:00
kngwyu c07e1aa40a Use abi3 feature, instead of unstable-api 2020-09-20 00:06:14 +09:00
Yuji Kanagawa c87a59c19d
Merge pull request #1189 from alex/abi3-tests-compile
Get all the tests building and passing!
2020-09-18 13:34:47 +09:00
Alex Gaynor ba1056006a Get all the tests building, everythign except doctests passes! 2020-09-16 08:42:22 -04:00
Yuji Kanagawa a2dc4c17ac
Merge pull request #1188 from alex/abi3-warnings
Make check warning clean in limited API mode
2020-09-16 21:41:46 +09:00
Alex Gaynor 870914da90 Make check warning clean in limited API mode 2020-09-15 07:50:24 -04:00
Yuji Kanagawa 2ec1c3b0b9
Merge pull request #1187 from alex/abi3-to-str
Make unicode handling abi3 friendly
2020-09-15 20:02:17 +09:00
Yuji Kanagawa 517af8c330
Merge pull request #1183 from alex/abi3-tp-finalizer
Remove finalizer code that was never reachable
2020-09-15 19:50:57 +09:00
Alex Gaynor 1b2d26794a Make unicode handling abi3 friendly 2020-09-14 22:11:00 -04:00
Alex Gaynor d0c2ebf0e1 Remove finalizer code that was never reachable and switch field access
to PyType_GetSlot
2020-09-14 12:21:28 -04:00
Yuji Kanagawa afc2d10f2c
Merge pull request #1172 from alex/abi3-merge-master
merge master into abi3, resolving conflicts
2020-09-13 15:09:13 +09:00
Alex Gaynor 3cb0b112d2
Update src/err/mod.rs
Co-authored-by: Yuji Kanagawa <yuji.kngw.80s.revive@gmail.com>
2020-09-12 09:47:42 -04:00
Alex Gaynor 4d5c208c9e fixes 2020-09-10 17:05:24 -04:00
Alex Gaynor 5bfb4674b1 Merge branch 'master' into abi3-merge-master 2020-09-10 17:01:13 -04:00
David Hewitt 1489ca2e8d
Merge pull request #1171 from davidhewitt/fix-new-err
Fix build for new apis
2020-09-10 21:59:25 +01:00
David Hewitt c519b4de76 Fix build for new apis 2020-09-10 21:34:00 +01:00
David Hewitt 151af7a0b7
Merge pull request #1115 from davidhewitt/std-py-err
Implement std::error::Error for PyErr
2020-09-10 21:17:11 +01:00
David Hewitt 73507dbf5e
Merge pull request #1163 from sebpuetz/pyfunction
Add native Function types.
2020-09-10 19:05:57 +01:00
David Hewitt b9e95dc7c9 Implement std::error::Error for PyErr 2020-09-10 19:04:24 +01:00
kngwyu 7a4c5e2960 Merge branch 'master' into abi3 2020-09-10 00:48:20 +09:00
Yuji Kanagawa 53e33aab3c
Merge pull request #1170 from alex/run-code-abi3
Use limited APIs for Py::run_code
2020-09-10 00:01:55 +09:00
Alex Gaynor 97dde18d45 Use limited APIs for Py::run_code 2020-09-09 08:25:40 -04:00
David Hewitt 0bc2393086
Merge pull request #1167 from alex/abi3-sets
Implement set iterators in terms of limited API
2020-09-09 13:06:03 +01:00
Alex Gaynor d6c9435aef Implement set iterators in terms of limited API 2020-09-09 07:49:39 -04:00
Sebastian Pütz 22881a3c2f Change add_function, ensure static docstrings.
Change add_function to take `&PyCFunction` instead of a wrapper
fn and ensure that dostrings of functions are `&'static str`.
2020-09-09 12:37:37 +02:00
Yuji Kanagawa cc6d266c47
Merge pull request #1168 from alex/set-iter-bench
Added a benchmark for set iter
2020-09-09 16:48:47 +09:00
Yuji Kanagawa a009c23bb1
Merge pull request #1166 from alex/abi3-name
Make PyType::name abi3 compatible
2020-09-09 14:16:07 +09:00
Alex Gaynor c54b35f297 Added a benchmark for set iter 2020-09-08 17:47:49 -04:00
Alex Gaynor 117f60bed0 Make PyType::name abi3 compatible
The implementation is more complex, because there's no equivalent to tp_name in the limited API
2020-09-08 12:22:59 -04:00
Yuji Kanagawa 679326edbc
Merge pull request #1165 from alex/abi3-fill-dict
Fill tp_dict on types in an abi3-friendly way
2020-09-08 22:44:35 +09:00
Sebastian Pütz be877d133f Add constructor for PyCFunction. 2020-09-08 14:26:08 +02:00
Alex Gaynor 0709a02310 Fill tp_dict on types in an abi3-friendly way
I think this might technically be backwards incompatible if you had a custom metaclass with fancy behavior, but pyo3 doesn't seem to have any native support for those.
2020-09-08 08:18:52 -04:00
Yuji Kanagawa b2ba83a62f
Merge pull request #1133 from birkenfeld/string-apis
Avoid using CString where unnecessary
2020-09-08 17:57:26 +09:00
Georg Brandl 466ffeaf9f Avoid using CString where unnecessary
Use APIs that take a Python string instead of those taking a C string,
which are a convenience in C but require an unncessary allocation
for us.
2020-09-08 10:34:33 +02:00
Sebastian Pütz 2e8010b5df Add native Function native types.
Add bindings for PyCFunction, PyFunction, PyClassMethod and
PyStaticMethod.
2020-09-08 09:51:31 +02:00
Yuji Kanagawa e8936be3ce
Merge pull request #1162 from alex/disable-buffer-more
Complete the process of disabling buffers with Py_LIMITED_API
2020-09-08 15:04:54 +09:00
Yuji Kanagawa 4325a59ede
Merge pull request #1164 from alex/abi3-no-free-func
Properly mark a function as limited API only
2020-09-08 15:04:09 +09:00
Alex Gaynor 71a7b1a6b6 Properly mark a funtion as limited API only 2020-09-07 12:25:08 -04:00
Alex Gaynor 80e2497c4c Complete the process of disabling buffers with Py_LIMITED_API 2020-09-07 07:49:24 -04:00
Yuji Kanagawa 3b61df25c9
Merge pull request #1161 from alex/abi3-fix-errors
Fixed a few compilation errors on the abi3 branch
2020-09-07 17:32:46 +09:00
Alex Gaynor 4cd6d4c772 Fixed a few compilation errors on the abi3 branch 2020-09-06 17:35:05 -04:00
David Hewitt 16fe583b82
Merge pull request #1143 from sebpuetz/pyfunction-modules
PyModule in #[pyfunction]
2020-09-06 20:55:29 +01:00
David Hewitt 05d86b76f8
Merge pull request #1159 from alex/patch-1
Don't run a test of PyFloat_AS_DOUBLE when using the limited API
2020-09-06 20:52:56 +01:00
David Hewitt a1d6c7a838
Merge pull request #1157 from davidhewitt/conversion-detail
docs: add detail to wrapper type conversions
2020-09-06 20:52:34 +01:00
Alex Gaynor 049a8c297b
Don't run a test of PyFloat_AS_DOUBLE when using the limited API 2020-09-06 10:32:19 -04:00
Yuji Kanagawa 6a2d4f2ac0
Merge pull request #1150 from davidhewitt/changelog-in-guide
Add CHANGELOG to the guide
2020-09-06 22:55:10 +09:00
David Hewitt 4ba30cf174
Merge pull request #1155 from PyO3/dependabot/cargo/hashbrown-0.9
Update hashbrown requirement from 0.8 to 0.9
2020-09-06 10:26:26 +01:00
David Hewitt 192c2c2b2c docs: add detail to wrapper type conversions 2020-09-06 10:21:08 +01:00
kngwyu e0f75f80b1 Fix missing PyGetSetDef_INIT and Adress clippy warnings 2020-09-06 17:37:59 +09:00
kngwyu 1941f4daef Rename all-apis with unstable-api 2020-09-06 17:37:55 +09:00