Alexander Niederbühl
b132a0bfc5
Update Get Started section in user guide
...
Use content of README.md for an updated version of
guide/src/get_started.md
2019-01-27 17:28:08 +01:00
Alexander Niederbühl
fbd012601e
Fix kwargs
...
kwargs was broken by a check for the number of given arguments. Only
apply this check if no arbitary number of keyword arguments are allowed
by a "**" parameter of `#[args(...)`.
Closes #318
2019-01-25 00:47:28 +01:00
dependabot[bot]
27ef33703b
Update spin requirement from 0.4.9 to 0.5.0 ( #325 )
...
Updates the requirements on [spin](https://github.com/mvdnes/spin-rs ) to permit the latest version.
- [Release notes](https://github.com/mvdnes/spin-rs/releases )
- [Commits](https://github.com/mvdnes/spin-rs/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-14 14:41:10 +01:00
konstin
f9baa700d8
Merge pull request #324 from athre0z/add-crate-prefix
...
Add $crate:: prefix in create_exception!
2019-01-14 14:40:45 +01:00
Joel Höner
262b708de2
Add $crate:: prefix in create_exception!
2019-01-13 22:00:52 +01:00
konstin
8145841508
Merge pull request #322 from joar/fix-tests-for-examples
...
Pass -c instead of --workdir to "examples/*" tox invocation
2019-01-10 17:15:08 +01:00
konstin
8324e45790
Merge pull request #323 from Alexander-N/race-condition
...
Avoid race condition in gc tests
2019-01-10 17:13:19 +01:00
Joar Wandborg
42557beb50
Use -e instead of || exit
2019-01-10 08:06:58 +01:00
Alexander Niederbühl
053fa5b984
Avoid race condition in gc tests
...
To avoid a segfault when the object is collected, disable garbage
collection for the duration of `gc_integration2`.
Closes #198
2019-01-10 00:46:24 +01:00
Joar Wandborg
8e4d23e470
Pass posargs to pytest command, skip redundant install
2019-01-09 22:00:29 +01:00
Joar Wandborg
2bd5931a04
Pass -c to "examples/*" tox invocation
...
The `-c example-path/tox.init` parameter will read the tox.ini from the
provided location and also set `workdir` and `toxinidir` to the
directory of the passed tox.ini
Previously, when only --workdir was passed, tox read the root `tox.ini`,
with the effect that tox was never run on the projects in `examples/`.
2019-01-09 21:19:23 +01:00
konstin
1b4afd1102
Merge pull request #278 from PyO3/ci
...
Improve testing setup
2019-01-08 20:41:44 +01:00
konstin
d0e0f3a343
Merge pull request #321 from Alexander-N/python-version
...
Don't require feature when PYTHON_SYS_EXECUTABLE is set
2019-01-08 20:32:35 +01:00
Alexander Niederbühl
56ad7d806c
Remove format!
2019-01-08 20:20:42 +01:00
konstin
2dc8813cf8
Improve testing setup
2019-01-08 20:18:23 +01:00
konstin
5edd263371
rustfmt
2019-01-08 20:18:06 +01:00
konstin
146cb31c59
Merge pull request #317 from PyO3/issue_313
...
Fix #313
2019-01-08 19:39:25 +01:00
Alexander Niederbühl
9e2347b810
Don't require feature when PYTHON_SYS_EXECUTABLE is set
...
If neither the feature python2 or python3 is used, the version of
PYTHON_SYS_EXECUTABLE is used.
Issue #276
2019-01-07 22:46:01 +01:00
konstin
0deaee01ad
Bump to 0.6.0-alpha.1 and update changelog from 0.5.3
2019-01-04 11:53:46 +01:00
konstin
27520cb683
Fix #313
...
Thanks to @sumeet for the patch
2018-12-28 20:41:03 +01:00
konstin
322594128c
Merge pull request #316 from kngwyu/arraylist-fix
...
Fix memory leak in ArrayList
2018-12-28 20:31:26 +01:00
konstin
b9f9580751
Fix #314
2018-12-28 20:29:12 +01:00
konstin
58a91a3be4
Merge pull request #315 from kngwyu/remove-forget
...
Use Box::into_raw instead of forget vec
2018-12-28 20:27:41 +01:00
kngwyu
bbfe79fa57
Fix memory leak in ArrayList
2018-12-26 20:18:02 +09:00
kngwyu
419884c6ba
Use Box::into_raw instead of forget vec
2018-12-26 17:49:08 +09:00
konstin
c9d9e80acb
Merge pull request #312 from ijl/list-macros
...
ffi3 list macros, matching ffi2
2018-12-21 22:39:32 +01:00
ijl
984751a57f
Macro Rust doc
2018-12-21 02:07:43 +00:00
ijl
3452d6544a
ffi3 list macros, matching ffi2
2018-12-20 23:32:35 +00:00
konstin
89872dceb9
Replace deprecated methods
2018-12-15 14:15:43 +01:00
konstin
6d7f326176
Rename async to pyasync in the derive backend to fix #309
...
Patch created by @IvanKuzavkov
2018-12-15 14:13:18 +01:00
konstin
26b88ca2f9
Merge pull request #304 from athre0z/func-signatures
...
Documentation on reporting function signatures
2018-12-08 13:51:09 +01:00
Joel Höner
22a89d07aa
Document function signature reporting
2018-12-07 15:35:02 +01:00
Joel Höner
17535534ea
Fix some minor documentation errors
...
Pyo3 → PyP3
py::function → pyfunction
paramter → parameter
2018-12-07 15:22:12 +01:00
Yuji Kanagawa
51e7d55b49
Merge pull request #299 from potocpav/params
...
Add (probably) forgotten type parameters ...
2018-12-05 21:07:07 +09:00
Pavel Potoček
cbe668a0f4
Add (probably) forgotten type parameters to the `pyobject_native_type_convert` macro.
...
This is needed for `rust-numpy` to compile.
2018-12-05 10:56:39 +01:00
konstin
d00be67ad3
Fix #298
2018-12-04 22:50:16 +01:00
Yuji Kanagawa
32d6d4e99a
Merge pull request #294 from ijl/try
...
PyTryFrom::try_from_unchecked()
2018-12-03 23:03:20 +09:00
Yuji Kanagawa
cf4cfe20f8
Merge pull request #297 from PyO3/dependabot/cargo/indoc-0.3.1
...
Update indoc requirement from 0.2.8 to 0.3.1
2018-12-03 22:58:57 +09:00
dependabot[bot]
a3c7cdfd98
Update indoc requirement from 0.2.8 to 0.3.1
...
Updates the requirements on [indoc](https://github.com/dtolnay/indoc ) to permit the latest version.
- [Release notes](https://github.com/dtolnay/indoc/releases )
- [Commits](https://github.com/dtolnay/indoc/commits/0.3.1 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-03 06:57:55 +00:00
ijl
b8a6d67e31
PyTryFrom::try_from_mut_unchecked()
2018-12-01 10:27:48 -05:00
ijl
d18ebea1c2
PyTryFrom::try_from_unchecked()
...
This allows casting a PyObjectRef to a specific type of PyObject
with no overhead.
2018-12-01 10:12:27 -05:00
konstin
790a103753
Merge pull request #291 from PyO3/exception_macros
...
Refactor the exception macros
2018-12-01 13:04:06 +01:00
Yuji Kanagawa
27b4c8a0b2
Merge pull request #293 from tiagoantao/master
...
upgrade version reference
2018-12-01 12:55:17 +09:00
Tiago Antao
a5de9dcf00
Update building-and-distribution.md
2018-11-30 09:40:28 -05:00
Yuji Kanagawa
15f5df4572
Merge pull request #290 from kngwyu/remove-some-defaults
...
Remove default from ReturnTypeIntoPyResult
2018-11-30 23:37:28 +09:00
Tiago Rodrigues Antao
08e61694b3
upgrade version reference
2018-11-30 08:50:15 -05:00
kngwyu
7a83c1dc0f
Revert removing default from impl FromPyObject for &T and &mut T
2018-11-29 22:45:36 +09:00
konstin
9102f2e364
Refactor the exception macros
...
* Renamed `py_exception` to `create_exception`
* The split up of the macros makes it possible to create exception structs with bodies to mimic python exceptions' members
* Used `Once` to fix a (theoretical) race condition with the is_null check
2018-11-27 23:07:15 +01:00
kngwyu
b8f1373bec
Remove default for impl PyTryFrom for &T and &mut T
2018-11-27 14:42:09 +09:00
kngwyu
2539acc1e8
Remove default from ReturnTypeIntoPyResult
2018-11-27 14:31:00 +09:00