| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,7 +5,6 @@ python: | |||
| 5 | 5 | - 3.8 | |
| 6 | 6 | - 3.7 | |
| 7 | 7 | - 3.6 | |
| 8 | - - 3.5 | ||
| 9 | 8 | ||
| 10 | 9 | env: | |
| 11 | 10 | matrix: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,6 +28,7 @@ | |||
| 28 | 28 | - Christoph Gohlke ([@cgohlke](https://github.com/cgohlke)) | |
| 29 | 29 | - Christopher Bremner ([@chrisjbremner](https://github.com/chrisjbremner)) | |
| 30 | 30 | - Christopher Pow ([@christopherpow](https://github.com/christopherpow)) | |
| 31 | + - Daniel Abrahamsson ([@danabr](https://github.com/danabr)) | ||
| 31 | 32 | - Daniel Fernandez ([@fdanny](https://github.com/fdanny)) | |
| 32 | 33 | - Daniel Santana ([@dgsantana](https://github.com/dgsantana)) | |
| 33 | 34 | - Dave Hirschfeld ([@dhirschfeld](https://github.com/dhirschfeld)) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,15 +10,18 @@ This document follows the conventions laid out in [Keep a CHANGELOG][]. | |||
| 10 | 10 | ### Added | |
| 11 | 11 | ||
| 12 | 12 | ### Changed | |
| 13 | - - Drop support for Python 2 | ||
| 13 | + - Drop support for Python 2, 3.4, and 3.5 | ||
| 14 | 14 | - `clr.AddReference` may now throw errors besides `FileNotFoundException`, that provide more | |
| 15 | 15 | details about the cause of the failure | |
| 16 | 16 | - `clr.AddReference` no longer adds ".dll" implicitly | |
| 17 | + - `PyIter(PyObject)` constructor replaced with static `PyIter.GetIter(PyObject)` method | ||
| 17 | 18 | ||
| 18 | 19 | ### Fixed | |
| 19 | 20 | ||
| 20 | 21 | - Fix incorrect dereference of wrapper object in `tp_repr`, which may result in a program crash | |
| 21 | 22 | - Fix incorrect dereference in params array handling | |
| 23 | + - Fix `object[]` parameters taking precedence when should not in overload resolution | ||
| 24 | + - Fixed a bug where all .NET class instances were considered Iterable | ||
| 22 | 25 | ||
| 23 | 26 | ## [2.5.0][] - 2020-06-14 | |
| 24 | 27 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,12 +20,9 @@ environment: | |||
| 20 | 20 | BUILD_OPTS: --xplat | |
| 21 | 21 | - PYTHON_VERSION: 3.6 | |
| 22 | 22 | BUILD_OPTS: --xplat | |
| 23 | - - PYTHON_VERSION: 3.5 | ||
| 24 | - BUILD_OPTS: --xplat | ||
| 25 | 23 | - PYTHON_VERSION: 3.8 | |
| 26 | 24 | - PYTHON_VERSION: 3.7 | |
| 27 | 25 | - PYTHON_VERSION: 3.6 | |
| 28 | - - PYTHON_VERSION: 3.5 | ||
| 29 | 26 | - PYTHON_VERSION: 3.7 | |
| 30 | 27 | PYTHONNET_SHUTDOWN_MODE: Soft | |
| 31 | 28 | - PYTHON_VERSION: 3.8 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -637,7 +637,6 @@ def run(self): | |||
| 637 | 637 | "License :: OSI Approved :: MIT License", | |
| 638 | 638 | "Programming Language :: C#", | |
| 639 | 639 | "Programming Language :: Python :: 3", | |
| 640 | - "Programming Language :: Python :: 3.5", | ||
| 641 | 640 | "Programming Language :: Python :: 3.6", | |
| 642 | 641 | "Programming Language :: Python :: 3.7", | |
| 643 | 642 | "Programming Language :: Python :: 3.8", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -87,6 +87,18 @@ public void CollectBasicObject() | |||
| 87 | 87 | Assert.GreaterOrEqual(objectCount, 1); | |
| 88 | 88 | } | |
| 89 | 89 | ||
| 90 | + [Test] | ||
| 91 | + public void CollectOnShutdown() | ||
| 92 | + { | ||
| 93 | + MakeAGarbage(out var shortWeak, out var longWeak); | ||
| 94 | + FullGCCollect(); | ||
| 95 | + var garbage = Finalizer.Instance.GetCollectedObjects(); | ||
| 96 | + Assert.IsNotEmpty(garbage); | ||
| 97 | + PythonEngine.Shutdown(); | ||
| 98 | + garbage = Finalizer.Instance.GetCollectedObjects(); | ||
| 99 | + Assert.IsEmpty(garbage); | ||
| 100 | + } | ||
| 101 | + | ||
| 90 | 102 | private static void MakeAGarbage(out WeakReference shortWeak, out WeakReference longWeak) | |
| 91 | 103 | { | |
| 92 | 104 | PyLong obj = new PyLong(1024); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,7 +28,7 @@ | |||
| 28 | 28 | </ItemGroup> | |
| 29 | 29 | ||
| 30 | 30 | <Target Name="GetRuntimeLibBuildOutput" BeforeTargets="Build"> | |
| 31 | - <MSBuild Projects="..\runtime\Python.Runtime.15.csproj" Properties="PYTHONNET_PY3_VERSION=PYTHON35;Configuration=$(Configuration);TargetFramework=net40;Python3Version=PYTHON35;OutputPath=bin\for_perf\"> | ||
| 31 | + <MSBuild Projects="..\runtime\Python.Runtime.15.csproj" Properties="PYTHONNET_PY3_VERSION=PYTHON38;Configuration=$(Configuration);TargetFramework=net40;Python3Version=PYTHON38;OutputPath=bin\for_perf\"> | ||
| 32 | 32 | <Output TaskParameter="TargetOutputs" ItemName="NewPythonRuntime" /> | |
| 33 | 33 | </MSBuild> | |
| 34 | 34 | </Target> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -164,8 +164,6 @@ | |||
| 164 | 164 | <Compile Include="$(PythonInteropFile)" /> | |
| 165 | 165 | </ItemGroup> | |
| 166 | 166 | <ItemGroup Condition=" '$(PythonInteropFile)' == '' "> | |
| 167 | - <Compile Include="interop34.cs" /> | ||
| 168 | - <Compile Include="interop35.cs" /> | ||
| 169 | 167 | <Compile Include="interop36.cs" /> | |
| 170 | 168 | <Compile Include="interop37.cs" /> | |
| 171 | 169 | <Compile Include="interop38.cs" /> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments