Commit graph

5795 commits

Author SHA1 Message Date
David Hewitt cac95f31c7 add Py2 as an internal API for optimization and dogfooding 2023-10-13 08:10:37 +02:00
David Hewitt 2b7eb3a05e also test emscripten with CI-build-full 2023-10-13 00:57:39 +02:00
David Hewitt b2df27f0a1 bump "latest" CI jobs to 3.12 2023-10-13 00:57:39 +02:00
David Hewitt 642b335ce3
Merge pull request #3493 from PyO3/release-0.20
release: 0.20.0
2023-10-11 21:23:08 +00:00
Orhun Parmaksız dfeae473e5
Add support for SmallVec in conversion traits (#3440) 2023-10-11 17:14:23 +03:00
David Hewitt c77deee18e release: 0.20.0 2023-10-11 14:39:19 +02:00
David Hewitt b03c4cb33c
Merge pull request #3506 from davidhewitt/default-ne
Fix bug in default implementation of `__ne__`
2023-10-11 10:04:55 +00:00
David Hewitt e1d4173827 Fix bug in default implementation of __ne__ 2023-10-11 09:48:06 +01:00
David Hewitt b73c06948c
Merge pull request #3504 from davidhewitt/classmethod-receiver
emit helpful error hint for classmethod with receiver
2023-10-10 21:35:34 +00:00
David Hewitt 76bf521ed0
Merge pull request #3505 from davidhewitt/deprecate_dunder_new
deprecate undocumented `#[__new__]` form of `#[new]`
2023-10-10 21:35:10 +00:00
David Hewitt 6c90325a1c deprecate undocumented #[__new__] form of #[new] 2023-10-10 08:47:03 +01:00
David Hewitt c0b5004cfa
Merge pull request #3455 from davidhewitt/normalized-exceptions
also use `PyErr::SetObject` on Python versions before 3.12
2023-10-10 07:44:39 +00:00
David Hewitt 80bbb30f56
Merge pull request #3500 from ecarrara/fix-eval-frame-py311
Fix `_PyFrameEvalFunction` receives an `_PyInterpreterFrame` since Python 3.11
2023-10-10 05:35:21 +00:00
David Hewitt ddc04ea093 emit helpful error hint for classmethod with receiver 2023-10-10 06:30:19 +01:00
Erle Carrara 0e0e6623f3
fix _PyFrameEvalFunction. Since python 3.11 it receives a _PyInterpreterFrame 2023-10-09 23:36:01 -03:00
Bruno Kolenbrander 300f2d63ae
Merge pull request #3487 from mejrs/ffi_example
refactor pyo3-ffi example to an example project
2023-10-09 22:53:35 +00:00
mejrs de27e5e41f refactor pyo3-ffi example to an example project 2023-10-09 23:45:14 +02:00
Bruno Kolenbrander 36b4a79930
Merge pull request #3502 from mejrs/interpreterapi
add PyInterpreterConfig api
2023-10-08 21:22:01 +00:00
David Hewitt 234c7b3d66
Merge pull request #3484 from davidhewitt/new-no-arguments
error on passing arguments to `#[new]` and similar attributes
2023-10-08 21:21:51 +00:00
mejrs 0cccb9f64b add PyInterpreterConfig api 2023-10-08 22:38:11 +02:00
David Hewitt b3ee70db40 refactor parse_fn_type 2023-10-08 21:31:59 +01:00
David Hewitt 1158c08f42 error on passing arguments to #[new] and similar attributes 2023-10-08 21:31:59 +01:00
Bruno Kolenbrander 5b5eb1983c
Merge pull request #3498 from mejrs/b
Pin byteorder on msrv
2023-10-08 02:47:23 +00:00
mejrs d6e22a9972 Only run invalid_result_conversion on linux 2023-10-08 04:23:05 +02:00
mejrs 6ca573b9d0 Update clippy 2023-10-06 23:31:06 +02:00
mejrs 8eb0ca8939 Pin byteorder on msrv 2023-10-06 21:49:00 +02:00
messense 2d3dc65428
Merge pull request #3497 from davidhewitt/ci-3.12-debug
bump test-debug to 3.12
2023-10-05 03:14:05 +00:00
David Hewitt cbd7370b20
Merge pull request #3490 from davidhewitt/ffi-marshal-limited
disable `marshal.rs` on `Py_LIMITED_API`
2023-10-04 19:05:01 +00:00
David Hewitt 6c6c607ad3 bump test-debug to 3.12 2023-10-04 19:58:27 +01:00
David Hewitt a4b79dc1e5
Merge pull request #3494 from mejrs/slots
Update PyModuleDef_Slot types
2023-10-04 06:10:25 +00:00
mejrs aa011f4a9d Update PyModuleDef_Slot types 2023-10-03 23:25:45 +02:00
David Hewitt 90cc69ba73
Merge pull request #3488 from davidhewitt/python-3.12
support python 3.12
2023-10-03 19:53:20 +00:00
David Hewitt 5b7885b7ee
Merge pull request #3491 from davidhewitt/pymethods-macro-error
emit compile errors on macros inside `#[pymethods]`
2023-10-02 21:45:07 +00:00
David Hewitt a1d333a563 emit compile errors on macros inside #[pymethods]
Co-authored-by: Bruno Kolenbrander <59372212+mejrs@users.noreply.github.com>
2023-10-02 22:15:29 +01:00
David Hewitt c80a61ee30 disable marshal.rs on Py_LIMITED_API 2023-10-02 21:36:17 +01:00
David Hewitt 86fc62c5e7 support python 3.12 2023-10-02 20:57:41 +01:00
David Hewitt 2daddb4734 unify 3.12 and pre-3.12 exception handling pathways 2023-09-30 23:27:27 +01:00
David Hewitt f335f42197
Merge pull request #3446 from davidhewitt/relax-import-check
relax multiple-import check to only prevent subinterpreters
2023-09-29 16:35:31 +00:00
David Hewitt b9e9859082
Merge pull request #3478 from mejrs/auto
Don't let auto trait syntax bleed through on stable Rust
2023-09-29 16:35:05 +00:00
mejrs 0c8ab98760 move it into the inline module. 2023-09-29 17:22:27 +02:00
David Hewitt 1a349c2eb7 adjust cfgs for windows 3.9 2023-09-29 14:23:18 +01:00
David Hewitt 50cb41dd0b
Merge pull request #3458 from davidhewitt/truncate-leap-seconds
truncate leap seconds on `chrono` to `datetime` conversions
2023-09-29 11:47:27 +00:00
Adam Reichold 07de74d870
Merge pull request #3481 from SigureMo/typo/dead-link-eval
docs: fix some dead links
2023-09-29 05:49:24 +00:00
SigureMo 25b2acb0eb
fix some dead links 2023-09-29 13:24:00 +08:00
David Hewitt 4b5ff05721
Merge pull request #3471 from davidhewitt/normalized-exceptions-2
always normalize exceptions before raising
2023-09-28 20:27:18 +00:00
mejrs d0d4b9d3fb Dont let auto trait syntax bleed through on stable 2023-09-28 12:26:09 +02:00
David Hewitt a2108c2c74
Merge pull request #3476 from davidhewitt/dead-attrs-cleanup
remove branches for dead `call` and `init` attrs
2023-09-27 08:21:05 +00:00
David Hewitt 6c0386ec7e remove branches for dead call and init attrs 2023-09-27 08:52:56 +01:00
David Hewitt 0459532f69 truncate leap seconds on chrono to datetime conversions 2023-09-24 20:28:43 +01:00
David Hewitt 673c45aac3
Merge pull request #3470 from davidhewitt/tests-capture-warnings
add `assert_warnings` test helper
2023-09-24 13:09:01 +00:00