Commit graph

1499 commits

Author SHA1 Message Date
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
konstin 8d2fbd9e18
Merge pull request #286 from kngwyu/README-apt
Add installation notes on Ubuntu18.04
2018-11-26 11:06:38 +01:00
kngwyu ea6364b98c Add installation notes on Ubuntu18.04 2018-11-26 13:31:49 +09:00
konstin de2108d719 Update changelog 2018-11-26 00:16:47 +01:00
konstin ece59c92f0 Update changelog 2018-11-24 13:17:42 +01:00
konstin 13e7e3968a
Merge pull request #284 from ijl/py37
Travis uses 3.7 instead of 3.7-dev
2018-11-24 13:04:39 +01:00
konstin 9938eb9375
Merge pull request #281 from kngwyu/list
Use linked list in ReleasePool
2018-11-24 12:52:28 +01:00
Yuji Kanagawa 473635bd20
Merge pull request #283 from ijl/add-lib
Document orjson lib as user/example
2018-11-24 13:02:33 +09:00
ijl 2c75c42b61 Travis uses 3.7 instead of 3.7-dev
It requires xenial for support per
https://docs.travis-ci.com/user/languages/python/

I tried specifying 3.8-dev in allow_failures, but it was not
picked up.
2018-11-23 19:49:12 +00:00
ijl e3d528980d Document orjson lib as user/example 2018-11-23 19:28:36 +00:00
kngwyu 119e0abde2 Fix ArrayList::truncate 2018-11-21 16:28:26 +09:00
kngwyu 949097874f Fix bug in ArrayList::pop_back 2018-11-21 16:00:26 +09:00
kngwyu 63ec65d5ac Refactor ReleasePool 2018-11-21 16:00:26 +09:00
kngwyu acbab2b3f0 Use ArrayList::truncate for borrowed pointers 2018-11-21 16:00:26 +09:00