Commit Graph

4167 Commits

Author SHA1 Message Date
David Hewitt 15046a2812
Merge pull request #2181 from RicoHageman/from_py_with_tuple_struct
Add support for `from_py_with` on struct tuples and enums
2022-02-24 23:29:18 +00:00
Rico Hageman ed698c4b43 Add documentation related to from_py_with for the FromPyObject trait 2022-02-24 22:54:30 +01:00
David Hewitt 3d7080b0b5
Merge pull request #2184 from davidhewitt/rust-1.59
rust: clippy fixes 1.59
2022-02-24 21:21:04 +00:00
Rico Hageman fc186cdb3b Remove item annotation in tuple struct 2022-02-24 22:20:54 +01:00
David Hewitt 642fe5bb56 rust: clippy fixes 1.59 2022-02-24 20:17:05 +00:00
Rico Hageman 76233e1924 Address pull request comments 2022-02-24 11:27:53 +01:00
Rico Hageman 1839fc208b Add CHANGELOG.md entry 2022-02-24 00:23:07 +01:00
Rico Hageman 84a763da14 Add test to ensure support for from_py_with for enums 2022-02-24 00:22:33 +01:00
Rico Hageman 10804b0d65 Support from_py_with on struct tuples 2022-02-24 00:06:33 +01:00
Bruno Kolenbrander f379854c50
Merge pull request #2156 from mejrs/object
Add examples for object and numeric protocols
2022-02-23 11:32:24 +01:00
Bruno Kolenbrander af0cef0e59
Merge branch 'main' into object 2022-02-23 10:13:29 +01:00
mejrs be84e0fbb9 Add numeric and object protocol examples 2022-02-23 10:09:45 +01:00
David Hewitt 2dafe7a2ae
Merge pull request #2180 from davidhewitt/pin-pypy
ci: pin to pypy 7.3.7 for Python 3.7
2022-02-23 08:37:20 +00:00
David Hewitt ce7fa7a669 ci: pin to pypy 7.3.7 for Python 3.7 2022-02-23 07:49:08 +00:00
David Hewitt d8ee35e19c
Merge pull request #2165 from mejrs/auto_trait
Implement Auto trait
2022-02-23 07:16:17 +00:00
mejrs ec275d49cb Explicitly (un)implement Ungil 2022-02-22 22:43:40 +01:00
mejrs 90281f88d3 Make conversion from String private 2022-02-22 22:43:40 +01:00
mejrs 0ca19350f9 Add rust version name to CI job 2022-02-22 22:43:40 +01:00
mejrs 10c3e5b094 Try to add nightly feature to CI
Fix stray "
2022-02-22 22:43:40 +01:00
mejrs 97205bd11a Update docs 2022-02-22 22:43:40 +01:00
mejrs 9e29c1058c Gut specialization and implement auto trait
Implement auto trait

Implement auto trait

Undo oopsie

Fix versions

Fix CI errors

Fix CI

Remove more specialization remnants
2022-02-22 22:43:23 +01:00
David Hewitt e354dbe480
Merge pull request #2178 from RicoHageman/improved_error_message
Pass detailed error message to python when parsing an argument fails
2022-02-22 19:52:42 +00:00
Rico Hageman 3fbdc863cb Include the causes when throwing a PyTypeError when argument parsing failed 2022-02-22 09:48:41 +01:00
Rico Hageman 333ebb9872 Add changelog entry 2022-02-21 23:22:56 +01:00
Rico Hageman 597e3e17a9 Pass detailed error message to python when parsing an argument fails 2022-02-21 23:22:40 +01:00
Bruno Kolenbrander 01788b7220
Merge pull request #2172 from mejrs/addr
Use addr_of_mut in pyo3-ffi
2022-02-19 17:56:09 +01:00
mejrs f346d1c86f Move emitting cfgs to pyo3-build-config 2022-02-18 19:20:32 +01:00
mejrs c40bd98825 Use addr_of_mut where possible 2022-02-16 15:14:10 +01:00
David Hewitt adc6400b83
Merge pull request #2171 from davidhewitt/magic-method-tests
pymethods: more tests for magic methods
2022-02-16 08:42:27 +00:00
David Hewitt 6af47c78f1 pymethods: more tests for magic methods 2022-02-16 07:42:25 +00:00
David Hewitt 9704c862fa
Merge pull request #2159 from davidhewitt/gc-protocol
pymethods: support gc protocol
2022-02-15 22:52:42 +00:00
David Hewitt 8218b5a3e7
Merge pull request #2170 from davidhewitt/readme-comment-lib-name
readme: comment about lib.name field
2022-02-15 08:44:07 +00:00
David Hewitt 79123b396c pyclass: deprecate gc option 2022-02-15 08:01:46 +00:00
David Hewitt 676295b8de pymethods: support gc protocol 2022-02-15 08:01:23 +00:00
David Hewitt 7851e865ae
Merge pull request #2166 from mejrs/union
Implement ml_meth as an union.
2022-02-15 07:55:24 +00:00
David Hewitt f0ecfc241f readme: comment about lib.name field 2022-02-15 07:30:01 +00:00
David Hewitt 037a189564
Merge pull request #2169 from mejrs/multiplepymethods
Make Pyo3MethodsInventoryFor<class>::new public
2022-02-15 07:05:51 +00:00
mejrs a8ec8b4176 Make Pyo3MethodsInventoryFor<class>::new public 2022-02-14 23:27:54 +01:00
mejrs e5000e470a Use addr_of_mut instead 2022-02-14 23:18:22 +01:00
mejrs 59412b06e5 Add to changelog 2022-02-14 15:15:05 +01:00
mejrs 718b0fd02f Remove options and rename struct 2022-02-14 15:14:49 +01:00
David Hewitt 47984573b2
Merge pull request #2163 from davidhewitt/nox-automations
ci: replace makefile with nox
2022-02-14 08:44:07 +00:00
David Hewitt 3ed0df1169 update black to 22.1.0 2022-02-14 07:42:06 +00:00
David Hewitt c2e49a2b4c ci: replace makefile with nox 2022-02-14 07:40:43 +00:00
mejrs dadbc22b2e Implement nl_meth as an union. 2022-02-14 00:03:33 +01:00
David Hewitt fd57a5e3d0
Merge pull request #2161 from cmpute/main
Fix the signature of _PyLong_NumBits
2022-02-13 22:06:53 +00:00
Jacob Zhong de502f0b08 Update CHANGELOG.md 2022-02-12 13:28:05 -05:00
Jacob Zhong 9a775c4380 Update src/conversions/num_bigint.rs
Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
2022-02-12 13:27:40 -05:00
Jacob Zhong d99a001b7d Fix the signature of _PyLong_NumBits 2022-02-12 13:27:40 -05:00
David Hewitt 03e650c02f
Merge pull request #2160 from davidhewitt/option-as-ptr-leak
fix: memory leak in Option<T>::as_ptr
2022-02-12 08:14:05 +00:00