Commit Graph

5819 Commits

Author SHA1 Message Date
Joseph Perez 627841f1e2
feat: support `async fn` in macros with coroutine implementation 2023-11-22 20:25:36 +01:00
Joseph Perez 744de3a142
feat: allow `classmethod`/`pass_module` to receive owned types
This is necessary for async functions
2023-11-22 07:45:59 +01:00
David Hewitt abe518d164
Merge pull request #3586 from davidhewitt/semver-checks-v2
enable cargo-semver-checks, try 2
2023-11-20 07:07:44 +00:00
David Hewitt 7b07d6d21b
Merge pull request #3578 from davidhewitt/typed-helpers
Change return types of `py.None()`, `py.NotImplemented()` and `py.Ellipsis()` to typed singletons
2023-11-20 07:07:12 +00:00
David Hewitt 4a43b2f454 bump version to 0.21.0-dev 2023-11-19 06:41:10 +00:00
David Hewitt 24f3d0da62 enable cargo-semver-checks, try 2 2023-11-18 13:25:05 +00:00
Adam Reichold 99858236bd
Merge pull request #3583 from davidhewitt/1.74-lints
ci: move lints to new 1.74 cargo.toml tables
2023-11-18 09:56:11 +00:00
David Hewitt bd0174aa5d Change return types of `py.None()`, `py.NotImplemented()` and `py.Ellipsis()` to typed singletons 2023-11-17 16:16:19 +00:00
David Hewitt a9305ab389 ci: move lints to new 1.74 cargo.toml tables 2023-11-17 15:41:52 +00:00
David Hewitt d89c38822e
Merge pull request #3579 from davidhewitt/rust-1.74
ci: updates for rust 1.74
2023-11-16 17:02:59 +00:00
David Hewitt 29ad73b6d5 ci: updates for rust 1.74 2023-11-16 16:06:01 +00:00
David Hewitt 1e28ba7fd0
Merge pull request #3570 from suriya-ganesh/patch-1
docs: fix missing char conversion
2023-11-15 00:54:44 +00:00
David Hewitt 78ae491557
Merge pull request #3575 from davidhewitt/no-rust-toolchain
ci: try to run without rust-toolchain.toml
2023-11-15 00:41:28 +00:00
David Hewitt ef9741850f ci: try to run without rust-toolchain.toml 2023-11-14 19:54:39 +00:00
Surya 0ff84d250e
fix missing char conversion 2023-11-10 09:27:01 -05:00
Bruno Kolenbrander c8fdb80630
Merge pull request #3559 from davidhewitt/cross-compile-link
add link to user guide to cross compile error message
2023-10-30 23:19:08 +00:00
David Hewitt 852e4fea04 add link to user guide to cross compile error message 2023-10-30 22:21:56 +00:00
David Hewitt 7a2c63da76
Merge pull request #3536 from davidhewitt/maturin-build-args
examples: remove requirements-dev.txt files
2023-10-29 13:27:15 +00:00
Adam Reichold bb808dad5c
Merge pull request #3556 from wyfo/giloncecell_take
feat: add `take` and `into_inner` methods to `GILOnceCell`
2023-10-29 13:15:45 +00:00
Joseph Perez f9107191f5 docs: add newsfragment 2023-10-29 13:54:10 +01:00
Joseph Perez 1fd4090bd4 refactor: remove useless `unsafe` in `get_mut` 2023-10-29 13:50:36 +01:00
Joseph Perez bb1cc93797 feat: add `take` and `into_inner` methods to `GILOnceCell` 2023-10-29 08:33:04 +01:00
Adam Reichold dc251d0c9f
Merge pull request #3552 from daemontus/main
docs: Example of dynamic return type in the "Python classes" guide
2023-10-27 14:32:18 +00:00
Adam Reichold 579af5e4cb
Merge pull request #3551 from davidhewitt/ruff
ci: switch from black to ruff
2023-10-27 06:09:21 +00:00
Samuel Pastva 2fbc02d06c
Finish rename 2023-10-26 19:02:06 -05:00
Samuel Pastva fc787eabd2
Update guide/src/class.md
Co-authored-by: Bruno Kolenbrander <59372212+mejrs@users.noreply.github.com>
2023-10-26 18:58:43 -05:00
Samuel Pastva 48c90d9586 Add example of dynamic return type in the "Python classes" section of the guide. 2023-10-26 17:13:32 -05:00
David Hewitt 3042ab1621 ci: switch from black to ruff 2023-10-26 21:04:49 +01:00
Adam Reichold aa6622bb1a
Merge pull request #3550 from davidhewitt/pyenv-install
docs: improve detail around pyenv install
2023-10-26 08:45:00 +00:00
David Hewitt 391687dab6 examples: remove requirements-dev.txt files 2023-10-26 08:24:30 +01:00
David Hewitt 7534c31a6d
Note about `pyenv activate` and `pyenv virtualenv` commands
Co-authored-by: Niko Matsakis <niko@alum.mit.edu>
2023-10-26 08:21:31 +01:00
Adam Reichold 2b91fea94f
Merge pull request #3548 from davidhewitt/nightly-code
ci: fix nightly unused import warning
2023-10-26 06:01:18 +00:00
Adam Reichold 719b87cc41
Merge pull request #3539 from davidhewitt/emit-cfgs-coverage
add coverage for `emit_pyo3_cfgs`
2023-10-25 22:50:47 +00:00
David Hewitt 572a27d2d3 ci: fix nightly unused import warnings 2023-10-25 23:30:14 +01:00
David Hewitt 98346dd137 docs: improve detail around pyenv install 2023-10-25 23:29:20 +01:00
David Hewitt e284f3669f add coverage for `emit_pyo3_cfgs` 2023-10-25 22:59:43 +01:00
David Hewitt 33ab4e5295
Merge pull request #3543 from davidhewitt/dev-deps-clean
ci: tidy up some dev deps
2023-10-25 20:17:43 +00:00
Adam Reichold 95c8ee9afc
Merge pull request #3542 from PyO3/dependabot/github_actions/actions/setup-node-4
Bump actions/setup-node from 3 to 4
2023-10-25 19:07:24 +00:00
David Hewitt f302b1c6bc ci: tidy up some dev deps 2023-10-25 20:33:41 +02:00
David Hewitt de6162f533
Merge pull request #3546 from davidhewitt/older-hashbrown
ci: use older hashbrown and indexmap for MSRV
2023-10-25 08:01:35 +00:00
David Hewitt d835a4c86c allow CI to continue when nightly Rust is broken 2023-10-25 08:33:00 +01:00
David Hewitt b281a6cc08 ci: use older hashbrown and indexmap for MSRV 2023-10-24 21:50:10 +01:00
David Hewitt 8c8f00e69d
Merge pull request #3541 from PyO3/dependabot/github_actions/actions/checkout-4
Bump actions/checkout from 3 to 4
2023-10-23 20:59:10 +00:00
dependabot[bot] 0f42c688f8
Bump actions/setup-node from 3 to 4
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3...v4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 20:32:21 +00:00
dependabot[bot] 64b639b945
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-10-23 20:32:16 +00:00
Adam Reichold 9d75325d0c
Merge pull request #3532 from davidhewitt/dict-from-seq
change `PyDict::from_sequence` to take just `&PyAny`
2023-10-20 15:06:08 +00:00
David Hewitt d895734499 change `PyDict::from_sequence` to take just `&PyAny` 2023-10-20 11:59:26 +01:00
David Hewitt d8a6f37fec
Merge pull request #3421 from davidhewitt/codspeed
try adding codspeed benchmarks
2023-10-20 09:14:41 +00:00
Adam Reichold 63e24df968
Merge pull request #3529 from jessekrubin/utiles2examples
docs: utiles added to examples of readme!
2023-10-20 06:02:19 +00:00
David Hewitt bf2c5a896b add codspeed benchmarks 2023-10-19 21:36:05 +01:00