Commit graph

2358 commits

Author SHA1 Message Date
David Hewitt 0c59b05e1f
Merge pull request #996 from davidhewitt/pyproto-simplifications
Refactor `#[pyproto]` Result types
2020-06-23 11:49:39 +01:00
David Hewitt c7a4b4770f Refactor #[pyproto] Result types 2020-06-23 11:08:36 +01:00
Yuji Kanagawa f757c99dac
Merge pull request #994 from scalexm/ptr
`LazyStaticType::get_or_init` returns an `*mut` instead of a `&` ref
2020-06-23 10:07:43 +09:00
Yuji Kanagawa 1012bd1269
Merge pull request #992 from kngwyu/expose-apis
Expose some APIs for rust-numpy
2020-06-23 09:43:51 +09:00
Yuji Kanagawa 071eaacdcf
Merge pull request #993 from davidhewitt/remove-into-py-result
Remove IntoPyResult
2020-06-23 09:43:36 +09:00
scalexm 863c0001e1 LazyStaticType::get_or_init returns an *mut instead of a & ref 2020-06-22 22:37:11 +02:00
David Hewitt cc190c9ccd Remove IntoPyResult 2020-06-22 17:19:00 +01:00
kngwyu 2caf5b1c10 Expose some APIs for rust-numpy 2020-06-23 01:11:43 +09:00
Yuji Kanagawa 4c04268bdb
Merge pull request #990 from kngwyu/tpnew-fix
Use subclass correctly in tp_new
2020-06-22 16:23:15 +09:00
kngwyu f053bc3881 Fix dealloc implementation to collectly use subtype's tp_free 2020-06-22 10:58:00 +09:00
kngwyu b70ee9a5ad Use subclass correctly in tp_new 2020-06-22 01:38:13 +09:00
Yuji Kanagawa 299fceca8e
Merge pull request #988 from davidhewitt/move-linking-to-faq
Move cargo test guidelines to faq
2020-06-21 17:58:16 +09:00
Yuji Kanagawa 5c3a0a1d1d
Merge pull request #986 from kngwyu/fix-cmp
Do not use PyObject_RichCompareBool to detect invalid comparison
2020-06-21 17:56:49 +09:00
David Hewitt 646dd19a49 Move cargo test guidelines to faq 2020-06-21 09:18:27 +01:00
kngwyu 767bf8901c Do not use PyObject_RichCompareBool to detect invalid comparison 2020-06-21 16:58:34 +09:00
Yuji Kanagawa 7075827a03
Merge pull request #969 from PyO3/poc-stable-rust
Stable Rust
2020-06-21 16:54:59 +09:00
kngwyu 404f3981e5 Improve docs and Remove all-stable feature 2020-06-21 16:10:19 +09:00
kngwyu a63e426f6f Some doc and test cleanups mainly around specialization 2020-06-20 12:59:56 +09:00
Yuji Kanagawa 3cd55ee50f
Merge pull request #984 from tamuhey/fix/comment
fix api comment
2020-06-20 12:36:30 +09:00
Yohei Tamura b84496a4d9 fix api comment 2020-06-20 12:07:29 +09:00
Yuji Kanagawa 44b22472e3
Merge pull request #975 from davidhewitt/once-cell
Add pyo3::once_cell::GILOnceCell
2020-06-19 15:07:40 +09:00
kngwyu e27c4d75c9 Add a document about nightly feature 2020-06-19 14:50:48 +09:00
David Hewitt a1dbfa8c8c Add pyo3::once_cell::GILOnceCell 2020-06-18 18:53:32 +01:00
kngwyu ac922e5756 Exclude benches from 'make lint' clippy run 2020-06-18 20:32:31 +09:00
kngwyu a840ebbb5a Support Rust 1.39.0 2020-06-18 19:59:40 +09:00
kngwyu 64408142f5 Use all-stable feature in CI instead of --all-features 2020-06-18 18:43:46 +09:00
kngwyu 654ab4c819 Enable tests for --features nighly on travis 2020-06-18 18:16:01 +09:00
kngwyu 0f709d6edc Use paste instead of nightly concat_idents in datetime tests 2020-06-18 18:15:36 +09:00
konstin 6798fe9da7 Fix tests on stable 2020-06-18 17:23:49 +09:00
konstin 3180e5cc06 POC stable rust (2 tests failing) 2020-06-18 17:21:09 +09:00
Yuji Kanagawa 390ff5f17f
Merge pull request #961 from kngwyu/slot-provider
Object protocols without specialization
2020-06-18 17:19:39 +09:00
kngwyu 8a0c9bfcf5 Add a CHANGELOG entry for 961 2020-06-18 16:39:22 +09:00
Yuji Kanagawa a044f3c322
Merge branch 'master' into slot-provider 2020-06-18 15:49:56 +09:00
Yuji Kanagawa 6ea834526b
Merge pull request #976 from davidhewitt/prefer-py
Add PyClass borrow methods to Py
2020-06-18 15:48:36 +09:00
kngwyu 1207c2d03a Make test_await more robust 2020-06-18 01:58:01 +09:00
David Hewitt 925986c706 Add PyCell::borrow shortcuts to Py 2020-06-17 08:58:32 +01:00
kngwyu fc3fa708b0 Add more comments for #[pyproto] related parts 2020-06-17 13:20:50 +09:00
Yuji Kanagawa 72a0dee03c
Merge pull request #980 from davidhewitt/changelog-deps
Add CHANGELOG entries for num crate version bumps
2020-06-17 11:22:31 +09:00
kngwyu 2a69367888 Mark protocols setters as doc(hidden) 2020-06-17 02:19:02 +09:00
kngwyu f7fa008159 Use Relaxed ordering since setters are called by a single thread 2020-06-17 02:17:59 +09:00
David Hewitt 93608bf031
Merge pull request #979 from kngwyu/aspyref-example
Fix AsPyRef example
2020-06-15 20:17:46 +01:00
David Hewitt e377afa5de Add CHANGELOG entries for num crate version bumps 2020-06-15 20:14:56 +01:00
Yuji Kanagawa a524699301
Merge pull request #978 from PyO3/dependabot/cargo/num-bigint-0.3
Update num-bigint requirement from 0.2 to 0.3
2020-06-15 23:40:14 +09:00
dependabot-preview[bot] f8fd478a00
Update num-bigint requirement from 0.2 to 0.3
Updates the requirements on [num-bigint](https://github.com/rust-num/num-bigint) to permit the latest version.
- [Release notes](https://github.com/rust-num/num-bigint/releases)
- [Changelog](https://github.com/rust-num/num-bigint/blob/master/RELEASES.md)
- [Commits](https://github.com/rust-num/num-bigint/compare/num-bigint-0.2.0...num-bigint-0.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-15 11:57:30 +00:00
Yuji Kanagawa 03e023959c
Merge pull request #977 from PyO3/dependabot/cargo/num-complex-0.3
Update num-complex requirement from 0.2 to 0.3
2020-06-15 20:56:03 +09:00
kngwyu 0440b8df81 Fix AsPyRef example 2020-06-15 18:07:21 +09:00
Nateckert 4f8c2e767b
Doc trait exposition (#964)
Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
2020-06-15 09:58:37 +01:00
dependabot-preview[bot] cc0f59077f
Update num-complex requirement from 0.2 to 0.3
Updates the requirements on [num-complex](https://github.com/rust-num/num-complex) to permit the latest version.
- [Release notes](https://github.com/rust-num/num-complex/releases)
- [Changelog](https://github.com/rust-num/num-complex/blob/master/RELEASES.md)
- [Commits](https://github.com/rust-num/num-complex/compare/num-complex-0.2.0...num-complex-0.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-15 08:48:53 +00:00
Yuji Kanagawa 3e905eb396
Merge pull request #970 from davidhewitt/py-gil-safe
Cleanups to ensure GIL-safety of Py<T> and PyObject methods
2020-06-15 13:46:32 +09:00
kngwyu 2e1ed2c3c8 Descr get/set now take receiver 2020-06-15 13:43:46 +09:00