Граф коммитов

1016 Коммитов

Автор SHA1 Сообщение Дата
ftreurni f20bcf6498 Fix so that Runtime.PyModuleType is retrieved via Python.dll (#904) (#929) 2019-08-02 12:21:48 +02:00
Ivan Cronyn 1ce630e5b0 Removes imports deprecated in Python3 (#925) 2019-08-02 12:19:10 +02:00
Benedikt Reinartz 6f635a42a9
Simplify travis config and pin mono to 5.20 (#927) 2019-08-01 17:04:07 +02:00
chrisjbremner 93968d2572 Safe wheel import (#905)
Only allow wheel commands if wheel is installed
2019-07-03 23:36:44 +02:00
Victor df0574db55 Improve "No method matches given arguments" message with more details (#900)
* generate more useful message, when a .NET overload can't be found, that matches Python parameter types
* provide detailed error message, when an overload can't be found when calling C# from Python

Related: #811, #265, #782
2019-06-28 07:36:30 +02:00
Victor a8a9426416 Bump C# language version to 7.3 (#896)
* Bump C# language version to 7.3 #860
* Switch to .NET SDK 2.2
* Use xenial image for travis CI
2019-06-26 19:55:55 +02:00
Victor 7595fda74a
Merge pull request #894 from filmor/drop-mono-linux-flag
Get the correct library loading functions at runtime
2019-06-26 09:44:22 -07:00
Benedikt Reinartz 537ee5fae1 Implement error handling, move using statements 2019-06-26 08:04:00 +02:00
Benedikt Reinartz 1dd2ee1b02 Get the correct library loading functions at runtime 2019-06-25 23:00:34 +02:00
Benedikt Reinartz fc7d8a4668
Support ARM architectures again (#887) 2019-06-24 18:07:55 +02:00
Benedikt Reinartz 2bc514f6c5
Fix the failing test (#888)
Warn instead of fail on issues with the garbage collector itself.
2019-06-20 19:29:20 +02:00
Benedikt Reinartz e4e16a422a
Revert "Enable C# parameters of type `object` accept any argument, passed from Python (#853)" (#882)
This reverts commit 43c972d50f.
2019-06-20 17:59:28 +02:00
Victor 43c972d50f Enable C# parameters of type `object` accept any argument, passed from Python (#853)
* added a regression test for #881

https://github.com/pythonnet/pythonnet/issues/811

* when converting to object, wrap values of unknown type into PyObject instead of failing

This enables overload resolution with object parameters to behave the same way PyObject parameters behave - e.g. allow any Python object to be passed as PyObject as fallback.

Resolves #811
2019-06-17 21:31:11 +02:00
inna-w 0d6194dce1 Generate NuGet package during build (#875)
*  Generate NuGet package during build
* Comment out PackageReleaseNotes field
* Update CHANGELOG and AUTHORS
2019-06-03 21:16:51 +02:00
Marco Rossi af419b10e1 Add shield of conda-forge package to README (#877) 2019-06-01 15:31:47 +02:00
Benedikt Reinartz f544adc407 Drop official 3.4 compatibility
Closes #817
2019-05-04 10:21:30 +02:00
Benedikt Reinartz 73bf84ed7d Back to dev version for 2.4.1 2019-05-03 09:37:43 +02:00
Benedikt Reinartz cc538f6a5d Bump version to 2.4.0 2019-05-03 09:28:27 +02:00
Martin-Molinero 33db56d3cf Make finalizer use a task (#852)
The callback set by `Runtime.Py_AddPendingCall()` was not being
triggered in some cases in a multithreading environment. Replacing it
with a `Task`
2019-04-30 09:55:29 +02:00
Benedikt Reinartz 60346400f1
Remove error-prone text comparison in exception test (#854) 2019-04-27 20:06:45 +02:00
Benedikt Reinartz 817fe61d3d Make README.rst pure ASCII for now 2019-04-08 16:44:03 +02:00
Benedikt Reinartz 868cd52710 Bump all relevant versions to 2.4.0-rc2 2019-04-07 23:05:48 +02:00
Benedikt Reinartz c459cac199
Merge pull request #844 from filmor/drop-pandoc-dep
Convert README to rst and drop pypandoc build dep
2019-04-07 14:16:48 +02:00
Benedikt Reinartz 2ad5d2c460 Update changelog 2019-04-07 14:16:22 +02:00
Benedikt Reinartz 88f73cff19 Update copyright year 2019-04-07 13:25:52 +02:00
Benedikt Reinartz 1765cbc520 Run black on setup.py 2019-04-07 13:24:17 +02:00
Benedikt Reinartz 48a4eb4f19 Convert README to rst and drop pypandoc build dep 2019-04-07 13:20:11 +02:00
Benedikt Reinartz add127a055
Merge pull request #842 from pythonnet/revert-655-patch-1
Revert zone check for assembly loading
2019-04-05 09:52:05 +02:00
Benedikt Reinartz 501cbbe668
Merge pull request #838 from OneBlue/use-available-win10-sdks
List installed Win10 SDK's when looking for windows sdk tool
2019-04-05 09:51:22 +02:00
Benedikt Reinartz c0f3886047
Revert "Update moduleobject.cs" 2019-04-05 09:46:36 +02:00
Blue a4318e1128 Update changelog and authors 2019-04-03 00:27:26 +02:00
Blue a2733369ae List installed Win10 SDK's when looking for windows sdk tool 2019-04-03 00:22:01 +02:00
Benedikt Reinartz 491991509a
Merge pull request #836 from QuantConnect/fix-for-memory-leak-finalizer
Fix memory leak in finalizer
2019-04-02 17:50:36 +02:00
Martin Molinero 885cd3ebe6 Fix memory leak in finalizer
- `finalizer` was leaking `_pendingArgs` (global memory) when the call
to `Py_AddPendingCall` was unsuccessful.
- Changing `lock` for `Monitor.TryEnter` at `AddPendingCollect()` so
threads don't block each other.
2019-04-02 12:20:08 -03:00
Benedikt Reinartz f83c884412
Merge pull request #692 from amos402/pyobject-finalizer
PyObject finalizer
2019-04-01 12:20:16 +02:00
Benedikt Reinartz 4eff81e13d
Merge branch 'master' into pyobject-finalizer 2019-03-29 13:29:33 +01:00
Benedikt Reinartz 5ee234a71f
Merge pull request #829 from losttech/PR/MethodBinderRefactoring
Refactoring of MethodBinder.Bind
2019-03-19 15:51:57 +01:00
Victor Milovanov d866e33b7f updated AUTHORS and CHANGELOG 2019-03-12 14:42:58 -07:00
Victor Milovanov 3edad62bf7 added a documentation comment for MethodBinder.TryConvertArguments 2019-03-12 14:35:01 -07:00
Victor Milovanov 1dadc8a472 extracted TryConvertArgument from MethodBinder.TryConvertArguments 2019-03-12 14:34:58 -07:00
Victor Milovanov 04b77d9b90 extracted TryConvertArguments from MethodBinder.Bind 2019-03-12 14:34:54 -07:00
Victor Milovanov 0bb5a450d6 a bit more refactoring of MethodBinder.Bind 2019-03-12 14:34:50 -07:00
Victor Milovanov a19b51bfbf cleaned up MethodBinder.Bind a bit 2019-03-12 14:34:46 -07:00
Benedikt Reinartz 6d68d70db0
Merge branch 'master' into pyobject-finalizer 2019-03-06 17:53:51 +01:00
Benedikt Reinartz 93a8c83720 Disable Mono special case in memory map tests 2019-03-06 17:48:26 +01:00
Benedikt Reinartz acc99be597 Drop Python 3.4 from CI 2019-03-06 17:48:26 +01:00
Ivan Cronyn d264d3ec02 Update .gitignore 2019-02-25 17:14:45 +01:00
Benedikt Reinartz 7bc24957f7 Switch to using TrueDivide instead of Divide everywhere
Fixes #802.

TrueDivide is supported in both Python 2 and 3 while Divide exists only
in Python 2. This does mean that a simple division of numbers will
behave differently in C# vs Python for Python 2, but it will at least
behave the same way in C# independent of the Python version being used.
2019-02-25 17:12:29 +01:00
amos402 90c67ca1c2
typo error 2018-11-26 17:45:11 +08:00
amos402 247e2d9bd1
Fix ref count error 2018-11-25 23:25:26 +08:00