Commit Graph

3605 Commits

Author SHA1 Message Date
David Hewitt c021a0198d
Merge pull request #1364 from davidhewitt/pyclass-send-ui-test
pyclass: add !Send compile_error test
2021-01-06 06:03:22 +00:00
David Hewitt 22de3b4f44 pyclass: add !Send compile_error test 2021-01-05 23:25:28 +00:00
David Hewitt b152fd6317
Merge pull request #1359 from dalcde/patch-2
Let pyconfig.h not define Py_ENABLE_SHARED
2021-01-05 22:22:50 +00:00
David Hewitt d9452b3d18
Merge pull request #1360 from PyO3/update-mdbook
Update mdbook version
2021-01-05 07:06:55 +00:00
kngwyu ab020f2a86 Update mdbook version 2021-01-05 12:32:23 +09:00
David Hewitt 8e37d378b5
Merge pull request #1347 from davidhewitt/embedding
auto-initialize: new feature to control initializing Python
2021-01-04 21:31:22 +00:00
David Hewitt e0c35d17dd auto-initialize: add CHANGELOG and docs 2021-01-04 21:08:08 +00:00
Dexter Chua 8f404c4db5
Let pyconfig.h not define Py_ENABLE_SHARED
If there is no line that defines Py_ENABLE_SHARED in `pyconfig.h`, then it is false
2021-01-04 22:24:39 +08:00
David Hewitt d9ccc98565
Merge pull request #1353 from daniil-konovalenko/patch-1
Fix #[pyclass] arguments description
2021-01-02 17:00:13 +00:00
David Hewitt 59707f0b81 auto-initialize: new feature to control initializing Python 2021-01-02 16:08:10 +00:00
Daniil Konovalenko 74a8b3257d
Fix #[pyclass] arguments description 2021-01-02 19:03:29 +03:00
David Hewitt 42ca48a8b4
Merge pull request #1350 from davidhewitt/refactor-build-rs
Refactor build rs
2021-01-01 08:04:18 +00:00
David Hewitt a317e0df74 build: use BuildFlags struct 2021-01-01 07:34:36 +00:00
Yuji Kanagawa a16a9bc1b6
Merge pull request #1352 from davidhewitt/fix-clippy-examples
ci: deny clippy warnings for examples
2021-01-01 16:02:21 +09:00
David Hewitt 0da12bd0dc ci: deny clippy warnings for examples 2020-12-31 22:11:48 +00:00
David Hewitt a350dd2c20 build: make include dir optional when targeting Windows 2020-12-31 22:02:29 +00:00
David Hewitt cc6fc483a6 build: remove unused unicode flags 2020-12-31 22:02:29 +00:00
David Hewitt 6fdcfdebe1 build: simplify build script 2020-12-31 22:02:29 +00:00
David Hewitt 1d8c14a5ca
Merge pull request #1351 from davidhewitt/fix-clippy-2020-12-31
build: update for Rust 1.49
2020-12-31 22:01:57 +00:00
David Hewitt b1012ebb68 build: update for Rust 1.49 2020-12-31 18:16:02 +00:00
David Hewitt af50970c89
Merge pull request #1348 from nw0/ffi-2
ffi module cleanup: genobject.h to iterobject.h
2020-12-30 15:29:19 +00:00
Nicholas Sim 05812d5f55 ffi module cleanup: update CHANGELOG 2020-12-29 18:21:11 +08:00
Nicholas Sim 0701bf9948 ffi module cleanup: genobject.h to iterobject.rs 2020-12-29 18:20:52 +08:00
David Hewitt fb9ad1e904
Merge pull request #1341 from nw0/ffi-1
ffi module cleanup: context.h to frameobject.h
2020-12-28 16:04:43 +00:00
David Hewitt acbfaf4a06
Merge pull request #1346 from PyO3/py39-dict-and-weakref-tweaks
Use inline fn instead of macro_rules to construct PyMemberDef
2020-12-28 15:55:58 +00:00
kngwyu 2e024b5320 Use inline fn instead of macro_rules to construct PyMemberDef 2020-12-28 23:25:52 +09:00
Nicholas Sim f26a1ea8b1 remove bad comments 2020-12-28 21:25:18 +08:00
Nicholas Sim 717050af4b
Merge branch 'master' into ffi-1 2020-12-28 21:22:42 +08:00
Nicholas Sim aadb58621c fix errors in PR 2020-12-28 21:18:27 +08:00
David Hewitt 1e5e93d458
Merge pull request #1342 from davidhewitt/abi3-dict-weakref
abi3: add support for dict and weakref from Python 3.9
2020-12-28 13:00:59 +00:00
Nicholas Sim 6c3a241dd4 ffi cleanup: add missing deprecation 2020-12-28 20:55:23 +08:00
Nicholas Sim 1fd86132e0 CHANGELOG: update as requested 2020-12-28 20:54:56 +08:00
Nicholas Sim 55a602462d
Apply suggestions from code review
Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
2020-12-28 20:51:08 +08:00
Nicholas Sim f24e48a00c fix pypy3 build 2020-12-28 20:11:11 +08:00
Nicholas Sim f68da84095 fix pypy non-limited build 2020-12-28 19:56:23 +08:00
Nicholas Sim f2ddea9dba
Merge branch 'master' into ffi-1 2020-12-28 19:44:09 +08:00
David Hewitt 7572962828 abi3: add support for dict and weakref from Python 3.9 2020-12-28 10:22:46 +00:00
Nicholas Sim 3518ac3c3f Update changelog, allow use of deprecated PyGetSetDef_DICT 2020-12-28 18:17:10 +08:00
Nicholas Sim 72ce3081e6 make PyDictObject, PyFloatObject opaque under limited API 2020-12-28 18:13:46 +08:00
Nicholas Sim 643d0af3bf remove redundant comment 2020-12-28 18:04:58 +08:00
Nicholas Sim 969da37b2a Deprecate PyGetSetDef_DICT 2020-12-28 18:02:42 +08:00
Yuji Kanagawa 97bf075ca5
Merge pull request #1343 from davidhewitt/module-attribute
pyclass: fix deprecation warning for no __module__ attribute
2020-12-28 14:00:14 +09:00
David Hewitt 600466e12f pyclass: fix deprecation warning for no __module__ attribute 2020-12-27 19:42:47 +00:00
Nicholas Sim c4f773e590 fix pypy compilation 2020-12-27 14:17:44 +08:00
Nicholas Sim 46ca4e86e5 cpython/dictobject: exclude whole file for pypy 2020-12-27 14:10:17 +08:00
Nicholas Sim 83739e60f7 ffi module cleanup: context.h to frameobject.h 2020-12-27 14:00:50 +08:00
Nicholas Sim 3f093d9e59
ffi module cleanup (#1338)
* initial work to clean up ffi module

* ffi: mirror cpython Includes

* ffi: start to alphebetise, note skipped headers

* ffi: temporarily move _PyFrameEvalFunction back

* ffi cleanup: fix pypy compilation

* Update src/ffi/mod.rs

Co-authored-by: Yuji Kanagawa <yuji.kngw.80s.revive@gmail.com>

* add suggested changes

* ffi cleanup: remove unnecessary use stmt

* ffi cleanup: add deprecation warning

* ffi cleanup: transitively deprecate, update changelog

Co-authored-by: Yuji Kanagawa <yuji.kngw.80s.revive@gmail.com>
2020-12-27 11:53:18 +09:00
David Hewitt 9ec937bc63
Merge pull request #1340 from davidhewitt/deny-warnings
ci: deny warnings using RUSTFLAGS
2020-12-26 10:06:00 +00:00
David Hewitt 51d1996218 ci: deny warnings using RUSTFLAGS 2020-12-26 08:27:08 +00:00
David Hewitt 384f32a89c
Merge pull request #1334 from cecini/prfixbuildrs
Fix the pydebug with trace refs and count_allocs for python > 3.7
2020-12-25 20:42:14 +00:00