Commit graph

4251 commits

Author SHA1 Message Date
messense 7f62c96ead
Merge pull request #2242 from ravenexp/fix-max-abi3-version
Fix `abi3-py310` feature implementation: use Python 3.10 ABI when available.
2022-03-23 16:55:23 +08:00
David Hewitt 60d42b07b4
Merge pull request #2243 from ravenexp/simple-fastcall
pyo3-macros-backend: Replace `pyo3-build-config` with `abi3` feature
2022-03-23 08:01:34 +00:00
Sergey Kvachonok 7a44aa1070 pyo3-macros-backend: Replace pyo3-build-config with abi3 feature
Python 3.6 and older are not supported by the current PyO3 version,
so the removed interpreter version check was a no-op.

`pyo3_build_config::get()` attempts to read a config file from disk
when PyO3 is cross-compiling, which is probably bad for rust-analyzer
and other IDEs that attempt to sandbox the proc macro code.
2022-03-23 09:48:15 +03:00
Sergey Kvachonok 5237000317 pyo3-build-config: Fix abi3-py310 feature
Fix `abi3-py310` feature: use Python 3.10 ABI when available
instead of silently falling back to the 3.9 ABI.
2022-03-23 09:45:25 +03:00
David Hewitt 87c79c0319
Merge pull request #2234 from davidhewitt/pyclass-args-refactor
pyclass: unify pyclass with its pyo3 arguments
2022-03-22 11:38:05 +00:00
David Hewitt 49c1d22606 docs: for #2234 2022-03-22 10:38:36 +00:00
messense 4339214ded
Merge pull request #2239 from zh-jq/patch-v0.16.2
allow to compile with parking_lot 0.12
2022-03-22 14:39:46 +08:00
messense ad8ffaad2e
Update changelog for parking_lot supported versions 2022-03-22 13:51:58 +08:00
messense 0aead58fcd
Fix minimal package version for parking_lot 2022-03-22 13:50:29 +08:00
zhangjingqiang 847ffe563c
allow to compile with parking_lot 0.12 2022-03-22 13:50:25 +08:00
David Hewitt d146a2a80d
Merge pull request #2240 from davidhewitt/syn-patch
macros: fix syn patch version
2022-03-22 03:36:20 +00:00
David Hewitt c734b116f9 macros: fix syn patch version 2022-03-21 23:53:08 +00:00
Mo Mirza 143b7d368f
Replace nbsp with space (#2237)
This fixes markdown heading rendering
2022-03-20 16:45:33 +01:00
David Hewitt 5cc3ce99f1 pyclass: unify pyclass with its pyo3 arguments 2022-03-20 08:24:09 +00:00
messense b8dd626194
Merge pull request #2235 from alex/pybytes-as-bytes
Added an as_bytes method for Py<PyBytes>
2022-03-20 12:01:53 +08:00
Alex Gaynor 69655454c1 Added an as_bytes method for Py<PyBytes>
This allows for obtaining a slice that's not lexically bound to the GIL which can be helpful to avoid copying.
2022-03-19 13:28:06 -04:00
Bruno Kolenbrander 16ad15e04f
Expand on xtask (#2176)
* Fix Windows OSError

* Ignore .pyd files

* Put things in modules

* Rename functions to `run`

* Expand on cargo xtask

* Try to work around missing installs

* Run all things by default, but not llvm-cov

* Test msrv

* Fix more OSErrors

* Various refinements and docs

* Various refinements

* Various refinements
2022-03-18 22:13:23 +00:00
messense 3eb654c81c
Merge pull request #2233 from kmp1/build-update
Consider PYTHONFRAMEWORK when cross-compiling
2022-03-17 16:28:12 +08:00
Kevin Phillips 34ff72f6ba Added a test for PYTHONFRAMEWORK 2022-03-17 08:41:26 +01:00
Kevin Phillips 13f13e5ee1 pyo3-build-config: Change for from_sysconfigdata to set the shared property based on PYTHONFRAMEWORK in addition to Py_ENABLE_SHARED in order that a macos Framework build is considered shared just like the logic in from_interpreter 2022-03-17 07:42:29 +01:00
Adam Reichold c5517ada47
Merge pull request #2232 from davidhewitt/cross-compile-panic
pyo3-build-config: fix windows "cross-compile" panic
2022-03-16 15:50:50 +01:00
messense 7f117b5ddc Try to reproduce #2229 2022-03-16 13:32:34 +01:00
David Hewitt 52d2c78ae1 pyo3-build-config: fix windows "cross-compile" panic 2022-03-16 13:22:00 +01:00
messense 9ef7987f67
Merge pull request #2227 from messense/ci-no-fail-fast
CI: keep going on failure only if `CI-no-fail-fast` label is present
2022-03-16 08:41:36 +08:00
David Hewitt 84b5a8ca96
Merge pull request #2228 from PyO3/release-0.16.2
release: 0.16.2
2022-03-15 21:29:46 +00:00
Adam Reichold 922bbfc92d release: 0.16.2 2022-03-15 19:20:00 +01:00
messense 0f001960ba
CI: keep going on failure only if CI-no-fail-fast label is present 2022-03-15 23:57:51 +08:00
messense d0c124d25a
Merge pull request #2226 from messense/actions-concurrency
Limit concurrency on GitHub Actions
2022-03-15 23:24:56 +08:00
messense ca5066f6d3
Test 32-bit Windows only with the latest Python version 2022-03-15 23:00:43 +08:00
messense 9fdd43987c
Merge pull request #2224 from PyO3/build-require-pyo3-ffi
Move links key from pyo3 to pyo3-ffi
2022-03-15 22:29:05 +08:00
messense 15e9c23fa0
Limit concurrency on GitHub Actions
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
2022-03-15 20:47:39 +08:00
Adam Reichold 1e7275c924 Move links key from pyo3 to pyo3-ffi
Instead of a fake build dependency, move the links key from pyo3 to pyo3-ffi
which according to [1] is a prerequisite for build scripts to emit meta-data
that can be used by other build scripts which would incidentally ensure the
ordering between the build script of pyo3 and pyo3-ffi that we need.

[1] https://doc.rust-lang.org/cargo/reference/build-script-examples.html#using-another-sys-crate
2022-03-15 12:42:54 +01:00
Adam Reichold 0c7a13fbe1 Make pyo3-ffi a build dependency of pyo3 to ensure that its build script has finished before pyo3's build script starts. 2022-03-15 12:19:13 +01:00
Alex Gaynor efc18a4139
fixed formatting in changelog (#2218) 2022-03-09 12:59:37 +00:00
David Hewitt e625c5dd7c
Merge pull request #2217 from davidhewitt/pypy-7.3.8
pypy: support 7.3.8
2022-03-09 08:43:46 +00:00
David Hewitt 88cd9152b2 pypy: support 7.3.8 2022-03-08 21:09:16 +00:00
David Hewitt ecfc4a10d8
Merge pull request #2213 from PyO3/guide_new_fix
guide: fix duplicated example for #[new]
2022-03-06 10:18:07 +00:00
Georg Brandl f084ceb9b1 guide: fix duplicated example for #[new]
The second one was probably intended to show a fallible `#[new]`.

Also show that the method does not need to be named `new()`, which
is nice because `new()` can be used for a Rust-level constructor
if they differ.
2022-03-06 10:57:49 +01:00
David Hewitt 754edea81e
Merge pull request #2208 from PyO3/release-0.16.1
release: 0.16.1
2022-03-06 08:43:05 +00:00
David Hewitt 7056bae21f release: 0.16.1 2022-03-05 16:21:44 +00:00
David Hewitt 0f1b8dd43f
Merge pull request #2207 from davidhewitt/tidy-doctests
guide: tidy up doctests
2022-03-05 16:18:43 +00:00
Alex Gaynor 01d8f1e696
added missing proc-macro invocation to migration guide (#2209) 2022-03-05 15:46:36 +00:00
David Hewitt 2bd64c4962 guide: tidy up doctests 2022-03-04 22:50:12 +00:00
David Hewitt 576818dc0c
Merge pull request #2205 from JerzySpendel/typing
Remove typying
2022-03-04 21:38:41 +00:00
Jerzy Spendel eaa82b2856 Remove typying 2022-03-04 16:24:49 +01:00
messense 43d4f5e154
Merge pull request #2204 from messense/fixup-changelog
Fix up changelog entry for `#2197`
2022-03-04 21:24:33 +08:00
messense e4c5698671
Fix up changelog entry for #2197 2022-03-04 21:02:55 +08:00
messense ad2c1af9f7
Merge pull request #2201 from messense/aarch64-apple-darwin
Add aarch64-apple-darwin test to CI
2022-03-04 17:48:54 +08:00
Adam Reichold c339550a56
Merge pull request #2197 from PyO3/bump-hashbrown
Extend  optional dependency supported versions to include 0.12.
2022-03-04 10:41:50 +01:00
messense afe5221724
Fix cross compiling to aarch64 macOS 2022-03-04 17:22:50 +08:00