Gregory Szorc
62e134242d
pyo3-build-config: make interpreter config and references types public
...
PyOxidizer will want to create interpreter config files. Rather
than reinvent the logic for reading/writing these files, I think
it makes sense to consume the `pyo3-build-config` crate so we can
use the `InterpreterConfig` type directly. But the symbol needs
to be public to allow us to do that. And in order to allow direct
construction, we need to make all the types referenced by its fields
public as well.
2021-08-30 09:45:37 -07:00
David Hewitt
a20864a903
ci: test and fix s390x build
2021-08-30 13:50:44 +01:00
Georg Brandl
af46bf3bc6
PyList/Tuple: add more sequence APIs
...
See #1845
2021-08-30 12:19:31 +02:00
David Hewitt
b7c62b8a53
Merge pull request #1846 from davidhewitt/changelog-release-0.14.4
...
changelog: updates for 0.14.4
2021-08-30 08:19:53 +01:00
David Hewitt
f4c834f5fc
Merge pull request #1843 from PyO3/pymethods_hygiene
...
more macro hygiene cleanup: test #[pymethods] and more arg parsing and protos
2021-08-29 11:26:10 +01:00
David Hewitt
5119bad580
changelog: updates for 0.14.4
2021-08-29 08:07:44 +01:00
Georg Brandl
381eb9c501
Apply suggestions from code review
...
Co-authored-by: mejrs <59372212+mejrs@users.noreply.github.com>
2021-08-29 08:30:05 +02:00
David Hewitt
95a11d0725
Merge pull request #1842 from PyO3/frompyobject_hygiene
...
more macro hygiene cleanup: test the FromPyObject derive macro
2021-08-29 07:15:16 +01:00
David Hewitt
604b28451b
Merge pull request #1841 from PyO3/exception_hygiene
...
more macro hygiene cleanup: test the exception macros
2021-08-29 07:14:36 +01:00
David Hewitt
3219c89f10
Merge pull request #1746 from davidhewitt/doc-attributes-1.54
...
pyo3-macros-backend: support macros inside doc attributes
2021-08-29 07:12:58 +01:00
David Hewitt
f76535fd07
pyo3-macros-backend: support macros inside doc attributes
2021-08-28 22:47:20 +01:00
Georg Brandl
6f75fc8eb7
more macro hygiene cleanup: test #[pymethods] and more arg parsing and protos
2021-08-28 18:05:32 +02:00
Georg Brandl
585487c3c1
more macro hygiene cleanup: test the FromPyObject derive macro
2021-08-28 16:42:29 +02:00
Georg Brandl
b795cb2c14
class: hygiene cleanup
2021-08-28 15:47:28 +02:00
Georg Brandl
db00a34a56
more macro hygiene cleanup: test the exception macros
2021-08-28 15:45:49 +02:00
David Hewitt
3fa97f9086
Merge pull request #1840 from hongquan/feature/more-specific-oserror
...
Convert io::Error to more specific Python OSError
2021-08-28 14:28:30 +01:00
David Hewitt
a6d6367241
Merge pull request #1837 from davidhewitt/more-proc-macro-hygiene
...
pyo3-macros-backend: more tests for macro hygiene
2021-08-28 14:14:47 +01:00
Nguyễn Hồng Quân
b721a45ff9
Convert io::Error to more specific Python OSError
2021-08-28 17:25:35 +07:00
David Hewitt
313610993a
pyo3-macros-backend: more tests for macro hygiene
2021-08-28 10:28:27 +01:00
David Hewitt
667865e2d7
Merge pull request #1838 from davidhewitt/pin-parking-lot-msrv
...
ci: pin parking_lot to 0.11.1 on MSRV
2021-08-28 08:59:59 +01:00
David Hewitt
99f95a2eaf
ci: pin parking_lot to 0.11.1 on MSRV
2021-08-28 08:17:28 +01:00
David Hewitt
cf0e8a6435
Merge pull request #1830 from deantvv/ffi-cleanup-0825
...
ffi cleanup: pystrtod to pythonrun
2021-08-28 07:23:47 +01:00
David Hewitt
9c03227a20
Merge pull request #1833 from davidhewitt/changelog-function-brackets
...
changelog: remove function parentheses
2021-08-27 22:57:41 +01:00
David Hewitt
86dacd47c7
ffi: add some PyPy cfgs
2021-08-27 22:57:02 +01:00
Dean Li
a8cc9c37d5
fixup! ffi: cleanup pythonrun
2021-08-27 23:54:27 +08:00
Dean Li
73220565c1
update changelog
2021-08-27 23:36:59 +08:00
Dean Li
72b8ffc588
ffi: cleanup pythonrun
...
Move multiple limited api to cpython. Many API in `pythonrun` are
removed in python 3.10.
There is also some function and macro share the same name (documented
below) in cpython, which I choose to skip macro definition.
- PyRun_String
- PyRun_AnyFile
- PyRun_AnyFileEx
- PyRun_AnyFileFlags
2021-08-27 23:36:58 +08:00
Dean Li
d62f568ffb
ffi: cleanup pystrtod
2021-08-27 22:50:01 +08:00
messense
868c591c18
Merge pull request #1834 from davidhewitt/pystring-data-big-endian
...
pystring: disable `PyString::data` on big-endian targets
2021-08-27 09:41:57 +08:00
David Hewitt
755dd221e7
pystring: disable `PyString::data` on big-endian targets
2021-08-26 19:29:58 +01:00
David Hewitt
4a50a26c87
changelog: remove function parentheses
2021-08-26 18:59:07 +01:00
David Hewitt
a2375f336f
Merge pull request #1832 from mejrs/decorator
...
guide: add decorator example
2021-08-26 18:55:59 +01:00
mejrs
76179967f3
use &mut self receiver and py args.
2021-08-26 15:28:52 +02:00
David Hewitt
f20079bf78
Merge pull request #1829 from davidhewitt/slice-index
...
list,tuple,sequence: add slice indexing
2021-08-26 08:30:30 +01:00
David Hewitt
9e81603762
Merge pull request #1831 from davidhewitt/guide-optional-deps
...
guide: add "Optional Dependencies" section
2021-08-26 08:13:50 +01:00
David Hewitt
3a90ff77f4
list,tuple,sequence: add slice indexing
2021-08-26 07:57:12 +01:00
David Hewitt
f2ff6cad37
guide: add "Optional Dependencies" section
...
Co-authored-by: mejrs <59372212+mejrs@users.noreply.github.com>
2021-08-26 07:22:54 +01:00
mejrs
eaf5e6de9c
add decorator example
2021-08-26 04:18:49 +02:00
David Hewitt
2df0cb6d13
Merge pull request #1823 from deantvv/ffi-cleanup
...
ffi cleanup: pylifecycle to pystate
2021-08-24 21:15:29 +01:00
David Hewitt
de87971bf6
Merge pull request #1827 from davidhewitt/changelog-tidy
...
changelog: fix PR links
2021-08-24 20:29:58 +01:00
Dean Li
ebeee22d71
ffi: cleanup pystate
2021-08-25 00:41:45 +08:00
Dean Li
0a50b42352
ffi: cleanup pymem
2021-08-24 23:50:26 +08:00
Dean Li
1eeeb1fa32
ffi: cleanup pylifecycle
2021-08-24 23:50:17 +08:00
Georg Brandl
3bed78230d
Merge pull request #1828 from PyO3/get_slice_rename
2021-08-24 10:38:32 +02:00
David Hewitt
688823fbbf
Merge pull request #1826 from davidhewitt/pysequence-tidy
...
sequence: tidy up implementation
2021-08-24 09:14:56 +01:00
Georg Brandl
50cd4c60ca
Merge pull request #1825 from PyO3/index_trait
2021-08-24 09:34:42 +02:00
Georg Brandl
097216702f
tuple: add back old slice() for deprecation cycle
2021-08-24 09:08:08 +02:00
David Hewitt
764b1e5b95
changelog: fix PR links
2021-08-24 07:44:50 +01:00
Georg Brandl
c522a9c087
list/tuple: rename slice -> get_slice
2021-08-24 08:40:05 +02:00
Georg Brandl
a0f7488e1a
list/tuple/sequence: use Index in tests
2021-08-24 08:37:17 +02:00