Commit Graph

4758 Commits

Author SHA1 Message Date
David Hewitt 4a68273b17
Merge pull request #2642 from davidhewitt/doctest-guide-function
guide: doctest function/ subpages
2022-09-27 19:28:02 +01:00
messense da989ecd3f
Merge pull request #2643 from davidhewitt/pymodule-implementation-detail
docs: note that `#[pymodule]` will create hidden module, like `#[pyfunction]`
2022-09-28 00:10:20 +08:00
David Hewitt 9257de40fd docs: note that `#[pymodule]` will create hidden module, like `#[pyfunction]` 2022-09-27 07:55:21 +01:00
David Hewitt 372176630e guide: doctest function/ subpages 2022-09-27 07:52:14 +01:00
David Hewitt a38a75da34
Merge pull request #2641 from smheidrich/fix-types-docs-topyobject-links
docs: Fix links to ToPyObject in PyLong and PyFloat docs
2022-09-27 07:41:41 +01:00
Bruno Kolenbrander fad5f6a07a
Merge pull request #2639 from mrob95/err-self-typo
docs: fixed typo in error_handling.md
2022-09-26 23:16:26 +02:00
David Hewitt 1d47286c18
Merge pull request #2640 from smheidrich/fix-guide-mult-py-build-config-dep-advice
docs: Fix pyo3-build-config dependency advice in guide
2022-09-25 09:24:46 +01:00
smheidrich bc00e9ff12 Improve PyLong/PyFloat doc links to PyAny::extract 2022-09-24 20:59:04 +02:00
smheidrich 9572220f6c Fix links to ToPyObject in types docs 2022-09-24 20:08:43 +02:00
smheidrich 2dd3c6c71f Document needing resolve-config for pyo3 cfgs 2022-09-24 16:18:05 +02:00
smheidrich a731c2ae60 Fix pyo3-build-config version in docs 2022-09-24 15:50:41 +02:00
Mike Roberts 4275abff0c docs: fixed typo in error_handling.md 2022-09-24 14:03:13 +01:00
messense 86ce4d1a13
Add git repository and edit urls to user guide (#2635) 2022-09-23 00:56:25 +00:00
David Hewitt 55740bb336
Merge pull request #2637 from davidhewitt/rust-1.64
rust: updates for 1.64
2022-09-22 21:34:31 +02:00
David Hewitt 8102ad1a1b rust: updates for 1.64 2022-09-22 21:03:34 +02:00
David Hewitt 486f54f070
Merge pull request #2636 from Psykopear/fix-chrono-proptest
Fixed wrong proptest in chrono conversion module
2022-09-22 15:20:03 +02:00
Federico Dolce eced1593f5 Fixed wrong proptest in chrono conversion module 2022-09-22 14:48:55 +02:00
David Hewitt c5ba1f0632
pyclass: better error and explanation why lifetimes are disallowed (#2633)
* pyclass: better error and explanation why lifetimes are disallowed

* extend detail on lifetimes
2022-09-22 11:14:06 +02:00
David Hewitt 0e5e39e63d
remove need to build xtask from CI (#2634)
* xtask: move coverage implementation to nox

* move pytests from xtask to nox in ci

* use --package instead of --manifest-path for tests

* write github actions groups to sys.stderr
2022-09-22 11:12:59 +02:00
Federico Dolce 63f7df905d
Add chrono 0.4 integration (#2612)
Co-authored-by: Ivan Tham <pickfire@riseup.net>
Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
2022-09-22 09:00:09 +02:00
David Hewitt 81a79778a2
Merge pull request #2631 from PyO3/relax-extract-sequence-pre-0.17
Relax extract_sequence to the status quo before 0.17 was released
2022-09-21 11:52:34 +02:00
David Hewitt a0be791577
Merge pull request #2630 from davidhewitt/option-pyclass-arg
pyfunction: fix compile error for Option<&T> argument with a default
2022-09-21 11:44:55 +02:00
Adam Reichold df933c53ca Pin once_cell to fix MSRV build. 2022-09-21 10:15:16 +02:00
Adam Reichold 0c30cba57a Add changelog entry detailing which behaviour change this does and does not revert. 2022-09-21 09:50:57 +02:00
Adam Reichold b6c6f7f2b6 Fix #2615 by relaxing the type check in extract_sequence.
This allows us to handle types like one-dimensional NumPy arrays which implement
just enough of the sequence protocol to support the extract_sequence function
but are not an instance of the sequence ABC.
2022-09-21 09:47:05 +02:00
Adam Reichold b2da5b20b1 Add a Python test exploring from which types a Vec can be extracted. 2022-09-21 09:47:05 +02:00
David Hewitt c445eba28d pyfunction: fix compile error for Option<&T> argument with a default 2022-09-20 15:44:55 +02:00
Mario Rugiero d72989f986
Enable BigInt conversion for PyPy (#2626)
* Enable bigint conversion for PyPy

* Update src/conversions/num_bigint.rs

* Add a changelog entry for PyPy `num-bigint` support

Co-authored-by: messense <messense@icloud.com>
2022-09-20 18:55:14 +08:00
messense 371c821c60
Merge pull request #2629 from messense/check-changelog
Enforce changelog entry for PR, take 2
2022-09-20 13:06:09 +08:00
messense 0008da3b01
Enforce changelog entry for PR 2022-09-20 10:26:22 +08:00
David Hewitt 54d47326c6
Merge pull request #2622 from SquidDev/hotfix/enum-eq
Some improvements to __richcmp__ on enums
2022-09-19 17:37:00 +02:00
Jonathan Coates 73242f0ee3
Add release notes 2022-09-19 14:21:28 +01:00
David Hewitt c1cb922c37
Merge pull request #2627 from PyO3/davidhewitt-patch-2
readme: correct wording
2022-09-19 15:17:31 +02:00
David Hewitt 760cf7a160
readme: correct wording 2022-09-19 14:34:44 +02:00
Bruno Kolenbrander e3b0b68224
Merge pull request #2621 from prehner/add_feos
Add FeOs to examples
2022-09-18 18:07:15 +02:00
Philipp Rehner 1dbbaafa65 Add FeOs to examples 2022-09-18 08:45:49 +02:00
Jonathan Coates 26a9603519 Some improvements to __richcmp__ on enums
- Implement __ne__ as well as __eq__.
 - Return NotImplemented when types cannot be converted, rather than
   throwing.
 - Compare the integer ids inside the __eq__/__ne__ implementation.
   Previously a match block was generated.
2022-09-16 15:30:56 +01:00
messense bdc1468baf
Merge pull request #2625 from AdilZouitine/main
Add river on the examples
2022-09-16 20:51:41 +08:00
Adil Zouitine 6cb22e4f75
Add river on the examples 2022-09-16 09:30:47 +02:00
David Hewitt 3f4a87cd5f
Merge pull request #2617 from PyO3/xtask-drop-workspace
Selecting the whole workspace conflicts with package selection in llvm_cov_command.
2022-09-14 21:49:03 +01:00
Adam Reichold 370319e80d Fix itertools version to keep MSRV builds working. 2022-09-13 20:06:46 +02:00
Adam Reichold 2e73a19c43 Selecting the whole workspace conflicts with package selection in llvm_cov_command. 2022-09-13 19:58:00 +02:00
David Hewitt 045df99061
Merge pull request #2616 from davidhewitt/changelog-unreleased
CHANGELOG: add link for unreleased changes
2022-09-13 18:20:04 +01:00
David Hewitt 0cc393716f CHANGELOG: add link for unreleased changes 2022-09-13 07:50:30 +01:00
David Hewitt 7b3ad2b718
Merge pull request #2607 from davidhewitt/towncrier
use towncrier to generate CHANGELOG
2022-09-11 09:00:49 +01:00
David Hewitt 269a671283
Merge pull request #2614 from ryanrussell/docs-codeblock-colors
docs: codeblock labels to `rust,ignore` format
2022-09-11 08:46:38 +01:00
Ryan Russell 04a7b5f14d docs: codeblock labels to `rust,ignore` format
Signed-off-by: Ryan Russell <git@ryanrussell.org>
2022-09-10 11:21:04 -05:00
David Hewitt bb99c98ec1 use towncrier to generate CHANGELOG 2022-09-08 07:58:53 +01:00
David Hewitt 8797a6f799
Merge pull request #2609 from davidhewitt/netlify-main-docs
netlify: fix main doc redirect
2022-09-07 08:53:14 +01:00
David Hewitt 58596ac631
Merge pull request #2588 from davidhewitt/require-docs
docs: require docs on all public APIs
2022-09-07 08:23:59 +01:00