Commit Graph

3561 Commits

Author SHA1 Message Date
David Hewitt b4b5f2323c
build.rs: use inclusive range syntax 2020-10-20 08:53:28 +01:00
David Hewitt f74b64993e
Merge pull request #1245 from alex/abi3-merge-master
Merge master into abi3 branch, resolving conflicts
2020-10-19 22:11:47 +01:00
Alex Gaynor 90a825d0c2 Merge branch 'master' into abi3-merge-master 2020-10-19 14:32:49 -04:00
David Hewitt 5a196c35e9
Merge pull request #1250 from davidhewitt/drop-python-3.5
Drop support for Python 3.5
2020-10-19 18:23:30 +01:00
David Hewitt ef50a10537
Merge pull request #1248 from davidhewitt/freelist-lifetime
Fix lifetime soundness in freelist
2020-10-18 22:43:19 +01:00
Alex Gaynor 781bb9f602 Merge branch 'master' into abi3-merge-master 2020-10-18 17:28:02 -04:00
David Hewitt 95ed5bb0b2
Merge pull request #1246 from alex/freelist-sound
Make get_free_list API sound
2020-10-18 20:31:08 +01:00
David Hewitt afd9b823d2 Drop support for Python 3.5 2020-10-18 19:02:27 +01:00
Alex Gaynor bb3b8122aa Make get_free_list API sound
Without having a Py (which ensures the GIL is held) multiple thraeds could call get_free_list concurrently.
2020-10-18 13:41:33 -04:00
David Hewitt 7ddcf45ec5 Fix lifetime soundness in freelist 2020-10-18 18:36:31 +01:00
Alex Gaynor 265db337c2 Fixes for PyIterator 2020-10-18 11:31:42 -04:00
Alex Gaynor ba6f0ecdfa Merge branch 'master' into abi3-merge-master 2020-10-18 10:47:06 -04:00
Yuji Kanagawa 46dc8b0194
Merge pull request #1244 from PyO3/davidhewitt-patch-7
examples: add Pyre
2020-10-18 18:53:48 +09:00
David Hewitt d463d2dfd2
examples: add Pyre 2020-10-18 10:14:06 +01:00
David Hewitt 84b893b261 guide: improve "calling Python from Rust" section 2020-10-18 10:08:11 +01:00
David Hewitt 27f2d0ee3b
Merge pull request #1212 from Askaholic/issue/#1055-add-arg-name-to-conversion-error
Enhance error messages of conversion errors
2020-10-18 09:15:42 +01:00
David Hewitt 242f75d199
Merge pull request #1240 from PyO3/davidhewitt-patch-7
guide: fix broken link
2020-10-18 09:13:03 +01:00
David Hewitt 4a916eb3ed
guide: fix broken link 2020-10-16 09:00:46 +01:00
Askaholic 1d7034478c
Add entries to changelog 2020-10-15 12:02:58 -08:00
Askaholic 6724783395
Change wording of PyDowncastError display implementation
Displays type(obj) instead of repr(obj) and uses `cannot` instead of
`can't`
to be more consistent with existing python error messages.

See discussion at #1212.
2020-10-14 17:32:00 -08:00
Askaholic 19889bc6b9
Add argument name to TypeError messages caused during argument conversion 2020-10-14 17:32:00 -08:00
Askaholic 007bfb7ab0
Refactor py_expect_exception to also verify error string representation 2020-10-13 14:02:14 -08:00
David Hewitt 95cebd8fee
Merge pull request #1217 from PyO3/remove-python-3-10-removals
Remove symbols that are removed in python 3.10
2020-10-13 00:48:45 +01:00
David Hewitt 579fdfc1f7
Merge pull request #1176 from birkenfeld/pyiter
Remove special case of PyIterator
2020-10-13 00:38:07 +01:00
David Hewitt 15b0e19266
Merge pull request #1235 from davidhewitt/remove-python3-feature
Remove unused `python3` feature
2020-10-13 00:13:47 +01:00
David Hewitt 429843575e
Merge pull request #1237 from alex/abi3-merge-master
merge master into abi3 branch to resolve conflicts
2020-10-13 00:02:34 +01:00
David Hewitt 732ad45075
Merge pull request #1236 from PyO3/release-0.12.3
Release 0.12.3
2020-10-12 23:31:42 +01:00
Alex Gaynor 2923b4dff1 Fix for MSRV 2020-10-12 18:19:50 -04:00
Alex Gaynor 5060379185 Fix changelog 2020-10-12 18:11:38 -04:00
Alex Gaynor 9e34835b76 Merge branch 'master' into abi3-merge-master 2020-10-12 18:03:14 -04:00
David Hewitt fc7cb2e772
Merge pull request #1234 from davidhewitt/fix-msrv-ci
Fix MSRV CI to correctly use MSRV
2020-10-12 22:51:49 +01:00
David Hewitt 6e46bca536
Merge pull request #1233 from alex/patch-1
Update environment setting for Github Actions API updates
2020-10-12 21:35:40 +01:00
Alex Gaynor f855daf7e2
Update environment setting for Github Actions API updates 2020-10-12 16:19:34 -04:00
David Hewitt d6e624ba65
Merge pull request #1225 from PyO3/release-0.12.2
Release 0.12.2
2020-10-12 20:57:37 +01:00
David Hewitt 576c6b191c
Merge pull request #1231 from PyO3/dont-watch-path
Don't watch PYTHON_SYS_EXECUTABLE and PATH when unnecessary
2020-10-12 18:14:47 +01:00
konstin 2c3ee2c97a Update CHANGELOG.md
Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
2020-10-12 17:39:14 +01:00
konstin 5f109743a7 Remove symbols that are removed in python 3.10
Those functions and variable are listed in https://docs.python.org/3.10/whatsnew/3.10.html#id4
2020-10-12 17:38:16 +01:00
David Hewitt 1c84539ef9 rustfmt 2020-10-12 17:37:53 +01:00
David Hewitt 482ee3a8b2 Add changelog entry and test 2020-10-12 17:37:53 +01:00
Georg Brandl 7b90a9b13e implement PyIterator without additional lifetime
This lets us treat it no different from other types
like PySequence.
2020-10-12 17:34:21 +01:00
Georg Brandl 70a3785383 improve PyIterator docs a little 2020-10-12 17:34:21 +01:00
David Hewitt 1539db762b Remove unused `python3` feature 2020-10-12 16:53:49 +01:00
David Hewitt 38af32e33e Release 0.12.3 2020-10-12 16:18:25 +01:00
David Hewitt 7b3dd68bfb Fix support for MSRV
Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
2020-10-12 15:46:40 +01:00
kngwyu 41cfa6b2e9 Don't watch PYTHON_SYS_EXECUTABLE and PATH when unnecessary 2020-10-12 23:22:14 +09:00
David Hewitt 1cecad884a Release 0.12.2 2020-10-12 12:56:46 +01:00
David Hewitt 1749747ad4
Merge pull request #1228 from PyO3/exclude-py-coversion
Move impl From for Py<T> to macros not used in rust-numpy
2020-10-12 09:00:57 +01:00
David Hewitt 0665c02b4f
Merge pull request #1230 from alex/abi3-final
Assorted updates to the abi3 branch from review
2020-10-12 08:56:02 +01:00
kngwyu f45242f053 Move From<&T> for Py<T> impl to pyobject_native_type_core 2020-10-12 13:59:52 +09:00
Alex Gaynor aabad7cf7f Assorted updates to the abi3 branch from review 2020-10-11 19:51:27 -04:00