Commit graph

3511 commits

Author SHA1 Message Date
R2D2 3cfc76ae93 Reworked struct error messages to use the of an error rather than concatenating all error messages 2021-07-31 23:21:07 +02:00
R2D2 403d882d6c Merge branch 'main' of https://github.com/PyO3/pyo3 into enhanced_extract_type_errors 2021-07-31 21:21:10 +02:00
R2D2 a42447bfe2 Small refactor 2021-07-31 21:20:57 +02:00
Jacob Turner 363383ea84
Update pyo3-macros-backend/src/from_pyobject.rs
Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
2021-07-31 20:38:44 +02:00
David Hewitt 8e7737d099
Merge pull request #1744 from davidhewitt/no-profile
pyo3-pytests: don't set profile in Cargo.toml
2021-07-31 18:55:52 +01:00
David Hewitt ba0ba14fb8 pyo3-pytests: don't set profile in Cargo.toml 2021-07-31 16:52:30 +01:00
David Hewitt fb744e1695
Merge pull request #1743 from davidhewitt/improve-readme
readme: slightly improve getting started notes
2021-07-31 16:51:58 +01:00
David Hewitt 13f8953d1a readme: slightly improve getting started notes 2021-07-31 16:18:49 +01:00
David Hewitt e6d750ae5d
Merge pull request #1745 from davidhewitt/rust-1.54
rust: updates for rust & clippy 1.54
2021-07-31 16:01:21 +01:00
David Hewitt 4c5aee92d5 pycell: fix calculation of dictoffset on 32-bit Windows 2021-07-31 15:09:12 +01:00
David Hewitt 16e6f78d9c dev-deps: pin criterion to 0.3.4 2021-07-31 08:19:38 +01:00
David Hewitt ee9a1678d5 rust: updates for rust & clippy 1.54 2021-07-31 08:19:38 +01:00
David Hewitt 32414676c3
Merge pull request #1740 from davidhewitt/mod-tests
testing: use `mod tests` instead of `mod test`
2021-07-26 19:31:36 +01:00
David Hewitt a7244b864d testing: use mod tests instead of mod test 2021-07-26 18:19:53 +01:00
David Hewitt bbe0e846b0
Merge pull request #1738 from davidhewitt/latest-links
docs: use pyo3.rs/latest instead of pyo3.rs/main
2021-07-24 17:57:03 +01:00
David Hewitt 4a71f82099
Merge pull request #1724 from davidhewitt/err-new-no-gil
err: don't use with_gil internally in PyErr::new()
2021-07-24 10:13:50 +01:00
messense 1a0f46b35d
Merge pull request #1737 from davidhewitt/pypy-buffer
pypy: fix FFI definition of Py_Buffer
2021-07-24 16:28:08 +08:00
David Hewitt c09947a61c err: don't use with_gil internally in PyErr::new() 2021-07-24 08:51:17 +01:00
David Hewitt dc58815143 benches: add bench_err 2021-07-24 08:50:35 +01:00
David Hewitt 3794aab11f docs: use pyo3.rs/latest instead of pyo3.rs/main 2021-07-24 08:47:02 +01:00
David Hewitt 243e5eea13
Merge pull request #1734 from davidhewitt/latest-tag
guide: add latest symlink
2021-07-24 08:38:07 +01:00
David Hewitt d46d3265cb pypy: fix FFI definition of Py_Buffer 2021-07-24 08:37:22 +01:00
Ivan Carvalho bd0e0d808f
Add optional support for conversion from indexmap::IndexMap (#1728)
* Add support to IndexMap

* Fix indexmap version to 1.6.2

* Remove code duplication by mistake

* Fix ambiguity in test

* Minor change for doc.rs

* Add to lib.rs docstring

* Add indexmap to conversion table

* Add indexmap flag in docs.rs action

* Add indexmap feature to CI

* Add note in changelog

* Use with_gil in tests

* Move code to src/conversions/indexmap.rs

* Add PR number to CHANGELOG

Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>

* Add round trip test

* Fix issue in MSRV Ubuntu build

* Fix Github workflow syntax

* Yet Another Attempt to Fix MSRV Ubuntu build

* Specify hashbrown to avoid ambiguity in CI

* Add suggestions

* More flexible version for indexmap

* Add documentation

* Address PR comments

* Export indexmap for docs

Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
2021-07-22 08:15:26 +01:00
Eric Arellano 9ab7b1fad1
Rewrite module.md for clarity and add tip on code organization (#1693)
* Rewrite `module.md` for clarity and add tip on code organization

* Add section on how to build the guide + add workaround proposed by David

* Make more clear references to #1709
2021-07-22 08:10:32 +01:00
David Hewitt fccea9ff7c guide: add latest symlink 2021-07-22 08:08:50 +01:00
David Hewitt f72a9657d3
Merge pull request #1735 from davidhewitt/mdbook-0.4.10
guide: bump mdbook to 0.4.10
2021-07-21 07:52:41 +01:00
David Hewitt 6e0fb9e3a1 guide: bump mdbook to 0.4.10 2021-07-20 08:54:21 +01:00
messense 7957521b78
Merge pull request #1732 from davidhewitt/no-bench-alert
bench: don't alert on CI benchmark changes
2021-07-20 08:40:37 +08:00
David Hewitt acede283e1 bench: don't alert on CI benchmark changes 2021-07-19 20:56:43 +01:00
David Hewitt 614fab7a15
Merge pull request #1729 from davidhewitt/print-config
pyo3-build-config: add print-config helper
2021-07-19 20:36:11 +01:00
David Hewitt bac1345f4d
Merge pull request #1730 from davidhewitt/pypy-pytests
pyo3-pytests: cover more tests on PyPy
2021-07-19 18:16:06 +01:00
David Hewitt 00d2d080ed
Merge pull request #1731 from davidhewitt/buf_and_str
pyo3-pytests: remove memory leak test
2021-07-19 18:15:48 +01:00
David Hewitt ab4348c30b pyo3-pytests: remove memory leak test 2021-07-18 20:04:46 +01:00
David Hewitt 95cb5c6ef1 pyo3-pytests: cover more tests on PyPy 2021-07-18 19:30:30 +01:00
David Hewitt 3ba58fedb1 pyo3-build-config: add print-config helper 2021-07-17 12:44:20 +01:00
David Hewitt 5f2627aac2
Merge pull request #1725 from davidhewitt/build-errors
pyo3-build-config: improve error messaging
2021-07-17 09:59:26 +01:00
messense 068946c978
Merge pull request #1727 from nihaals/fix-badge
Fix crates.io badge
2021-07-16 10:41:02 +08:00
David Hewitt 15a193da21
Merge pull request #1726 from alex/patch-1
workaround an issue that causes function arguments to show up as if they are uncovered
2021-07-15 20:03:59 +01:00
Nihaal Sangha 0a454f7add
Replace crates.io badge with shields.io 2021-07-15 17:41:09 +01:00
Alex Gaynor a941b2c65f Added a changelog entry 2021-07-15 07:14:44 -04:00
David Hewitt 8107c86682
Merge pull request #1710 from mejrs/pyt
Improve Py<...> documentation
2021-07-15 08:23:17 +01:00
Alex Gaynor 82697bfec0
workaround an issue that causes function arguments to show up as if they are uncovered
https://github.com/rust-lang/rust/issues/86972 describes this issue in some detail and links to a minimal reproducer

making this change, and this change alone, resolves the coverage issues
2021-07-14 23:38:08 -04:00
David Hewitt 2fbe57d629 pyo3-build-config: improve error messaging 2021-07-14 22:13:58 +01:00
messense 584fc6fe42
Merge pull request #1722 from davidhewitt/pymodule-doc-hidden
macros-backend: don't error on #[doc(hidden)]
2021-07-09 10:41:55 +08:00
David Hewitt d11943ab6d macros-backend: don't error on #[doc(hidden)] 2021-07-08 23:41:24 +01:00
David Hewitt 4001fdf56f
Merge pull request #1716 from PyO3/release-0.14.1
release: 0.14.1
2021-07-04 22:23:06 +01:00
David Hewitt 3f8c4ad38e release: 0.14.1 2021-07-04 16:49:36 +01:00
David Hewitt fde4211081
Merge pull request #1707 from nw0/doc
Document some undocumented items
2021-07-04 16:35:17 +01:00
David Hewitt 4ed0383e41
Merge pull request #1713 from PyO3/pypy_macros
PyPy: the PyList/Tuple_GET/SET macros are defined as functions
2021-07-04 15:59:56 +01:00
Georg Brandl f7235482eb PyPy: the PyList_GET/SET macros are defined as functions, the PyTuple_ ones do not exist 2021-07-04 15:54:40 +02:00