Commit Graph

4857 Commits

Author SHA1 Message Date
Adam Reichold d7b05cbcf5
Run Rust tests using Valgrind and cargo-careful (#2706)
* Run asan with `-Zbuild-std`

* Run Rust tests using Valgrind and cargo-careful.

* Pin Valgrind task to 1.61.0 to avoid the DWARF5 issues until fixed upstream.

* Override output checking of compilation UI tests as using different Rust versions might break that.

Co-authored-by: messense <messense@icloud.com>
2022-10-28 21:04:11 +01:00
messense 8d35ec75a1
Merge pull request #2708 from davidhewitt/py3.11
packaging: support Python 3.11
2022-10-27 18:05:58 +08:00
David Hewitt 0bd261c7d1 packaging: support Python 3.11 2022-10-27 07:44:50 +01:00
David Hewitt 8e8b484169
add `#[pyo3(signature = (...))]` attribute (#2702) 2022-10-25 07:23:21 +01:00
David Hewitt 747d791f1f
introduce trampolines for methods (#2705) 2022-10-25 07:22:36 +01:00
David Hewitt 35dc63e589
Merge pull request #2646 from davidhewitt/release-guide
add internal release notes
2022-10-20 08:46:17 +01:00
David Hewitt 1c3c5f2c5f
Merge pull request #2661 from davidhewitt/std-conversions
refactor: move std conversions into common module
2022-10-20 07:58:02 +01:00
David Hewitt 88be8ac7e7 add internal release notes 2022-10-20 07:47:07 +01:00
David Hewitt 39a68cf7ac
Merge pull request #2687 from saethlin/main
Avoid calling slice::from_raw_parts with a null pointer
2022-10-20 07:34:39 +01:00
David Hewitt fb34ed1694 add more coverage 2022-10-20 07:29:42 +01:00
David Hewitt c76916a084 refactor: move std conversions into common module 2022-10-19 21:36:39 +01:00
Ben Kimock 7ff5ab770a Avoid calling slice::from_raw_parts with a null pointer 2022-10-18 17:09:27 -04:00
David Hewitt 446c0e82f0
Merge pull request #2692 from mejrs/all
Implement get/set all on pyclass
2022-10-18 21:39:44 +01:00
mejrs 3b687b7012 newsfragment 2022-10-18 21:40:59 +02:00
mejrs 08c8b845aa Create better error spans/messages 2022-10-18 21:14:22 +02:00
Georg Brandl 676227d2a1
Make `is_instance()` and `is_subclass()` take `&PyAny` (#2695) 2022-10-18 19:22:23 +02:00
David Hewitt bec726c463
Merge pull request #2691 from ctb/patch-1
Suggestions to update "getting started" docs so things work out of the box.
2022-10-17 20:31:51 +01:00
mejrs d254134154 Implement get/set all on pyclass 2022-10-17 02:37:43 +02:00
C. Titus Brown ca1c9c1dba update per review 2022-10-16 11:04:15 -07:00
C. Titus Brown 8e6bf1875f
Apply suggestions from code review
Co-authored-by: Georg Brandl <georg@python.org>
2022-10-16 11:01:15 -07:00
C. Titus Brown 54ecbdaaf0
Merge branch 'PyO3:main' into patch-1 2022-10-16 10:45:20 -07:00
Bruno Kolenbrander 4a04603c2c
Don't use intocallback in method macros (#2664)
* Don't use intocallback in method macros

Co-authored-by: mejrs <>
2022-10-16 10:35:58 +01:00
C. Titus Brown 78e4130762
Update getting_started.md 2022-10-15 20:55:49 -07:00
C. Titus Brown b265ee7907
Point new users at specific source file for Rust code.
This was a minor confusion for me so I thought I'd suggest the change - it was the first place I looked, but I did have to think about it :)
2022-10-15 20:49:24 -07:00
David Hewitt 125af9b7de
Merge pull request #2676 from PyO3/exact-iter
Add more implementations of ExactSizeIterator when iterating built-in Python data structures.
2022-10-13 21:28:04 +01:00
David Hewitt 61fd70c476
Merge pull request #2675 from PyO3/relax-extract-array
Also relax the PySequence check when extracting fixed-sized arrays.
2022-10-13 20:57:43 +01:00
Adam Reichold f456ed7586 Also relax the PySequence check when extracting fixed-sized arrays. 2022-10-13 09:43:45 +02:00
David Hewitt 43261c7b8c
Merge pull request #2681 from PyO3/unpin-itertools
Unpin itertools after it was published without a spurious resolver specification.
2022-10-13 07:49:51 +01:00
Adam Reichold 9847530cc8 Fix code blocks containing HTML-related characters missing backticks. 2022-10-13 07:33:11 +02:00
Adam Reichold 75d06d07a4 Unpin itertools after it was published without a spurious resolver specification. 2022-10-13 07:09:39 +02:00
David Hewitt 49b1b22e68
Merge pull request #2658 from PyO3/add-citation
add CITATION.cff
2022-10-12 08:15:29 +01:00
Adam Reichold cd361dc5cc Add more implementations of ExactSizeIterator when iterating built-in Python data structures. 2022-10-11 18:21:02 +02:00
Bruno Kolenbrander c9b26f57cd
Merge pull request #2657 from mejrs/decorator_fix
Update decorator to use Cell counter
2022-10-10 19:55:36 +02:00
dependabot[bot] f68781e67f
Merge pull request #2670 from PyO3/dependabot/github_actions/codecov/codecov-action-3 2022-10-10 06:09:35 +00:00
messense 44732fc4c9
Merge pull request #2672 from messense/dependabot-github-actions-labels
Add `CI-skip-changelog` label automatically for dependabot github actions updates
2022-10-10 14:08:44 +08:00
dependabot[bot] 1b28176e3d
Merge pull request #2671 from PyO3/dependabot/github_actions/actions/cache-3 2022-10-10 05:04:47 +00:00
dependabot[bot] 55cfc32215
Merge pull request #2669 from PyO3/dependabot/github_actions/actions/setup-python-4 2022-10-10 04:33:47 +00:00
messense 3599d7f28a
Add `CI-skip-changelog` label automatically for dependabot github actions updates 2022-10-10 11:31:04 +08:00
dependabot[bot] 6e6bf3816b
build(deps): bump actions/cache from 2 to 3
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v2...v3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-10 02:23:19 +00:00
dependabot[bot] d7b50c29d7
build(deps): bump codecov/codecov-action from 2 to 3
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 2 to 3.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-10 02:23:14 +00:00
dependabot[bot] 1708998ccd
build(deps): bump actions/setup-python from 3 to 4
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3 to 4.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v3...v4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-10 02:23:10 +00:00
messense fad39e74c4
Merge pull request #2666 from messense/dependabot-github-actions
Add `github-actions` to dependabot config
2022-10-10 10:22:38 +08:00
messense 5a43f48d8c
Add `github-actions` to dependabot config
https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
2022-10-09 14:16:23 +08:00
David Hewitt 420a373653
add CITATION.cff 2022-10-04 19:33:00 +01:00
mejrs d8fa6be28a is 2022-10-04 19:33:02 +02:00
mejrs e0602b641c Just use Cell 2022-10-04 19:05:44 +02:00
mejrs 611ea4db49 Update decorator to use atomics 2022-10-04 17:59:46 +02:00
David Hewitt 4939a205ad
Merge pull request #2656 from davidhewitt/0.17.2-changelog
update main for 0.17.2 release
2022-10-04 08:52:10 +01:00
David Hewitt bd40011e93 release: 0.17.2 2022-10-04 08:13:53 +01:00
David Hewitt 4a68273b17
Merge pull request #2642 from davidhewitt/doctest-guide-function
guide: doctest function/ subpages
2022-09-27 19:28:02 +01:00