Bruno Kolenbrander
f5fee94afc
Scope macro imports more tightly ( #4088 )
2024-04-23 18:01:41 +00:00
Icxolu
5d2f5b5702
feature gate deprecated APIs for `PyDict` ( #4108 )
2024-04-23 05:48:27 +00:00
Georg Brandl
c2ac9a98e2
fix vectorcall argument handling ( #4104 )
...
Fixes #4093
- Make PY_VECTORCALL_ARGUMENTS_OFFSET a size_t like on CPython
- Remove the assert in PyVectorcall_NARGS and use checked cast
2024-04-22 08:56:39 +00:00
Icxolu
da2d1aa8b4
feature gate deprecated APIs for `PyString` ( #4101 )
2024-04-22 07:20:32 +00:00
Icxolu
b0ad1e10aa
feature gate deprecated APIs for `PyTuple` ( #4107 )
2024-04-22 07:19:01 +00:00
David Hewitt
947b372dcc
change `PyAnyMethods::dir` to be fallible ( #4100 )
2024-04-19 19:35:52 +00:00
David Hewitt
cd28e1408e
add `#[track_caller]` to all `Py`/`Bound`/`Borrowed` methods which panic ( #4098 )
2024-04-19 11:44:36 +00:00
Icxolu
d42c00d21d
feature gate deprecated APIs for `PySet` ( #4096 )
2024-04-19 07:24:26 +00:00
dependabot[bot]
b11174e96d
Update heck requirement from 0.4 to 0.5 ( #3966 )
...
* Update heck requirement from 0.4 to 0.5
---
updated-dependencies:
- dependency-name: heck
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* newsfragment
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: David Hewitt <mail@davidhewitt.dev>
2024-04-18 10:22:34 +00:00
David Hewitt
2c205d4586
release notes for 0.21.2 ( #4091 )
2024-04-18 08:59:02 +00:00
dependabot[bot]
e64eb72903
build(deps): update chrono-tz requirement from >= 0.6, < 0.9 to >= 0.6, < 0.10 ( #4061 )
...
* build(deps): update chrono-tz requirement from >= 0.6, < 0.9 to >= 0.6, < 0.10
Updates the requirements on [chrono-tz](https://github.com/chronotope/chrono-tz ) to permit the latest version.
- [Release notes](https://github.com/chronotope/chrono-tz/releases )
- [Changelog](https://github.com/chronotope/chrono-tz/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono-tz/compare/v0.6.0...v0.9.0 )
---
updated-dependencies:
- dependency-name: chrono-tz
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* newsfragment
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: David Hewitt <mail@davidhewitt.dev>
2024-04-18 08:58:51 +00:00
Jacob Zhong
03c50a1839
Change the types of `PySliceIndices` and `PySlice::indices ( #3761 )
...
* Change the type of `PySliceIndices::slicelength` and `PySlice::indices()`
* Fix example
* Fix fmt
2024-04-18 07:33:07 +00:00
Bruno Kolenbrander
9761abf3a5
Specify higher target-lexicon version ( #4087 )
2024-04-17 01:07:11 +00:00
Icxolu
03f59eaf45
fix declarative module compile error with `create_exception!` ( #4086 )
...
* fix declarative module compile error with `create_exception!`
* add newsfragment
2024-04-16 20:12:18 +00:00
David Matos
2ad2a3f208
docs: Make contributing.md slightly more clear for newer contributors ( #4080 )
...
* docs: Make contributing.md slightly more clear for newer contributors
* Remove accidental backticks
Rearrange overview of commands
* Placed on wrong line
* Add extra overview command
2024-04-16 08:17:41 +00:00
David Hewitt
a5201c04af
Deprecate the `PySet::empty` gil-ref constructor ( #4082 )
...
* Deprecate the `PySet::empty` gil-ref constructor
* add newsfragment
2024-04-14 21:38:40 +00:00
David Matos
8ed5c17b93
Allow use of scientific notation on rust decimal ( #4079 )
...
* Allow use of scientific notation on rust decimal
* Add newsfragment
* Pull out var
* Fix clippy warning
* Modify let bindings location
2024-04-14 20:07:17 +00:00
Icxolu
cc7e16f4d6
Refactoring of `FnArg` ( #4033 )
...
* refactor `FnArg`
* add UI tests
* use enum variant types
* add comment
* remove dead code
* remove last FIXME
* review feedback davidhewitt
2024-04-14 14:19:57 +00:00
Adam Reichold
721100a9e9
Suppress non_local_definitions lint as we often want the non-local effects in macro code ( #4074 )
...
* Resolve references to legacy numerical constants and use the associated constants instead
* Suppress non_local_definitions lint as we often want the non-local effects in macro code
2024-04-13 12:59:44 +00:00
Adam Reichold
4e5167db42
Extend guide on interaction between method receivers and lifetime elision. ( #4069 )
2024-04-13 07:57:13 +00:00
messense
30348b4d3f
Link libpython for AIX target ( #4073 )
2024-04-13 07:43:06 +00:00
Icxolu
ee5216f406
fix declarative-modules compile error ( #4054 )
...
* fix declarative-modules compile error
* add newsfragment
2024-04-12 06:34:27 +00:00
Icxolu
c8b59d7117
add `#[doc(hidden)]` to the Rust module created by `#[pymodule]` ( #4067 )
...
* add `#[doc(hidden)]` to the Rust module created by `#[pymodule]`
* add newsfragment
2024-04-12 06:34:08 +00:00
Liam
9a6b1962d3
Minor: Fix a typo in Contributing.md ( #4066 )
2024-04-11 21:11:51 +00:00
dependabot[bot]
631c25f2f9
build(deps): bump peaceiris/actions-gh-pages from 3 to 4 ( #4062 )
...
Bumps [peaceiris/actions-gh-pages](https://github.com/peaceiris/actions-gh-pages ) from 3 to 4.
- [Release notes](https://github.com/peaceiris/actions-gh-pages/releases )
- [Changelog](https://github.com/peaceiris/actions-gh-pages/blob/main/CHANGELOG.md )
- [Commits](https://github.com/peaceiris/actions-gh-pages/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: peaceiris/actions-gh-pages
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-11 21:08:44 +00:00
Jeong, Heon
47f9ef4174
Fix typo ( #4052 )
...
Fix incorrect closing brackets
2024-04-11 21:07:56 +00:00
Joseph Perez
2f0869a6d6
fix: allow impl of Ungil for deprecated PyCell in nightly ( #4053 )
2024-04-06 22:36:52 +00:00
Icxolu
7a00b4d357
add descriptive error msg for `__traverse__` receivers other than `&self` ( #4045 )
...
* add descriptive error msg for `__traverse__` receivers other than `self`
* add newsfragment
* improve error message
2024-04-04 19:08:51 +00:00
David Hewitt
a4aea230ed
fix compile error for multiple async method arguments ( #4035 )
2024-04-02 17:43:51 +00:00
David Hewitt
c1f11fb4bd
release: 0.21.1 ( #4032 )
2024-04-01 18:51:58 +00:00
David Hewitt
8cabd2619c
docs: updates to guide for PyO3 0.21 feedback ( #4031 )
...
* docs: add notes on smart pointer conversions
* guide: add more notes on `.extract::<&str>()` to migration guide
2024-04-01 15:18:57 +00:00
Icxolu
8f87b8636d
refactor `#[setter]` argument extraction ( #4002 )
2024-04-01 12:10:18 +00:00
Icxolu
63ba371db0
added various std traits for `PyBackedStr` and `PyBackedBytes` ( #4020 )
...
* added various std traits for `PyBackedStr` and `PyBackedBytes`
* add newsfragment
* add tests
2024-04-01 07:10:40 +00:00
David Hewitt
336b1c982b
add `import_exception_bound!` macro ( #4027 )
...
* add `import_exception_bound!` macro
* newsfragment and tidy up
2024-03-31 19:55:31 +00:00
Weijie Guo
3af9a1f4e0
docs: fix example in types.md ( #4028 )
2024-03-31 08:03:38 +00:00
David Hewitt
cff4aa3cc8
ci: defer test-debug to the merge queue ( #4023 )
2024-03-30 23:26:34 +00:00
David Hewitt
9d932c1061
add `#[inline]` hints on many `Bound` and `Borrowed` methods ( #4024 )
2024-03-30 22:10:21 +00:00
David Hewitt
22e8dd10e1
add benchmark for class / method calls ( #4016 )
2024-03-30 20:29:39 +00:00
Weijie Guo
74d9d23ba0
async method should allow args not only receiver ( #4015 )
...
* async method should allow args not only receiver
* add changelog md
2024-03-30 08:48:19 +00:00
Rikus Honey
4d033c4497
Fix broken hyperlink to types.md ( #4018 )
2024-03-30 07:39:00 +00:00
geo7
0e093a5911
Update getting-started.md ( #4004 )
...
Missing word
2024-03-29 22:45:47 +00:00
Alex Gaynor
de03ca270a
Remove dead code in macros backend ( #4011 )
2024-03-29 21:28:08 +00:00
David Hewitt
c6f25e42a2
ci: relax check in pyobject_drop test ( #4014 )
2024-03-29 15:51:38 +00:00
Alex Gaynor
ae3ac7d872
Fixed error string when failing to import an exception ( #4012 )
2024-03-29 15:49:50 +00:00
Alex Gaynor
60e3f44dcf
Ensure all arguments to _run are strings ( #4013 )
...
Otherwise you get errors like https://github.com/PyO3/pyo3/actions/runs/8480723060/job/23236947935?pr=4012
2024-03-29 14:16:45 +00:00
David Hewitt
cf74624de9
refactor to remove add_to_module functions from generated code ( #4009 )
...
* refactor to remove add_to_module functions from generated code
* mrsv, newsfragment
* clippy
2024-03-29 11:54:33 +00:00
David Hewitt
b053e83c08
implement `Send` and `Sync` for `PyBackedStr` and `PyBackedBytes` ( #4007 )
2024-03-29 11:28:42 +00:00
Icxolu
dd1710256d
use `extract_argument` for `#[setter]` extraction ( #3998 )
...
* use `extract_argument` for `#[setter]` extraction
* add newsfragment
2024-03-27 15:41:04 +00:00
David Hewitt
bcfc848703
docs: fix link in CHANGELOG ( #4001 )
2024-03-27 11:48:56 +00:00
tison
7c03d65cda
chore: add Python scripting in database example ( #3999 )
2024-03-27 11:16:22 +00:00