Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Migrate pythonnet to .NET Core 3.0 #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 92 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
8e55e4f
Implements Nullable support
AlexCatarino Sep 28, 2017
c6d56bd
Implements Implicit Conversion
AlexCatarino Sep 28, 2017
4e4e980
Adds method name to "no method matches" error
AlexCatarino Apr 2, 2018
6dad422
Implements System.Decimal support
AlexCatarino Sep 28, 2017
570e0f8
Fixes decimal support
AlexCatarino Apr 2, 2018
c355ab4
Implements System.DateTime support
AlexCatarino Sep 28, 2017
d2d12b3
Fixes UTC conversion from python datetime to managed DateTime
AlexCatarino Jul 13, 2018
c6db866
Fixing memory leaks in the conversion of some types
Martin-Molinero Jul 20, 2018
bec9563
Do not include timezone if DateTimeKind is Unspecified
AlexCatarino Aug 23, 2018
e95794c
Merge pull request #15 from QuantConnect/bug-deallocation-none-dateti…
mchandschuh Aug 24, 2018
76695b4
Sets the version to 1.0.5.12 to match QuantConnect's nuget one.
AlexCatarino Aug 27, 2018
b41e67a
Merge pull request #16 from QuantConnect/quantconnect-versioning
mchandschuh Aug 27, 2018
7e655ce
C# decimal conversion
Martin-Molinero Jan 14, 2019
1661deb
Merge pull request #19 from Martin-Molinero/performance-lean-2825-dec…
jaredbroad Jan 15, 2019
3511f63
Implements Nullable support
AlexCatarino Sep 28, 2017
d24b7ee
Implements Implicit Conversion
AlexCatarino Sep 28, 2017
2a6c1aa
Adds method name to "no method matches" error
AlexCatarino Apr 2, 2018
a6f2d56
Implements System.Decimal support
AlexCatarino Sep 28, 2017
a7b169d
Fixes decimal support
AlexCatarino Apr 2, 2018
ba5c2f6
Implements System.DateTime support
AlexCatarino Sep 28, 2017
15e4f9f
Fixes UTC conversion from python datetime to managed DateTime
AlexCatarino Jul 13, 2018
349bcd7
Fixing memory leaks in the conversion of some types
Martin-Molinero Jul 20, 2018
ad8a585
Do not include timezone if DateTimeKind is Unspecified
AlexCatarino Aug 23, 2018
c5019a3
Sets the version to 1.0.5.12 to match QuantConnect's nuget one.
AlexCatarino Aug 27, 2018
1f7d308
C# decimal conversion
Martin-Molinero Jan 14, 2019
b64fa5f
Merge pull request #20 from QuantConnect/update
jaredbroad Jan 15, 2019
54f284b
Revert "Rebase to pythonnet master"
AlexCatarino Jan 18, 2019
69b7f6a
Merge pull request #21 from QuantConnect/revert-20-update
jaredbroad Jan 18, 2019
f4a047b
Performance improvements ClrObject - Dispose PyObj
Martin-Molinero Jan 18, 2019
877e510
Merge pull request #22 from Martin-Molinero/performance-improvements-…
jaredbroad Jan 18, 2019
daddc68
Version bump to 1.0.5.15
AlexCatarino Jan 22, 2019
f47b9f5
Improve Indicator Performance Benchmark
Martin-Molinero Feb 20, 2019
ab0d1b3
Review: Adding parameter count check
Martin-Molinero Feb 20, 2019
d047597
Merge pull request #24 from Martin-Molinero/performance-qc2925-improv…
jaredbroad Feb 20, 2019
5c35e80
Decimal Parsing Allows Numeric String in Exponential Notation
AlexCatarino Feb 20, 2019
7e9c3df
Version bump to 1.0.5.16
AlexCatarino Feb 20, 2019
fcd62f6
Merge pull request #25 from QuantConnect/version-bump-1-0-5-16
jaredbroad Feb 20, 2019
b88e72f
Remove ExceptionTypeCache
Martin-Molinero Feb 21, 2019
3ce4608
Bumping version to 1.5.0.17
Martin-Molinero Feb 21, 2019
f116429
Merge pull request #26 from Martin-Molinero/performance-qc2925-fix-ex…
jaredbroad Feb 21, 2019
26e88d7
Finalizer for PyObject
amos402 Jun 23, 2018
fccd1d8
Avoid test interdependency
amos402 Jun 24, 2018
9281157
Add source to .csproj
amos402 Jun 24, 2018
481cb4f
Make sure recover the environment
amos402 Jun 24, 2018
1959a6a
Add StackTrace of C# exception
amos402 Jun 24, 2018
e7b8635
Clean up the test and interface
amos402 Jun 24, 2018
c51cebd
Update CHANGELOG.md
amos402 Jun 24, 2018
833d367
Add links to issues and PRs in CHANGELOG
civilx64 Jul 1, 2018
9aa9b1a
Mono doesn't have GC.WaitForFullGCComplete
amos402 Jun 24, 2018
338dcc1
Fixed PythonException leak
amos402 Jun 25, 2018
ef832a3
Fixed nPython.exe crash on Shutdown
amos402 Jul 10, 2018
3a9be30
Add error handler
amos402 Aug 4, 2018
eb569f2
Make collect callback without JIT
amos402 Sep 6, 2018
994449e
Add pending marker
amos402 Oct 23, 2018
fc53d94
Remove PYTHONMALLOC setting
amos402 Oct 25, 2018
8eb3591
Fix ref count error
amos402 Nov 22, 2018
3610220
Add ref count check for helping discover the bugs of decref too much
amos402 Nov 22, 2018
e4fd72e
Fix ref count error
amos402 Nov 25, 2018
0ed8bee
typo error
amos402 Nov 26, 2018
2c94c90
Version bump 1.0.5.18
Martin-Molinero Mar 27, 2019
161d442
Merge pull request #27 from QuantConnect/fix-memory-leak-add-pyobject…
jaredbroad Mar 28, 2019
56a8e2e
Fix memory leak in finalizer
Martin-Molinero Apr 2, 2019
c942194
Version bump 1.0.5.19
Martin-Molinero Apr 2, 2019
928db02
Merge pull request #28 from QuantConnect/fix-memory-leak-finalizer
jaredbroad Apr 10, 2019
7584708
Fix memory leak - finalizer
Martin-Molinero Apr 23, 2019
a30321c
Version bump 1.0.5.20
Martin-Molinero Apr 23, 2019
b1e8444
Fix unit test - Refactor
Martin-Molinero Apr 23, 2019
385a5ed
Merge pull request #29 from QuantConnect/fix-memory-leak-finalizer-v2
jaredbroad Apr 24, 2019
bf368fb
Fix deadlock when shuting down
Martin-Molinero Apr 29, 2019
de514d8
Merge pull request #30 from Martin-Molinero/fix-deadlock-when-shuttin…
jaredbroad May 29, 2019
c70724a
Improve performance of unwrapping .NET objects passed from Python
lostmsu Jun 14, 2019
2e56c59
Merge pull request #31 from losttech/perf/Interop
Martin-Molinero Jun 24, 2019
23d8596
upgrade Python.Runtime to netstandard2.0
Oceania2018 May 15, 2019
71100eb
upgrade Python.EmbeddingTest to .netstandard2.0
Oceania2018 May 16, 2019
d9746a6
Upgrade all project to .netstandard 2.x and remove xxx.15.csproj.
Oceania2018 May 22, 2019
529b874
remove pythonnet.15.sln
Oceania2018 May 22, 2019
ebcd0e2
Fix dotnet build
gsalaz98 Jun 25, 2019
adebcf0
Prepare setup.py for Linux build
gsalaz98 Jun 26, 2019
8910ab1
Initial coreclr and build tooling
Jan 24, 2018
56f6905
Fix error
gsalaz98 Jun 26, 2019
b2655b0
Add path to dotnet. Go back and fix this
gsalaz98 Jun 26, 2019
02eb3a7
Init variables outside of loop to avoid C compiler error
Feb 1, 2018
609fd34
Remove unused _WIN32 strdup
Mar 8, 2018
86e1d19
Add netcoreapp3.0 to build target
gsalaz98 Jun 26, 2019
2a8a107
Add conditional build
gsalaz98 Jun 27, 2019
d9e9499
Fix build
gsalaz98 Jun 27, 2019
58c6ba5
Ensures project builds on windows using setup.py
gsalaz98 Jun 27, 2019
a492d09
Bump version to 2.0.0.0
gsalaz98 Jun 27, 2019
df6bedb
Add runtimes
gsalaz98 Jun 27, 2019
7910075
Add nuspec file for generation of runtime DLLs
gsalaz98 Jun 28, 2019
c556d74
Make NuGet package build correctly
gsalaz98 Jun 29, 2019
4ac6609
Bump to version 2.0.5
gsalaz98 Jul 8, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 2.4.0.dev0
current_version = 2.0.5.0
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<dev>\d+))?
serialize =
{major}.{minor}.{patch}.{release}{dev}
Expand Down
39 changes: 10 additions & 29 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ matrix:
- dotnet-hostfxr-2.0.0
- dotnet-runtime-2.0.0
- dotnet-sdk-2.0.0

- python: 3.4
env: *xplat-env
addons: *xplat-addons
Expand All @@ -34,24 +33,9 @@ matrix:
- python: 3.6
env: *xplat-env
addons: *xplat-addons

- python: 3.7
- python: "3.7-dev"
env: *xplat-env
dist: xenial
sudo: true
addons: &xplat-addons-xenial
apt:
sources:
- sourceline: deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main
key_url: https://packages.microsoft.com/keys/microsoft.asc
- sourceline: deb https://download.mono-project.com/repo/ubuntu stable-xenial main
key_url: http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xA6A19B38D3D831EF
packages:
- mono-devel
- ca-certificates-mono
- dotnet-hostfxr-2.0.0
- dotnet-runtime-2.0.0
- dotnet-sdk-2.0.0
addons: *xplat-addons

# --------------------- Classic builds ------------------------
- python: 2.7
Expand All @@ -68,18 +52,15 @@ matrix:
- python: 3.6
env: *classic-env

- python: 3.7
- python: "3.7-dev"
env: *classic-env

allow_failures:
- python: "3.7-dev"
env: *xplat-env

- python: "3.7-dev"
env: *classic-env
dist: xenial
sudo: true
addons:
apt:
sources:
- sourceline: deb http://download.mono-project.com/repo/ubuntu xenial main
key_url: http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xA6A19B38D3D831EF
packages:
- mono-devel
- ca-certificates-mono

env:
global:
Expand Down
6 changes: 1 addition & 5 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

- Alexandre Catarino([@AlexCatarino](https://github.com/AlexCatarino))
- Arvid JB ([@ArvidJB](https://github.com/ArvidJB))
- Benoît Hudson ([@benoithudson](https://github.com/benoithudson))
- Bradley Friedman ([@leith-bartrich](https://github.com/leith-bartrich))
- Callum Noble ([@callumnoble](https://github.com/callumnoble))
- Christian Heimes ([@tiran](https://github.com/tiran))
Expand All @@ -23,12 +22,10 @@
- Daniel Fernandez ([@fdanny](https://github.com/fdanny))
- Daniel Santana ([@dgsantana](https://github.com/dgsantana))
- Dave Hirschfeld ([@dhirschfeld](https://github.com/dhirschfeld))
- David Lassonde ([@lassond](https://github.com/lassond))
- David Lechner ([@dlech](https://github.com/dlech))
- Dmitriy Se ([@dmitriyse](https://github.com/dmitriyse))
- He-chien Tsai ([@t3476](https://github.com/t3476))
-   Ivan Cronyn ([@cronan](https://github.com/cronan))
- Jan Krivanek ([@jakrivan](https://github.com/jakrivan))
-   Jeff Reback ([@jreback](https://github.com/jreback))
- Joe Frayne ([@jfrayne](https://github.com/jfrayne))
- John Burnett ([@johnburnett](https://github.com/johnburnett))
Expand All @@ -42,8 +39,7 @@
- Sam Winstanley ([@swinstanley](https://github.com/swinstanley))
- Sean Freitag ([@cowboygneox](https://github.com/cowboygneox))
- Serge Weinstock ([@sweinst](https://github.com/sweinst))
- Simon Mourier ([@smourier](https://github.com/smourier))
- Viktoria Kovescses ([@vkovec](https://github.com/vkovec))
- Victor Milovanov([@lostmsu](https://github.com/lostmsu))
- Ville M. Vainio ([@vivainio](https://github.com/vivainio))
- Virgil Dupras ([@hsoft](https://github.com/hsoft))
- Wenguang Yang ([@yagweb](https://github.com/yagweb))
Expand Down
23 changes: 3 additions & 20 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,26 @@ This document follows the conventions laid out in [Keep a CHANGELOG][].
## [unreleased][]

### Added

- Added support for embedding python into dotnet core 2.0 (NetStandard 2.0)
- Added new build system (pythonnet.15.sln) based on dotnetcore-sdk/xplat(crossplatform msbuild).
Currently there two side-by-side build systems that produces the same output (net40) from the same sources.
After a some transition time, current (mono/ msbuild 14.0) build system will be removed.
- NUnit upgraded to 3.7 (eliminates travis-ci random bug)
- Added C# `PythonEngine.AddShutdownHandler` to help client code clean up on shutdown.
- Added `clr.GetClrType` ([#432][i432])([#433][p433])
- Allowed passing `None` for nullable args ([#460][p460])
- Added keyword arguments based on C# syntax for calling CPython methods ([#461][p461])
- Catches exceptions thrown in C# iterators (yield returns) and rethrows them in python ([#475][i475])([#693][p693])
- Implemented GetDynamicMemberNames() for PyObject to allow dynamic object members to be visible in the debugger ([#443][i443])([#690][p690])
- Incorporated reference-style links to issues and pull requests in the CHANGELOG ([#608][i608])
- Added detailed comments about aproaches and dangers to handle multi-app-domains ([#625][p625])
- Python 3.7 support, builds and testing added. Defaults changed from Python 3.6 to 3.7 ([#698][p698])
- Added PyObject finalizer support, Python objects referred by C# can be auto collect now.

### Changed

- Reattach python exception traceback information (#545)
- PythonEngine.Intialize will now call `Py_InitializeEx` with a default value of 0, so signals will not be configured by default on embedding. This is different from the previous behaviour, where `Py_Initialize` was called instead, which sets initSigs to 1. ([#449][i449])
- PythonException included C# call stack
- improved performance of calls from Python to C#

### Fixed

- Fixed secondary PythonEngine.Initialize call, all sensitive static variables now reseted.
This is a hidden bug. Once python cleaning up enough memory, objects from previous engine run becomes corrupted. ([#534][p534])
- Fixed Visual Studio 2017 compat ([#434][i434]) for setup.py
- Fixed crashes when integrating pythonnet in Unity3d ([#714][i714]),
related to unloading the Application Domain
- Fixed interop methods with Py_ssize_t. NetCoreApp 2.0 is more sensitive than net40 and requires this fix. ([#531][p531])
- Fixed crash on exit of the Python interpreter if a python class
derived from a .NET class has a `__namespace__` or `__assembly__`
attribute ([#481][i481])
Expand All @@ -48,8 +39,6 @@ This document follows the conventions laid out in [Keep a CHANGELOG][].
- Fixed errors breaking .NET Remoting on method invoke ([#276][i276])
- Fixed PyObject.GetHashCode ([#676][i676])
- Fix memory leaks due to spurious handle incrementation ([#691][i691])
- Fix spurious assembly loading exceptions from private types ([#703][i703])
- Fix inheritance of non-abstract base methods ([#755][i755])


## [2.3.0][] - 2017-03-11
Expand Down Expand Up @@ -607,7 +596,6 @@ This document follows the conventions laid out in [Keep a CHANGELOG][].

[1.0.0]: https://github.com/pythonnet/pythonnet/releases/tag/1.0

[i714]: https://github.com/pythonnet/pythonnet/issues/714
[i608]: https://github.com/pythonnet/pythonnet/issues/608
[i443]: https://github.com/pythonnet/pythonnet/issues/443
[p690]: https://github.com/pythonnet/pythonnet/pull/690
Expand Down Expand Up @@ -698,9 +686,4 @@ This document follows the conventions laid out in [Keep a CHANGELOG][].
[p225]: https://github.com/pythonnet/pythonnet/pull/225
[p78]: https://github.com/pythonnet/pythonnet/pull/78
[p163]: https://github.com/pythonnet/pythonnet/pull/163
[p625]: https://github.com/pythonnet/pythonnet/pull/625
[i131]: https://github.com/pythonnet/pythonnet/issues/131
[p531]: https://github.com/pythonnet/pythonnet/pull/531
[i755]: https://github.com/pythonnet/pythonnet/pull/755
[p534]: https://github.com/pythonnet/pythonnet/pull/534
[i449]: https://github.com/pythonnet/pythonnet/issues/449
2 changes: 1 addition & 1 deletion NuGet.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="dot-net MyGet Feed" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" protocolVersion="3"/>
Expand Down
9 changes: 0 additions & 9 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,10 @@ environment:
BUILD_OPTS: --xplat
- PYTHON_VERSION: 3.6
BUILD_OPTS: --xplat
- PYTHON_VERSION: 3.7
BUILD_OPTS: --xplat
- PYTHON_VERSION: 2.7
- PYTHON_VERSION: 3.4
- PYTHON_VERSION: 3.5
- PYTHON_VERSION: 3.6
- PYTHON_VERSION: 3.7

matrix:
allow_failures:
- PYTHON_VERSION: 3.4
BUILD_OPTS: --xplat
- PYTHON_VERSION: 3.4

init:
# Update Environment Variables based on matrix/platform
Expand Down
2 changes: 1 addition & 1 deletion conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package:
name: pythonnet
version: "2.4.0.dev0"
version: "2.0.5.0"

build:
skip: True # [not win]
Expand Down
Loading