Skip to content

Commit 97e61a5

Browse files
committed
Merge branch 'master' into soft-shutdown
2 parents c7b134c + b5ba815 commit 97e61a5

29 files changed

+277
-624
lines changed

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ python:
55
- 3.8
66
- 3.7
77
- 3.6
8-
- 3.5
98

109
env:
1110
matrix:

AUTHORS.md

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
- Christoph Gohlke ([@cgohlke](https://github.com/cgohlke))
2929
- Christopher Bremner ([@chrisjbremner](https://github.com/chrisjbremner))
3030
- Christopher Pow ([@christopherpow](https://github.com/christopherpow))
31+
- Daniel Abrahamsson ([@danabr](https://github.com/danabr))
3132
- Daniel Fernandez ([@fdanny](https://github.com/fdanny))
3233
- Daniel Santana ([@dgsantana](https://github.com/dgsantana))
3334
- Dave Hirschfeld ([@dhirschfeld](https://github.com/dhirschfeld))

CHANGELOG.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,18 @@ This document follows the conventions laid out in [Keep a CHANGELOG][].
1010
### Added
1111

1212
### Changed
13-
- Drop support for Python 2
13+
- Drop support for Python 2, 3.4, and 3.5
1414
- `clr.AddReference` may now throw errors besides `FileNotFoundException`, that provide more
1515
details about the cause of the failure
1616
- `clr.AddReference` no longer adds ".dll" implicitly
17+
- `PyIter(PyObject)` constructor replaced with static `PyIter.GetIter(PyObject)` method
1718

1819
### Fixed
1920

2021
- Fix incorrect dereference of wrapper object in `tp_repr`, which may result in a program crash
2122
- 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
2225

2326
## [2.5.0][] - 2020-06-14
2427

appveyor.yml

-3
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,9 @@ environment:
2020
BUILD_OPTS: --xplat
2121
- PYTHON_VERSION: 3.6
2222
BUILD_OPTS: --xplat
23-
- PYTHON_VERSION: 3.5
24-
BUILD_OPTS: --xplat
2523
- PYTHON_VERSION: 3.8
2624
- PYTHON_VERSION: 3.7
2725
- PYTHON_VERSION: 3.6
28-
- PYTHON_VERSION: 3.5
2926
- PYTHON_VERSION: 3.7
3027
PYTHONNET_SHUTDOWN_MODE: Soft
3128
- PYTHON_VERSION: 3.8

setup.py

-1
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,6 @@ def run(self):
637637
"License :: OSI Approved :: MIT License",
638638
"Programming Language :: C#",
639639
"Programming Language :: Python :: 3",
640-
"Programming Language :: Python :: 3.5",
641640
"Programming Language :: Python :: 3.6",
642641
"Programming Language :: Python :: 3.7",
643642
"Programming Language :: Python :: 3.8",

src/embed_tests/TestFinalizer.cs

+12
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,18 @@ public void CollectBasicObject()
8787
Assert.GreaterOrEqual(objectCount, 1);
8888
}
8989

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+
90102
private static void MakeAGarbage(out WeakReference shortWeak, out WeakReference longWeak)
91103
{
92104
PyLong obj = new PyLong(1024);

src/perf_tests/Python.PerformanceTests.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</ItemGroup>
2929

3030
<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\">
3232
<Output TaskParameter="TargetOutputs" ItemName="NewPythonRuntime" />
3333
</MSBuild>
3434
</Target>

src/runtime/Python.Runtime.csproj

-2
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,6 @@
164164
<Compile Include="$(PythonInteropFile)" />
165165
</ItemGroup>
166166
<ItemGroup Condition=" '$(PythonInteropFile)' == '' ">
167-
<Compile Include="interop34.cs" />
168-
<Compile Include="interop35.cs" />
169167
<Compile Include="interop36.cs" />
170168
<Compile Include="interop37.cs" />
171169
<Compile Include="interop38.cs" />

src/runtime/interop34.cs

-209
This file was deleted.

0 commit comments

Comments
 (0)