mejrs
baa30bd562
Fix test
2021-09-22 16:14:16 +02:00
mejrs
e380358ac7
use `Py` instead of `Pycell`
2021-09-22 15:02:49 +02:00
Bruno Kolenbrander
4ccf9ed324
Apply suggestions from code review
...
Co-authored-by: Georg Brandl <georg@python.org>
2021-09-22 13:26:37 +02:00
David Hewitt
9ea473372a
Merge pull request #1880 from ravenexp/fix-abi3-arg
...
build-config: Always pass `abi3` flag to `default_lib_name_windows()`
2021-09-22 09:07:56 +01:00
Sergey Kvachonok
2f74ab0d23
build-config: Always pass `abi3` flag to `default_lib_name_windows()`
...
Hardcoding `false` here leads to an incorrect abi3 DLL name
when cross-compiling to Windows.
2021-09-22 07:30:21 +01:00
mejrs
e805c998f9
rewrite Pycell documentation
2021-09-22 03:13:26 +02:00
David Hewitt
f771d1684e
Merge pull request #1876 from atouchet/links
...
Update various links and formatting
2021-09-19 01:38:26 +01:00
Alex Touchet
2a09583b28
Update various links and formatting
2021-09-18 11:48:45 -07:00
David Hewitt
179b5d1f47
pymethods: fix support for MSRV
2021-09-18 16:42:02 +01:00
David Hewitt
592c98c722
pymethods: disable protocols with multiple-pymethods for now
2021-09-18 13:08:24 +01:00
David Hewitt
a551b005b4
pymethods: finish support for number protocol
2021-09-18 12:59:25 +01:00
David Hewitt
c2d78ca76e
pymethods: faster compilation for protos, tidy ups
2021-09-18 09:49:05 +01:00
David Hewitt
43eb762346
pymethods: support most numerical methods
2021-09-18 00:31:17 +01:00
David Hewitt
56ef7c9f6d
Merge pull request #1874 from davidhewitt/py36-threads-panic
...
gil: try to initialize threads on Python 3.6 if possible
2021-09-17 13:01:59 +01:00
David Hewitt
70d829de66
gil: try to initialize threads on Python 3.6 if possible
2021-09-17 08:48:21 +01:00
David Hewitt
75c0116f6a
pymethods: cleanup macros generating setdel slots
2021-09-17 08:43:52 +01:00
David Hewitt
92e2156161
pymethods: support inplace numerical operations
2021-09-17 08:13:54 +01:00
David Hewitt
c090b6581d
pymethods: fix clippy errors
2021-09-17 08:13:54 +01:00
David Hewitt
5210517695
pymethods: implement more mapping methods
2021-09-17 08:13:54 +01:00
David Hewitt
fda18b07d7
pymethods: implement some mapping methods
2021-09-17 08:13:54 +01:00
David Hewitt
b544b5a6d7
pymethods: support iter and async protocols
2021-09-17 08:13:54 +01:00
David Hewitt
8408328cb3
pymethods: add support for protocol methods
2021-09-17 08:13:54 +01:00
David Hewitt
b79a26186c
Merge pull request #1873 from davidhewitt/fix-conda-location
...
pyo3-build-config: fix location for conda interpreter on windows
2021-09-17 08:07:17 +01:00
David Hewitt
097d7e09cb
pyo3-build-config: fix location for conda interpreter on windows
2021-09-16 23:38:46 +01:00
David Hewitt
4a3b049706
Merge pull request #1868 from mejrs/main
...
clean up lib.rs
2021-09-16 09:20:25 +01:00
mejrs
dcc148abe7
Fix some links
2021-09-14 19:33:59 +02:00
mejrs
4cd9f4b570
import FromPyObject into crate root
2021-09-14 14:07:23 +02:00
mejrs
6fe52fce2f
msrv strikes again
2021-09-14 00:22:58 +02:00
mejrs
d6973b1b6a
clean up lib.rs
2021-09-13 22:58:15 +02:00
David Hewitt
24b92afa75
Merge pull request #1866 from deantvv/ffi-cleanup-sliceobject
...
ffi: cleanup sliceobject
2021-09-13 19:09:33 +01:00
Dean Li
126df617b0
ffi: cleanup sliceobject
2021-09-13 19:02:19 +08:00
mejrs
68cba78a44
chore: update rust 1.55 ( #1865 )
...
* chore: update rust 1.55
* move test to 1.55 only
* make ci happy
* make ci happy
* make ci happy
* make ci happy
* make clippy happy
* make ci happy
* formatting
2021-09-12 18:07:24 +01:00
David Hewitt
0c5ac220de
Merge pull request #1863 from davidhewitt/more-conversions
...
conversions: move more features inside the module
2021-09-07 22:19:46 +01:00
David Hewitt
9676c88a1b
conversions: move more features inside the module
2021-09-06 21:07:23 +01:00
David Hewitt
42cb56f103
Merge pull request #1862 from davidhewitt/update-changelog-0.14.5
...
changelog: updates for 0.14.5 backports
2021-09-05 19:30:47 +01:00
David Hewitt
dca02a92ce
changelog: updates for 0.14.5 backports
2021-09-05 15:19:36 +01:00
David Hewitt
fc0d08c020
Merge pull request #1861 from deantvv/ffi-setobject-cleanup
...
ffi: cleanup setobject
2021-09-05 14:45:57 +01:00
Dean Li
69fbb17d33
ffi: cleanup setobject
2021-09-05 16:03:49 +08:00
David Hewitt
6e83516e94
Merge pull request #1859 from indygreg/pyo3-conditionalize-build-config
...
pyo3-build-config: conditionalize symbols on resolve-config feature
2021-09-03 08:11:40 +01:00
David Hewitt
ed93b3b39e
Merge pull request #1858 from PyO3/davidhewitt-patch-1
...
readme: add articles & media section
2021-09-03 08:03:04 +01:00
David Hewitt
17a7413224
Merge pull request #1860 from PyO3/as_sequence_method
...
PyList/PyTuple: add as_sequence()
2021-09-03 08:02:10 +01:00
Georg Brandl
7cb4faf21c
PyList/PyTuple: add as_sequence()
...
Fixes #1845
2021-09-03 08:09:19 +02:00
Gregory Szorc
3957afc9c5
pyo3-build-config: conditionalize symbols on resolve-config feature
...
PR #1856 was buggy in that the `pyo3-build-config` crate didn't actually
work in library mode because `include_str!()` was attempting to resolve
missing files as part of populating some `const` values.
We could change the logic of these constants to make them lazy if
we wanted to support possibly getting access to the value. But the
simple solution is to conditionalize their presence on the crate
feature.
Test coverage for building and testing the crate in insolation with the
feature disabled has been added.
Various code has been conditionalized to avoid compiler warnings.
Also, it appears `cargo build|test -p pyo3-build-config
--no-default-features` still passes default features. This seems wrong
to me. But it is how my system behaves. Maybe it is an sccache bug?
I coded the new tests to `cd pyo3-build-config` first to work around.
2021-09-02 17:18:55 -07:00
David Hewitt
afd4d46bdb
Merge pull request #1856 from indygreg/build-config-feature
...
pyo3-build-config: add a crate feature to control build script
2021-09-02 21:45:34 +01:00
David Hewitt
8349f6315a
readme: add articles & media section
2021-09-02 21:28:14 +01:00
David Hewitt
812c518c65
Merge pull request #1854 from davidhewitt/cargo-llvm-cov-0.1.5
...
ci: use cargo-llvm-cov 0.1.5
2021-09-02 21:19:44 +01:00
Gregory Szorc
1e951d5d8b
pyo3-build-config: add a crate feature to control build script
...
I have a use case in PyOxidizer where I want to use the
pyo3-build-config crate as a library crate so I can access the
`InterpreterConfig` struct so I can read/write config files without
reinventing the wheel.
This is doable before this commit. But it requires that the
build environment have a Python interpreter. This is undesirable
for library usage.
This commit introduces a cargo feature flag to control whether the
build script does anything. The feature flag must be present for
the build script to resolve a config. The feature flag is enabled
by default for backwards compatibility. The pyo3 and pyo3-macros-backend
crates use this feature by default, for backwards compatibility and
because it is the reasonable default.
This is probably room to conditionalize some APIs and other behavior
based on this feature flag. But we stop short of doing that for
the time being.
2021-09-01 19:44:54 -07:00
David Hewitt
10039393c1
ci: use cargo-llvm-cov 0.1.5
2021-09-01 20:35:53 +01:00
David Hewitt
921c4410ce
Merge pull request #1849 from PyO3/pylist_apis
...
PyList: add more sequence APIs
2021-09-01 08:50:49 +01:00
David Hewitt
7d40461dcf
Merge pull request #1847 from davidhewitt/test-parse-sysconfigdata
...
pyo3-build-config: add test for parsing sysconfigdata
2021-09-01 08:50:29 +01:00