Commit Graph

2168 Commits

Author SHA1 Message Date
kngwyu c7016f8e4c Refer guide for nightly install 2019-11-23 15:36:30 +09:00
Yuji Kanagawa 3881cc064b
Merge pull request #668 from PyO3/github-actions
Enable Github Actions for Windows CI
2019-11-17 22:27:54 +09:00
kngwyu 5b8f436252 Replace appveyor badge instead of Actions badge 2019-11-17 18:09:55 +09:00
kngwyu dadeb17c3a Fix Windows test 2019-11-17 16:34:55 +09:00
kngwyu c0386f3d00 Delete appveyor.yml 2019-11-17 12:16:36 +09:00
Yuji Kanagawa 8204bd08a0
Enable Github Actions for Windows CI 2019-11-16 21:39:59 +09:00
Yuji Kanagawa 8b2b40c2a0
Merge pull request #667 from kngwyu/upd-np
Update the link to rust-numpy and tooling section in guide
2019-11-16 17:56:03 +09:00
kngwyu b7b17edc1d Update the link to rust-numpy and tooling section in guide 2019-11-16 15:40:25 +09:00
Yuji Kanagawa 99f9b36b2a
Merge pull request #658 from kngwyu/remove-init
[NEED DISCUSSION] Remove #[init] attribute
2019-11-09 15:34:00 +09:00
kngwyu 3eff3ca504 Remove unnecessary parentheses 2019-11-02 15:18:40 +09:00
kngwyu f0526eb739 Change error message around #[init] 2019-11-02 14:44:16 +09:00
kngwyu 8550e0f575 Remove #[init] attribute 2019-10-31 19:39:53 +09:00
Yuji Kanagawa 72debedc39
Merge pull request #655 from kngwyu/unsendable
Make &Py~ types unsendable
2019-10-31 16:13:23 +09:00
kngwyu b5157b0431 Add doctests for allow_threads 2019-10-28 13:21:30 +09:00
kngwyu 6dff93b7e9 Make &Py~ types unsendable 2019-10-27 23:13:07 +09:00
kngwyu 7977fe68e2 Use Unsendable alias instead of Phantomdata<Rc<()>> 2019-10-27 23:12:59 +09:00
Yuji Kanagawa fe229753fb
Merge pull request #650 from PyO3/v0.8.2
Bump version to 0.8.2
2019-10-27 15:10:41 +09:00
kngwyu 14d2196ba0 Bump version to 0.8.2 2019-10-26 22:47:19 +09:00
Yuji Kanagawa da1ab1b2b8
Merge pull request #644 from sebpuetz/fix-mapping-protocol
Remove contains and iter from PyMappingProtocol.
2019-10-26 22:36:08 +09:00
Yuji Kanagawa 59975f8dd8
Merge pull request #647 from Alexander-N/bytes
Move PyBytes from string.rs into own file
2019-10-26 21:22:08 +09:00
Alexander Niederbühl 04dece4804 Move PyBytes from string.rs into own file 2019-10-26 00:56:14 +02:00
Yuji Kanagawa 6868d7f734
Merge branch 'master' into fix-mapping-protocol 2019-10-26 02:55:54 +09:00
Yuji Kanagawa f8e07b2d3f
Merge pull request #645 from sebpuetz/fix-set-attr-protocol
Fix derive for PyObjectSetAttrProtocol.
2019-10-26 00:24:02 +09:00
Sebastian Puetz 3b707c8511 Remove contains and iter from PyMappingProtocol.
The methods are not expected by CPython and are only explicitly
callable. To get iteration support, PyIterProtocol should be
implemented and to get support for `x in mapping`,
PySequenceProtocol's __contains__ should be implemented.

https://github.com/PyO3/pyo3/issues/611
2019-10-25 17:20:44 +02:00
Sebastian Puetz 4864c584f3 Fix derive for PyObjectSetAttrProtocol.
PyObjectSetAttrProtocol doesn't define associated type Success.
2019-10-25 16:10:00 +02:00
Yuji Kanagawa 30485f3f98
Merge pull request #642 from Alexander-N/to_string_lossy
Fix handling of invalid utf-8 sequences in PyString::to_string_lossy
2019-10-25 12:51:53 +09:00
Alexander Niederbühl defa43015a Fix handling of invalid utf-8 sequences in PyString::to_string_lossy 2019-10-24 22:45:32 +02:00
Yuji Kanagawa 34843d754a
Merge pull request #641 from ijl/pep590
FFI for PEP 590 Vectorcall
2019-10-24 14:16:26 +09:00
ijl caf4713b3a FFI for PEP 590 Vectorcall
https://www.python.org/dev/peps/pep-0590/

This was tested on 3.7 using _PyCFunctionFast and 3.8
using PyObject_Vectorcall. Extending pyo3-derive-backend
to generate code using vectorcall is not done here.

This exposes PyObject_Vectorcall with a link_name to the
underscored name on 3.8 because it is expected to be stabilized
on 3.9.

This fixes the "fast" objects being new in 3.7, not 3.6.
2019-10-23 21:40:38 +00:00
Yuji Kanagawa bab05e8135
Merge pull request #639 from Alexander-N/bytes-result
Guard against PyUnicode_AsUTF8AndSize returning null in PyString::as_bytes
2019-10-23 17:25:01 +09:00
Alexander Niederbühl 7a4909bdc7 Guard against PyUnicode_AsUTF8AndSize returning null 2019-10-23 00:39:47 +02:00
Yuji Kanagawa 45eb9f4b89
Merge pull request #635 from Alexander-N/datetime-tests
Fix minimum and maximum for datetime tests
2019-10-22 13:04:16 +09:00
Alexander Niederbühl 7aaef51ab0 Define limits for datetime tests as datetime literals 2019-10-21 16:50:43 +02:00
Yuji Kanagawa 6a89a904e3
Merge pull request #637 from Alexander-N/bytes
Implement conversion traits for PyBytes
2019-10-21 00:21:44 +09:00
Alexander Niederbühl 69cbf1a494 Remove test_get_pybytes 2019-10-20 15:12:17 +02:00
Alexander Niederbühl b0925e1109 Add conversion traits for PyBytes 2019-10-20 14:42:12 +02:00
Alexander Niederbühl ffe4e2f20a Make datetime range for tests smaller 2019-10-19 18:28:53 +02:00
Alexander Niederbühl 8cdc0b42dd Fix minimum and maximum for datetime tests
Depending on the local timezone one could get

  ValueError: year 0 is out of range
2019-10-19 17:56:39 +02:00
Yuji Kanagawa f6f607ef68
Merge pull request #624 from kngwyu/seq-setitem
Fix PySequenceProtocol::set_item
2019-10-19 13:44:49 +09:00
Yuji Kanagawa 69975339be
Merge pull request #630 from programmerjake/fix-bigint-overflow
Fix off-by-one error in FromPyObject for BigInt
2019-10-19 13:44:32 +09:00
Yuji Kanagawa 2713977fff
Merge pull request #631 from kngwyu/output-fix
Fix index error in parameter conversion codes
2019-10-19 12:40:19 +09:00
Jacob Lifshay f55037c377 switch to using macro for test & change test name 2019-10-18 16:20:16 -07:00
kngwyu 3c898ee27d [derive-backend] Do not increment option_pos for *args/**kwargs 2019-10-16 02:51:22 +09:00
Jacob Lifshay 85492842ac Fix off-by-one error in FromPyObject for BigInt
Fixes #629
2019-10-14 22:31:22 -07:00
Yuji Kanagawa c7f3cde930
Merge pull request #627 from Alexander-N/tests
Make tests for optional arguments more consistent
2019-10-15 00:02:37 +09:00
Alexander Niederbühl e91d969e17 Make tests for optional arguments more consistent 2019-10-13 23:17:57 +02:00
Yuji Kanagawa 1796335617
Merge pull request #626 from Alexander-N/unwrap
Remove unwrap for attribute parsing
2019-10-13 15:46:17 +09:00
Yuji Kanagawa e57a98944c
Merge pull request #625 from Alexander-N/none-default
Enable to give None as default value for an argument
2019-10-13 15:42:55 +09:00
Alexander Niederbühl 65ad8a87ff Remove unwrap for attribute parsing
This change enables getting a helpful error message.
2019-10-12 20:29:03 +02:00
Alexander Niederbühl c7a53611e0 Enable to give None as default value for an argument 2019-10-12 20:16:25 +02:00