Skip to content

Commit 09bbae3

Browse files
committed
Prepare for 2.5.0 release
1 parent 21cb776 commit 09bbae3

File tree

10 files changed

+54
-33
lines changed

10 files changed

+54
-33
lines changed

CHANGELOG.md

Lines changed: 43 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,45 +5,66 @@ project adheres to [Semantic Versioning][].
55

66
This document follows the conventions laid out in [Keep a CHANGELOG][].
77

8-
## [unreleased][]
8+
## [Unreleased][]
99

1010
### Added
1111

12-
- Added automatic NuGet package generation in appveyor and local builds
13-
- Added function that sets Py_NoSiteFlag to 1.
14-
- Added support for Jetson Nano.
15-
- Added support for __len__ for .NET classes that implement ICollection
16-
- Added `PyExport` attribute to hide .NET types from Python
17-
- Added PythonException.Format method to format exceptions the same as traceback.format_exception
18-
- Added Runtime.None to be able to pass None as parameter into Python from .NET
19-
- Added PyObject.IsNone() to check if a Python object is None in .NET.
12+
### Changed
13+
14+
### Fixed
15+
16+
## [2.5.0-rc2][] - 2020-06-07
17+
18+
This version improves performance on benchmarks significantly compared to 2.3.
19+
20+
### Added
21+
22+
- Automatic NuGet package generation in appveyor and local builds
23+
- Function that sets `Py_NoSiteFlag` to 1.
24+
- Support for Jetson Nano.
25+
- Support for `__len__` for .NET classes that implement ICollection
26+
- `PyExport` attribute to hide .NET types from Python
27+
- `PythonException.Format` method to format exceptions the same as
28+
`traceback.format_exception`
29+
- `Runtime.None` to be able to pass `None` as parameter into Python from .NET
30+
- `PyObject.IsNone()` to check if a Python object is None in .NET.
2031
- Support for Python 3.8
32+
- Codecs as the designated way to handle automatic conversions between
33+
.NET and Python types
2134

2235
### Changed
2336

2437
- Added argument types information to "No method matches given arguments" message
2538
- Moved wheel import in setup.py inside of a try/except to prevent pip collection failures
26-
- Removes PyLong_GetMax and PyClass_New when targetting Python3
39+
- Removes `PyLong_GetMax` and `PyClass_New` when targetting Python3
2740
- Improved performance of calls from Python to C#
2841
- Added support for converting python iterators to C# arrays
29-
- Changed usage of obselete function GetDelegateForFunctionPointer(IntPtr, Type) to GetDelegateForFunctionPointer<TDelegate>(IntPtr)
30-
- When calling C# from Python, enable passing argument of any type to a parameter of C# type `object` by wrapping it into `PyObject` instance. ([#881][i881])
42+
- Changed usage of the obsolete function
43+
`GetDelegateForFunctionPointer(IntPtr, Type)` to
44+
`GetDelegateForFunctionPointer<TDelegate>(IntPtr)`
45+
- When calling C# from Python, enable passing argument of any type to a
46+
parameter of C# type `object` by wrapping it into `PyObject` instance.
47+
([#881][i881])
3148
- Added support for kwarg parameters when calling .NET methods from Python
3249
- Changed method for finding MSBuild using vswhere
33-
- Reworked `Finalizer`. Now objects drop into its queue upon finalization, which is periodically drained when new objects are created.
34-
- Marked `Runtime.OperatingSystemName` and `Runtime.MachineName` as `Obsolete`, should never have been `public` in the first place. They also don't necessarily return a result that matches the `platform` module's.
50+
- Reworked `Finalizer`. Now objects drop into its queue upon finalization,
51+
which is periodically drained when new objects are created.
52+
- Marked `Runtime.OperatingSystemName` and `Runtime.MachineName` as
53+
`Obsolete`, should never have been `public` in the first place. They also
54+
don't necessarily return a result that matches the `platform` module's.
3555

3656
### Fixed
3757

38-
- Fixed runtime that fails loading when using pythonnet in an environment
39-
together with Nuitka
40-
- Fixes bug where delegates get casts (dotnetcore)
41-
- Determine size of interpreter longs at runtime
42-
- Handling exceptions ocurred in ModuleObject's getattribute
43-
- Fill `__classcell__` correctly for Python subclasses of .NET types
44-
- Fixed issue with params methods that are not passed an array.
58+
- Fixed runtime that fails loading when using pythonnet in an environment
59+
together with Nuitka
60+
- Fixes bug where delegates get casts (dotnetcore)
61+
- Determine size of interpreter longs at runtime
62+
- Handling exceptions ocurred in ModuleObject's getattribute
63+
- Fill `__classcell__` correctly for Python subclasses of .NET types
64+
- Fixed issue with params methods that are not passed an array.
65+
- Use UTF8 to encode strings passed to `PyRun_String` on Python 3
4566

46-
## [2.4.0][]
67+
## [2.4.0][] - 2019-05-15
4768

4869
### Added
4970

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def _build_monoclr(self):
400400
mono_cflags = _check_output("pkg-config --cflags mono-2", shell=True)
401401
cflags = mono_cflags.strip()
402402
libs = mono_libs.strip()
403-
403+
404404
# build the clr python module
405405
clr_ext = Extension(
406406
"clr",
@@ -633,7 +633,7 @@ def run(self):
633633

634634
setup(
635635
name="pythonnet",
636-
version="2.4.1-dev",
636+
version="2.5.0rc2",
637637
description=".Net and Mono integration for Python",
638638
url="https://pythonnet.github.io/",
639639
license="MIT",

src/SharedAssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
// Version Information. Keeping it simple. May need to revisit for Nuget
2626
// See: https://codingforsmarties.wordpress.com/2016/01/21/how-to-version-assemblies-destined-for-nuget/
2727
// AssemblyVersion can only be numeric
28-
[assembly: AssemblyVersion("2.4.1")]
28+
[assembly: AssemblyVersion("2.5.0")]

src/clrmodule/ClrModule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static void initclr()
5353
{
5454
#if USE_PYTHON_RUNTIME_VERSION
5555
// Has no effect until SNK works. Keep updated anyways.
56-
Version = new Version("2.4.1"),
56+
Version = new Version("2.5.0"),
5757
#endif
5858
CultureInfo = CultureInfo.InvariantCulture
5959
};

src/clrmodule/clrmodule.15.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<RootNamespace>clrmodule</RootNamespace>
1010
<AssemblyName>clrmodule</AssemblyName>
1111
<PackageId>clrmodule</PackageId>
12-
<VersionPrefix>2.4.1</VersionPrefix>
12+
<VersionPrefix>2.5.0</VersionPrefix>
1313
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
1414
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
1515
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>

src/console/Console.15.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<AssemblyName>nPython</AssemblyName>
99
<RootNamespace>Python.Runtime</RootNamespace>
1010
<PackageId>nPython</PackageId>
11-
<VersionPrefix>2.4.1</VersionPrefix>
11+
<VersionPrefix>2.5.0</VersionPrefix>
1212
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
1313
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
1414
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>

src/embed_tests/Python.EmbeddingTest.15.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<AssemblyName>Python.EmbeddingTest</AssemblyName>
1111
<RootNamespace>Python.EmbeddingTest</RootNamespace>
1212
<PackageId>Python.EmbeddingTest</PackageId>
13-
<VersionPrefix>2.4.1</VersionPrefix>
13+
<VersionPrefix>2.5.0</VersionPrefix>
1414
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
1515
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
1616
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>

src/runtime/Python.Runtime.15.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project>
1+
<Project>
22
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
33
<PropertyGroup>
44
<TargetFrameworks>net40;netstandard2.0</TargetFrameworks>
@@ -8,7 +8,7 @@
88
<RootNamespace>Python.Runtime</RootNamespace>
99
<AssemblyName>Python.Runtime</AssemblyName>
1010
<PackageId>pythonnet</PackageId>
11-
<VersionPrefix>2.4.1</VersionPrefix>
11+
<VersionPrefix>2.5.0</VersionPrefix>
1212
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1313
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
1414
<Title>Python.NET</Title>

src/runtime/resources/clr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Code in this module gets loaded into the main clr module.
33
"""
44

5-
__version__ = "2.4.1"
5+
__version__ = "2.5.0"
66

77

88
class clrproperty(object):

src/testing/Python.Test.15.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<AssemblyName>Python.Test</AssemblyName>
88
<RootNamespace>Python.Test</RootNamespace>
99
<PackageId>Python.Test</PackageId>
10-
<VersionPrefix>2.4.1</VersionPrefix>
10+
<VersionPrefix>2.5.0</VersionPrefix>
1111
<OutputPath>bin\</OutputPath>
1212
<AppendTargetFrameworkToOutputPath Condition="'$(TargetFramework)'=='net40'">false</AppendTargetFrameworkToOutputPath>
1313
<DocumentationFile Condition="'$(TargetFramework)'=='net40'">$(OutputPath)\$(AssemblyName).xml</DocumentationFile>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy