Commit Graph

5419 Commits

Author SHA1 Message Date
David Hewitt 7d357ad992 release: 0.19.1 2023-07-03 16:18:24 +01:00
David Hewitt 0e9c041e97
Merge pull request #3289 from davidhewitt/pypy-3.10
support PyPy 3.10
2023-07-03 12:53:16 +00:00
David Hewitt 9f2176c126 support PyPy 3.10 2023-07-03 11:26:45 +01:00
David Hewitt da7c031cf4
Merge pull request #3287 from alex/existing-instance
Allow `#[new]` to return existing instances
2023-07-03 10:20:29 +00:00
Alex Gaynor 0b78bb851e
Allow `#[new]` to return existing instances
fixes #2384
2023-07-02 19:57:53 -04:00
David Hewitt 1a0c9bec61
Merge pull request #3286 from PyO3/set-add-does-not-steal
Apparently, PySet_Add does not steal a reference, hence we should not forget to clean up ours.
2023-07-02 20:06:51 +00:00
Adam Reichold e006b34b5e Apparently, PySet_Add does not steal a reference, hence we should not forget to clean up ours. 2023-07-02 20:43:43 +02:00
David Hewitt 135535e668
Merge pull request #3280 from davidhewitt/option-to-tz
clarify ownership of opt_to_pyobj helper function
2023-06-28 21:23:33 +00:00
David Hewitt b7a3a8bffe
Merge pull request #3282 from CallMeMSL/patch-1
Fix typos and add punctuation recommended by grammarly in Class.md
2023-06-28 18:16:18 +00:00
Adam Reichold afc1d4cc42
Merge pull request #3281 from davidhewitt/set-discard
handle exceptions properly in `PySet::discard`
2023-06-28 17:09:01 +00:00
CallMeMSL 23bdd4337f
Fix typos and add punctuation recommended by grammarly in Class.md 2023-06-28 13:46:13 +02:00
David Hewitt 1d56cfef47
Merge pull request #3278 from davidhewitt/ffi-check-ci
decouple pyo3-ffi-check from MSRV
2023-06-28 08:10:54 +00:00
David Hewitt b7d391d994 clarify ownership of opt_to_pyobj helper function 2023-06-28 08:54:56 +01:00
David Hewitt c0b9502c0e handle exceptions properly in `PySet::discard` 2023-06-28 08:54:06 +01:00
David Hewitt b329439bdc
Merge pull request #3271 from davidhewitt/hasattr
stop suppressing unrelated exceptions in `PyAny::hasattr`
2023-06-28 07:44:30 +00:00
David Hewitt a0aa9ce92e use _run_cargo helper in noxfile 2023-06-28 08:25:28 +01:00
David Hewitt 4867ef8dd3 stop suppressing unrelated exceptions in `PyAny::hasattr` 2023-06-27 23:20:22 +01:00
David Hewitt 48c16a6878 move pyo3-ffi-check into its own workspace 2023-06-27 22:54:10 +01:00
Adam Reichold 071f31408f
Merge pull request #3277 from PyO3/indexmap-range
Extended range of supported versions of `indexmap` optional dependency to include version 2.
2023-06-27 06:06:43 +00:00
David Hewitt 76b794a154
Merge pull request #3272 from lucatrv/patch-2
Add conversions between Rust Path/PathBuf and Python str / pathlib.Path
2023-06-26 21:31:52 +00:00
Adam Reichold b5a1ca058d Extended range of supported versions of `indexmap` optional dependency to include version 2. 2023-06-26 23:23:12 +02:00
Adam Reichold 7425206251
Merge pull request #3274 from PyO3/fix-pr-template
Our PR template still referenced the removed xtask infrastructure.
2023-06-25 20:28:29 +00:00
Adam Reichold 575cb2ab4a
Merge pull request #3270 from davidhewitt/pypy-getitemerror
add `PyDict::get_item_with_error` for PyPy
2023-06-25 19:52:45 +00:00
Adam Reichold c246e95875 Our PR template still referenced the removed xtask infrastructure. 2023-06-25 21:37:27 +02:00
David Hewitt 20f909c97f refactor `PyDict::get_item[_with_error]` implementations 2023-06-25 20:13:52 +01:00
Luca Trevisani de9d760462
Add conversions between Rust Path/PathBuf and Python str / pathlib.Path 2023-06-25 20:40:51 +02:00
David Hewitt db91642bae add `PyDict::get_item_with_error` for PyPy 2023-06-25 19:26:08 +01:00
Adam Reichold edf47b575f
Merge pull request #3264 from davidhewitt/no-index
add http headers to help search engines index the docs
2023-06-22 10:12:36 +00:00
Adam Reichold 0a4806f7eb
Merge pull request #3265 from davidhewitt/badges
get all badges through shields.io
2023-06-22 04:37:24 +00:00
David Hewitt 0e304b1b7f add http headers to help search engines index the docs 2023-06-21 23:10:09 +01:00
David Hewitt 6bafb6bb1d get all badges through shields.io 2023-06-21 22:43:54 +01:00
David Hewitt a6e10514b2
Merge pull request #3263 from PyO3/with-pool
Add Python::with_pool as a safer alternative to Python::new_pool.
2023-06-21 20:37:24 +00:00
Adam Reichold 4afa994449 Mark Python::with_pool as safe on stable. 2023-06-21 09:12:10 +02:00
Adam Reichold d7e147509b Add Python::with_pool as a safer alternative to Python::new_pool. 2023-06-21 08:05:19 +02:00
David Hewitt b2a1a961dd
Merge pull request #3260 from mejrs/traverse
Give a better error message for Python argument in __traverse__
2023-06-20 21:44:50 +00:00
Adam Reichold 71ed4e17c7
Merge pull request #3256 from PyO3/dependabot/cargo/unindent-0.2.1
Update unindent requirement from 0.1.4 to 0.2.1
2023-06-20 20:05:17 +00:00
Adam Reichold fdc8b64506
Merge pull request #3258 from PyO3/dependabot/cargo/hashbrown-gte-0.9-and-lt-0.15
Update hashbrown requirement from >= 0.9, < 0.14 to >= 0.9, < 0.15
2023-06-20 18:13:21 +00:00
Adam Reichold 430716ff4d Add changelog entry for bumping hashbrown dependency. 2023-06-20 19:41:45 +02:00
Adam Reichold 689033cd80 Extend changelog of indoc bump to include related unindent change as well. 2023-06-20 19:41:02 +02:00
mejrs 51a6863440 Give a better error message for Python in traverse 2023-06-19 23:25:51 +02:00
dependabot[bot] 27549304ae
Update hashbrown requirement from >= 0.9, < 0.14 to >= 0.9, < 0.15
Updates the requirements on [hashbrown](https://github.com/rust-lang/hashbrown) to permit the latest version.
- [Changelog](https://github.com/rust-lang/hashbrown/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/hashbrown/compare/v0.9.0...v0.14.0)

---
updated-dependencies:
- dependency-name: hashbrown
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-19 20:58:37 +00:00
dependabot[bot] b222542229
Update unindent requirement from 0.1.4 to 0.2.1
Updates the requirements on [unindent](https://github.com/dtolnay/indoc) to permit the latest version.
- [Release notes](https://github.com/dtolnay/indoc/releases)
- [Commits](https://github.com/dtolnay/indoc/compare/0.1.4...0.2.1)

---
updated-dependencies:
- dependency-name: unindent
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-19 20:57:35 +00:00
Adam Reichold ad785e7778
Merge pull request #3254 from mejrs/include
Remove doctests macro workaround
2023-06-19 18:45:43 +00:00
Adam Reichold 339ea99d38
Merge pull request #3255 from mejrs/unreachable
Replace unreachable! with empty enum match
2023-06-19 18:45:39 +00:00
mejrs b939849094 Use `value` as argument name 2023-06-19 20:17:50 +02:00
mejrs 456efde245 Replace unreachable! with empty enum match 2023-06-19 19:48:04 +02:00
mejrs 686f5eb0ad Simplify doctests macro 2023-06-19 18:12:01 +02:00
Adam Reichold e664749d61
Merge pull request #3252 from PyO3/type-object-mode-callable
Rework pyobject_native_type_info! to support callables
2023-06-19 08:57:08 +00:00
Adam Reichold 5eed73f1c0 Rework pyobject_native_type_info! to expect callables
Most native types have static type objects which just need to be turned into a
pointer using addr_of_mut!, but sometimes like for exceptions we do call a
function which lazily initializes a type object.

This makes the pyobject_native_type_info! macro expect callable and passes it
the GIL token so that we do not need to call Python::assume_gil_acquired. The
case of static type objects is handled by the
pyobject_native_static_type_object! helper macro.
2023-06-19 10:30:03 +02:00
David Hewitt bdf51ab241
Merge pull request #3248 from ijl/py312-exc
Add PyErr_GetRaisedException(), PyErr_SetRaisedException() to FFI
2023-06-18 21:45:14 +00:00