Commit graph

4108 commits

Author SHA1 Message Date
mejrs e569e5074a Remove useless allow(lint)'s 2022-01-21 01:08:36 +01:00
David Hewitt bc0cfd6fc6 ci: add Python 3.11 dev builds 2022-01-20 23:35:07 +00:00
David Hewitt a0cf823d68
Merge pull request #2115 from aganders3/pyany-contains
Add 'contains' method to PyAny
2022-01-20 23:07:40 +00:00
Ashley Anderson 64c09d870c Update changelog. 2022-01-19 21:22:08 -05:00
Ashley Anderson 1fd3c6177a Add 'contains' method to PyAny impl. 2022-01-19 21:19:01 -05:00
David Hewitt 91648b2315
Merge pull request #2111 from aganders3/ci-pin-coverage
ci: pin rust nightly for coverage step
2022-01-19 22:09:59 +00:00
Ashley Anderson d58f143e5b Pin rust nightly to older version to work around bug in coverage. 2022-01-19 04:04:59 -05:00
Jakub Kołodziejczak 020488efee
docs: example how to include multiple Python files into the binary and at runtime (#2095) 2022-01-17 10:57:39 +01:00
David Hewitt a86bedb3d9
Merge pull request #2106 from messense/nox
Switch from tox to nox
2022-01-17 08:47:31 +00:00
David Hewitt ea6a44a58f add maturin to requirements-dev files 2022-01-17 08:19:54 +00:00
messense 081c8082cb Use --no-build-isolation 2022-01-17 10:02:03 +08:00
David Hewitt fa34de3024
Merge pull request #2101 from davidhewitt/always-track-caller
cleanup: always enable #[track_caller]
2022-01-16 19:52:58 +00:00
David Hewitt 1d50a7cca8 cleanup: always enable #[track_caller] 2022-01-16 19:16:36 +00:00
messense ce80b7e0f3 Switch from tox to nox 2022-01-17 00:24:33 +08:00
David Hewitt 2449df5732
Merge pull request #2100 from mejrs/fix-1.58_v2
chore: Fix 1.58 release
2022-01-14 07:46:22 +00:00
mejrs 46c458181d Fix more formatting 2022-01-13 23:13:47 +01:00
mejrs f7d7da9b7a Try fix the ci some more 2022-01-13 23:11:33 +01:00
mejrs de175119c1 Formatting 2022-01-13 22:48:36 +01:00
mejrs a8a10ac33d gate the changed errors 2022-01-13 22:43:51 +01:00
mejrs 2006ee0d21 Fix ci 2022-01-13 22:25:23 +01:00
Bruno Kolenbrander b7263ddf51
Merge branch 'PyO3:main' into main 2022-01-13 21:24:52 +01:00
David Hewitt edf03c12a7
Merge pull request #2093 from davidhewitt/positional-option
pyfunction: allow required positional after option
2022-01-11 22:06:09 +00:00
David Hewitt dc8032a5ff pyfunction: allow required positional after option 2022-01-11 00:44:41 +00:00
David Hewitt 43077dada3
Merge pull request #2091 from davidhewitt/use-pyfunction
pyfunction: allow wrap_pyfunction to work on imports (even cross-crate)
2022-01-09 19:53:03 +00:00
David Hewitt de8174684f pyfunction: allow wrap_pyfunction to work on imports (even cross-crate) 2022-01-07 08:43:05 +00:00
David Hewitt 2cee7feaaf
Merge pull request #2083 from aviramha/magic_methods
verify py method args count
2022-01-07 00:13:05 +00:00
Aviram Hassan cbfb5acc43
fix guide 2022-01-06 10:02:53 +02:00
Aviram Hassan 9ae31f2b87
fix tests 2022-01-06 09:59:10 +02:00
David Hewitt a9b98b7433 pymethods: __ipow__ always receive None on Python 3.7 2022-01-04 22:59:08 +00:00
David Hewitt e01add5f7e
Merge pull request #2087 from aviramha/contributing_improvements
Add setting up a dev environment notes
2022-01-03 08:40:49 +00:00
David Hewitt be70e5441b
Merge pull request #2085 from davidhewitt/opt-argument-extraction
opt: move fastcall boilerplate out of generated code
2022-01-03 08:13:31 +00:00
Aviram Hassan 47993e1e81
Add setting up a dev environment notes 2022-01-03 10:00:39 +02:00
Aviram Hassan 50659b6b02
__ipow__ now supports modulo argument on Python 3.8+.
`pyo3-macros-backend` is now compiled with PyO3 cfgs to enable different magic method definitions based on version.
Add check for correct number of arguments on magic methods.
2022-01-03 09:53:56 +02:00
David Hewitt 20d1139978
Merge pull request #2066 from davidhewitt/buffer-pymethods
pymethods: support buffer protocol
2022-01-03 00:17:18 +00:00
David Hewitt 1a782ce4db opt: move fastcall boilerplate out of generated code 2022-01-03 00:07:32 +00:00
David Hewitt 5159e0524c
Merge pull request #2086 from CarlKCarlK/patch-1
Update README.md
2022-01-03 00:01:40 +00:00
Carl Kadie 5f1d4a9f5c
Update README.md
A year ago, I upgraded our Python bioinformatics package from C++ to Rust/PyO3. It worked great! I suggest adding links to the project and a (free) article about lessons learned from the process. I'm especially happy with the ability to use Rayon and Rust generics.
2022-01-01 12:15:31 -08:00
David Hewitt cf965155f4 pymethods: support buffer protocol 2021-12-30 15:48:55 +00:00
David Hewitt 2503a2dd5e
Merge pull request #2082 from davidhewitt/opt-create-type-object
opt: less generated code for `#[pyclass]` creation
2021-12-30 15:34:24 +00:00
David Hewitt e33b3e6a5b opt: don't emit T::dict_offset and T::weakref_offset without attributes 2021-12-30 14:57:27 +00:00
David Hewitt 807e126178 pyclass: no need to try inherit base dict and weaklist 2021-12-30 14:17:58 +00:00
David Hewitt 90e8ef79e2 opt: reduce generated code for type object creation 2021-12-30 14:17:58 +00:00
David Hewitt 24eea5db9a
Merge pull request #2081 from davidhewitt/wrap-paths
macros: accept paths in wrap_x macros
2021-12-30 14:00:48 +00:00
David Hewitt ff37f24625 macros: accept paths in wrap_x macros 2021-12-30 12:46:57 +00:00
David Hewitt 7c2c4dad48
Merge pull request #2070 from mejrs/aliases
Implement rustdoc-scrape-examples
2021-12-28 10:51:18 +00:00
mejrs 8c2970939d Resolve merge conflicts 2021-12-28 05:38:45 +01:00
Bruno Kolenbrander ac66392068
Merge branch 'PyO3:main' into aliases 2021-12-28 04:50:03 +01:00
David Hewitt 19ecd177c3
Merge pull request #2067 from davidhewitt/xtask-coverage
xtask: add coverage command
2021-12-27 09:48:54 +00:00
David Hewitt f344c23928 xtask: support MSRV 2021-12-27 08:36:11 +00:00
David Hewitt d600a8c3a3 xtask: add test-py subcommand & use in CI 2021-12-26 22:39:42 +00:00