David Hewitt
ace68b3044
Merge pull request #1936 from davidhewitt/stable-python-3.10
...
ci: use stable Python 3.10
2021-10-20 09:13:50 +01:00
David Hewitt
eacc70310a
ci: use stable Python 3.10
2021-10-20 07:55:48 +01:00
David Hewitt
465e8372ed
Merge pull request #1937 from davidhewitt/loosen-trybuild-dep
...
deps: loosen trybuild requirement to allow versions newer than 1.0.49
2021-10-20 07:46:23 +01:00
David Hewitt
9bbc49875d
deps: loosen trybuild requirement to allow versions newer than 1.0.49
2021-10-19 23:25:04 +01:00
Azat Ibrakov
7349513f5b
Add fallback for __mod__
magic method ( #1934 )
...
* Add fallback for `__mod__` magic method
* Add 'CHANGELOG' entry
* Complete tests
2021-10-19 23:14:26 +01:00
Ashley Anderson
bf26daec2d
Positional-only args ( #1925 )
...
* Add support for positional-only args
* Update changelog. Add a few more tests. Run rust-fmt.
* Fix test.
* Fix tests again.
* Update CHANGELOG.md to link PR instead of issue
* Update guide to mention positional-only params
* Add unreachable!() per code review
* Update and expand tests for pos args.
* Fix tests, lint, add UI tests.
Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
2021-10-19 23:13:27 +01:00
David Hewitt
9d846c3ddb
Merge pull request #1926 from davidhewitt/ci-tidy
...
ci: use suppress_build_script_link_lines config in check jobs
2021-10-17 12:49:03 +01:00
David Hewitt
bc0f2bfbeb
ci: use suppress_build_script_link_lines config in check jobs
2021-10-17 11:30:25 +01:00
David Hewitt
5a1660f7c8
Merge pull request #1924 from davidhewitt/rtruediv-rfloordiv
...
pymethods: support __rtruediv__ and __rfloordiv__
2021-10-17 10:00:11 +01:00
David Hewitt
fbb5e3cd91
Merge pull request #1901 from LaurentMazare/closures
...
Support for wrapping rust closures as python functions
2021-10-17 09:46:26 +01:00
David Hewitt
212404bc23
pymethods: support __rtruediv__ and __rfloordiv__
2021-10-17 08:33:46 +01:00
laurent
2042906832
pycfunction: add PyCFunction::new_closure rust defined closures
2021-10-17 07:59:50 +01:00
Chris Laplante
3b94f4b70c
Add anyhow-integration
feature which implements From<anyhow::Error> for PyErr ( #1822 )
...
* Add 'anyhow' feature which provides simple From<anyhow::Error> for PyErr impl
This makes it possible to use anyhow::Result<T> as the return type for
methods and functions exposed to Python.
The current implementation just stringifies the anyhow::Error before
shoving it into a PyRuntimeError. Conversion back to the anyhow::Error
is not possible, but it is better than nothing.
Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
* Document `anyhow` feature in the guide
Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
* update changelog to document anyhow feature
* WIP adding tests
* Finish up anyhow feature
* Fix formatting
* Fix tests
* Fix tests
* Apply review suggestions
Co-authored-by: Bruno Kolenbrander <59372212+mejrs@users.noreply.github.com>
Co-authored-by: mejrs <brunokolenbrander@hotmail.com>
2021-10-17 07:54:29 +01:00
David Hewitt
6cc53d2afe
Merge pull request #1922 from mejrs/supprt_msrv
...
Pin transitive dev-dependencies to msrv
2021-10-17 07:48:50 +01:00
mejrs
8ab4cf8d8f
Remove redundant cargo update
2021-10-17 00:11:15 +02:00
mejrs
d3771e5973
Pin transitive dependencies to msrv
2021-10-15 03:07:24 +02:00
David Hewitt
7087ee1183
Merge pull request #1919 from davidhewitt/cleanup-ffi-comments
...
ffi: remove very outdated comments
2021-10-14 23:20:46 +01:00
David Hewitt
39b1cb6d44
ffi: remove very outdated comments
2021-10-14 22:42:53 +01:00
Bruno Kolenbrander
8a57fe2d20
Clean up doctests, deny some lints ( #1900 )
...
* Clean up doctests, deny some lints
* Apply suggestions from review.
* replace \" with '
* Fix some more doc examples
* Fix formatting
* Fix some more things
* Remove unused parentheses
* Only test class sig on supported abi/platforms
* Only test class signature on correct versions
* Fix tests to compile on msrv
* msrv strikes yet again
* Add feedback
* Pin `half` to 1.7.1 on msrv
2021-10-14 22:15:25 +01:00
Bruno Kolenbrander
ae873698d4
Implement eyre
feature ( #1893 )
...
* Implement `eyre` feature
* Punctuation
* Add `eyre` entry in changelog
* Add `eyre` feature entry to guide
* Set eyre upper bound and move comment back
* Add eyre feature to docs.rs metadata
* Finish up review suggestions
* Update CHANGELOG.md
Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
2021-10-13 22:36:06 +00:00
David Hewitt
41bd03790a
Merge pull request #1907 from aganders3/fix_tests
...
Fix additional tests after trybuild update
2021-10-13 21:35:59 +01:00
Ashley Anderson
007c0396d2
Add rust: stable to pypy3.6-macos-10.15 special case build
2021-10-13 11:05:53 -04:00
Ashley Anderson
fed90c467e
Test PyPy3.6 on macos-10.15 instead of macos-latest (which is now macos-11)
2021-10-13 09:39:03 -04:00
Ashley Anderson
e398b129c8
Merge branch 'main' into fix_tests
2021-10-13 09:27:06 -04:00
David Hewitt
c108feb2ed
Merge pull request #1909 from davidhewitt/ci-pip-21.3
...
examples: use pip 21.3
2021-10-13 08:01:21 +01:00
David Hewitt
acb3879fc2
Merge pull request #1908 from gi0baro/sysconfigdata-match-cp37m
...
review sysconfigdata filename match rules to support cp37m
2021-10-13 00:06:01 +01:00
David Hewitt
da885f696d
examples: use pip 21.3
2021-10-13 00:05:33 +01:00
Giovanni Barillari
c06058888f
review sysconfigdata filename match rules to support cp37m
2021-10-12 23:41:26 +01:00
Ashley Anderson
a21e57a9d3
Fix additional tests after trybuild update
2021-10-11 20:52:24 -04:00
Bruno Kolenbrander
49570db3fc
chore: pin trybuild version ( #1906 )
...
chore: pin trybuild version to 1.0.49
2021-10-10 17:22:29 +02:00
David Hewitt
4ea03a3159
Merge pull request #1898 from mejrs/hygiene
...
Add pymethods hygiene tests
2021-10-04 08:37:00 +01:00
David Hewitt
72681be080
Merge pull request #1895 from davidhewitt/example-project-docs
...
examples: export __doc__ in example projects
2021-10-04 08:31:32 +01:00
mejrs
c78b239586
Fix import
2021-10-03 02:30:13 +02:00
mejrs
22b9519f89
Avoid calling IntoIter on array in msrv
2021-10-03 02:09:53 +02:00
mejrs
31589f09e3
Skip pymethods hygiene on multiple-pymethods
2021-10-03 01:41:22 +02:00
Georg Brandl
05092e7fa3
Merge pull request #1899 from Ben-KC/patch-1
2021-10-02 22:49:16 +02:00
Ben Kooiman-Cox
f0ff4156bb
Add missing preposition in docs
2021-10-02 15:49:49 -04:00
mejrs
af67acb644
Fix ci and add more pymodule tests
2021-10-02 21:04:22 +02:00
mejrs
e3477c3cb7
Add to and restructure hygiene tests
2021-10-02 20:44:32 +02:00
mejrs
ed991d23a3
Fix ambiguous imports
2021-10-02 19:00:51 +02:00
David Hewitt
00ea4bccce
examples: export __doc__ in example projects
2021-10-01 09:05:58 +01:00
David Hewitt
e4b98408f5
Merge pull request #1892 from davidhewitt/exceptions-coverage
...
exceptions: add test coverage for all exceptions
2021-09-30 22:16:51 +01:00
David Hewitt
c986b5d4ae
Merge pull request #1889 from davidhewitt/py310
...
packaging: formal support for Python 3.10
2021-09-29 19:36:52 +01:00
David Hewitt
53582177fd
exceptions: add test coverage for all exceptions
2021-09-29 19:34:25 +01:00
David Hewitt
3adacaed2c
Merge pull request #1890 from mejrs/err2
...
Document imported exceptions
2021-09-29 19:32:19 +01:00
David Hewitt
03ba4a5597
ffi: use _Py_NewRef for clarity
2021-09-29 08:02:08 +01:00
David Hewitt
7c4503e0ca
ffi: updates for Python 3.10
...
Co-authored-by: Bruno Kolenbrander <59372212+mejrs@users.noreply.github.com>
2021-09-29 08:02:08 +01:00
mejrs
7818e4866c
Document imported exceptions
2021-09-27 00:31:09 +02:00
David Hewitt
a5d0aa777c
py310: add abi3-py310 feature
2021-09-26 16:21:35 +01:00
David Hewitt
16ac7d481d
Merge pull request #1844 from davidhewitt/mapping-type
...
types: add PyMapping
2021-09-26 14:55:59 +01:00