Commit graph

5795 commits

Author SHA1 Message Date
David Hewitt 1e8833e15e always normalize exceptions before raising 2023-09-24 13:38:23 +01:00
David Hewitt 7d486bb72a tests/common.rs -> src/tests/common.rs 2023-09-24 13:34:53 +01:00
David Hewitt 42f9cd4476
Merge pull request #3469 from davidhewitt/chrono-tidy-up
refactor chrono implementation to be more DRY
2023-09-24 09:32:43 +00:00
David Hewitt f691a68b46
Merge pull request #3472 from davidhewitt/normalized-exceptions-3
unify 3.12 / non-3.12 error handling branches
2023-09-23 21:45:25 +00:00
David Hewitt d089c92680 unify 3.12 / non-3.12 error handling branches 2023-09-23 22:18:59 +01:00
David Hewitt 97ee5967e0 increase test coverage of chrono feature 2023-09-23 13:51:38 +01:00
David Hewitt 20378a607b
Merge pull request #3466 from davidhewitt/docs-only-prs
docs: skip changelog check for docs-only PRs
2023-09-23 12:26:37 +00:00
David Hewitt c8f82be32c add assert_warnings test helper 2023-09-23 13:14:18 +01:00
David Hewitt ccc22a905d allow invalid_from_utf8 lint in tests 2023-09-23 12:54:53 +01:00
David Hewitt 2d61a73b02 refactor chrono implementation to be more DRY 2023-09-23 12:46:45 +01:00
David Hewitt f17e703167 return existing module on Python 3.9 and up 2023-09-23 11:13:39 +01:00
David Hewitt 1338020511 relax multiple-import check to only prevent subinterpreters 2023-09-23 11:13:39 +01:00
David Hewitt aeb7a958dc
Merge pull request #3461 from davidhewitt/some-wraps
better `Some`-wrapping for default arguments
2023-09-21 21:12:43 +00:00
David Hewitt 743f1d856d
Merge pull request #3459 from davidhewitt/fix-codecov-ignores
fix codecov ignore paths for test folders
2023-09-21 21:12:36 +00:00
David Hewitt 668918f5d3 skip changelog check for docs-only PRs 2023-09-21 21:43:48 +01:00
David Hewitt c2e7ad7e56
Merge pull request #3465 from jeffs/main
Fix a typo in a documentation page title
2023-09-21 20:38:50 +00:00
David Hewitt 5798caf1f8 better Some-wrapping for default arguments 2023-09-21 21:14:44 +01:00
David Hewitt 2ab678107f fix codecov ignore paths for test folders 2023-09-21 21:14:07 +01:00
Jeff Schwab 535a255bae Fix a typo in a documentation page title 2023-09-21 21:11:27 +01:00
David Hewitt d7cf4270f3
Merge pull request #3462 from davidhewitt/dh/chrono-panics
ci: adjust tests to avoid chrono panics
2023-09-21 08:02:49 +00:00
David Hewitt 1ec3c5a4fd ci: adjust tests to avoid chrono panics 2023-09-21 08:34:45 +01:00
David Hewitt 8f4a26a66e
Merge pull request #3450 from davidhewitt/pyo3-runtime
add pyo3-runtime stub package
2023-09-12 19:53:48 +00:00
David Hewitt 10d9eeb7e8 add pyo3-runtime stub package 2023-09-12 21:18:32 +02:00
David Hewitt fdf8c7ae68
Merge pull request #3448 from PyO3/dependabot/github_actions/actions/checkout-4
Bump actions/checkout from 3 to 4
2023-09-12 06:09:27 +00:00
dependabot[bot] f470fd2d82
Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-11 20:30:05 +00:00
David Hewitt bcb01049cc
Merge pull request #3404 from davidhewitt/fix-dealloc
call PyObject_GC_Untrack before deallocating
2023-09-11 05:18:34 +00:00
David Hewitt 5ab8b9649b
Merge pull request #3444 from davidhewitt/ffi-monitors
Fix name of `_Py_LocalMonitors` in latest 3.12 RCs
2023-09-10 21:00:28 +00:00
David Hewitt 0ab00c7442
Merge pull request #3330 from davidhewitt/get-item-with-error
move PyDict::get_item_with_error to PyDict::get_item
2023-09-10 20:40:20 +00:00
David Hewitt 932c5c7061 workaround BaseException issue on Python versions before 3.11 2023-09-10 22:16:17 +02:00
David Hewitt fc6e22a554 Fix name of _Py_LocalMonitors in latest 3.12 RCs 2023-09-10 22:14:29 +02:00
David Hewitt 0b87297fee split out release and cpython version in test-debug 2023-09-09 22:29:58 +01:00
David Hewitt e28403e772 call PyObject_GC_Untrack before deallocating 2023-09-09 22:29:58 +01:00
David Hewitt 95fe0a708c test debug build in CI 2023-09-09 22:29:58 +01:00
David Hewitt c7f834ad87 add migration guide entry for PyDict::get_item 2023-09-09 13:05:51 +01:00
David Hewitt a425c69dce
Merge pull request #3434 from davidhewitt/test-no-fail-fast
add --no-fail-fast to cargo test in CI
2023-09-09 12:01:08 +00:00
David Hewitt 6f6075a473 add --no-fail-fast to cargo test in CI 2023-09-09 12:26:00 +01:00
David Hewitt 8ddfef04bc add detail to documentation for PyDict::get_item 2023-09-09 12:23:06 +01:00
David Hewitt 8a60540e25 amend code for PyDict::get_item change 2023-09-09 12:23:06 +01:00
David Hewitt 16728c4da2 move PyDict::get_item_with_error to PyDict::get_item 2023-09-09 12:23:06 +01:00
David Hewitt 1ea8f0c959
Merge pull request #3441 from davidhewitt/netlify-doc-links
remove some redundant explicit doc links
2023-09-08 15:20:23 +00:00
David Hewitt f0f15edc4e remove some redundant explicit doc links 2023-09-08 15:36:24 +01:00
David Hewitt 48bcf9c76f
Merge pull request #3436 from davidhewitt/mejrs-ffi-comments
add comments to ffi def structures
2023-09-07 07:09:28 +00:00
David Hewitt ad042f3bae add comments to ffi def structures
Co-authored-by: Bruno Kolenbrander <59372212+mejrs@users.noreply.github.com>
2023-09-06 08:56:51 +01:00
David Hewitt 8dc3d2bc11
Merge pull request #3433 from Hofer-Julian/noplayground
Add `noplayground` annotation to guide snippets
2023-09-05 20:53:48 +00:00
Julian Hofer 6e24fb6643 guide: Add playground.runnable = false to book.toml 2023-09-05 22:28:43 +02:00
David Hewitt bf093b3903
Merge pull request #3431 from PyO3/dependabot/github_actions/actions/checkout-4
Bump actions/checkout from 3 to 4
2023-09-04 22:13:37 +00:00
dependabot[bot] b9f4197bf5
Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 20:47:53 +00:00
David Hewitt e67b283b25
Merge pull request #3358 from alex/ptr-unsafe-trait
fixes #3325 -- mark `AsPyPointer` as `unsafe trait`
2023-09-04 05:05:56 +00:00
David Hewitt cecd32aae6
Merge pull request #3414 from davidhewitt/simpler-thread-checker
simplify thread checker implementation
2023-09-03 13:45:50 +00:00
David Hewitt 4c46d81afd simplify thread checker implementation 2023-09-03 14:15:26 +01:00