David Hewitt
5ad89de170
Fix date in changelog
2020-09-12 14:45:20 +01:00
David Hewitt
32be8d9a3c
Release 0.12
2020-09-12 14:13:45 +01:00
David Hewitt
e3408e802a
Merge pull request #1175 from thatcr/thatcr-fix-anaconda-python
...
Fix cargo test with Anaconda python, and divergent gcc versions.
2020-09-11 22:00:46 +01:00
Rob Thatcher
118646dd4a
update changelog
2020-09-11 17:31:41 +01:00
Rob Thatcher
b66a92579c
treat Anaconda python as shared
2020-09-11 16:58:33 +01: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
dependabot[bot]
6f80a8eaa3
Update hashbrown requirement from 0.8 to 0.9
...
Updates the requirements on [hashbrown](https://github.com/rust-lang/hashbrown ) to permit the latest version.
- [Release notes](https://github.com/rust-lang/hashbrown/releases )
- [Changelog](https://github.com/rust-lang/hashbrown/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/hashbrown/compare/v0.8.0...v0.9.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-09-06 04:50:18 +00:00
Matthew Treinish
c830a7cc57
Add dependabot config ( #1148 )
...
* Add dependabot config
This commit adds a dependabot config to automatically open pull requests
with version bumps for dependencies. This will configure dependabot to
check daily if any pyo3 dependency versions are out of date and if they
are it will open a PR for each dependency. You can find more details on
the dependabot configuration and usage in in the github
documentation. [1]
[1] https://docs.github.com/en/github/administering-a-repository/enabling-and-disabling-version-updates
* Switch to weekly update interval
2020-09-06 13:49:36 +09:00
kngwyu
c2f10e2185
Restructure protcol-table initialization
2020-09-06 01:50:39 +09:00
Sebastian Pütz
64b06ea9ec
Change `add_submodule()` to take `&PyModule`.
...
The C-exported wrapper generated through `#[pymodule]` is only
required for the top-level module.
2020-09-05 15:54:57 +02:00
David Hewitt
2b0b853912
Add CHANGELOG to the guide
2020-09-05 14:44:39 +01:00
Sebastian Pütz
06cd7c7d5a
Fix some more docs.
2020-09-05 11:24:12 +02:00
kngwyu
d2a10b688f
Introduce all-apis feature to support abi3
2020-09-05 17:52:41 +09:00