Skip to content

Commit

Permalink
Update to .NET Core 3.0 release (#644)
Browse files Browse the repository at this point in the history
* Update to release

* Update packages to match DLR
  • Loading branch information
slozier authored Sep 28, 2019
1 parent dd38093 commit 5b4ff35
Show file tree
Hide file tree
Showing 15 changed files with 100 additions and 272 deletions.
2 changes: 1 addition & 1 deletion Build/steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ steps:
displayName: Install .NET Core 3.0 SDK for build
inputs:
packageType: 'sdk'
version: '3.0.100-preview5-011568'
version: '3.0.100'

# Install mono when running on Linux
- ${{ if eq(parameters.os, 'Linux') }}:
Expand Down
335 changes: 84 additions & 251 deletions IronPython.ruleset

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions IronPython.sln
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
CurrentVersion.props = CurrentVersion.props
Directory.Build.props = Directory.Build.props
IronPython.nuspec = IronPython.nuspec
IronPython.ruleset = IronPython.ruleset
IronPython.StdLib.nuspec = IronPython.StdLib.nuspec
LICENSE = LICENSE
make.cmd = make.cmd
Expand Down
4 changes: 2 additions & 2 deletions Src/IronPython.Modules/IronPython.Modules.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-19270-01" PrivateAssets="All" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.3">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-19367-01" PrivateAssets="All" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand Down
1 change: 0 additions & 1 deletion Src/IronPython.Modules/_ctypes/CFuncPtr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,6 @@ private INativeType GetNativeReturnType() {
private ArgumentMarshaller/*!*/[]/*!*/ GetArgumentMarshallers(DynamicMetaObject/*!*/[]/*!*/ args) {
CFuncPtrType funcType = ((CFuncPtrType)Value.NativeType);
ArgumentMarshaller[] res = new ArgumentMarshaller[args.Length];


// first arg is taken by self if we're a com method
for (int i = 0; i < args.Length; i++) {
Expand Down
4 changes: 2 additions & 2 deletions Src/IronPython/IronPython.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-19270-01" PrivateAssets="All" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.3">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-19367-01" PrivateAssets="All" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand Down
1 change: 1 addition & 0 deletions Src/IronPython/Runtime/PythonDictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,7 @@ object IEnumerator<object>.Current {
}

void IDisposable.Dispose() {
_keys.Dispose();
}

public object __iter__() {
Expand Down
2 changes: 1 addition & 1 deletion Src/IronPythonCompiler/IronPythonCompiler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.3">
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion Src/IronPythonConsole/IronPythonConsole.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.3">
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion Src/IronPythonConsoleAny/IronPythonConsoleAny.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.3">
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand Down
6 changes: 3 additions & 3 deletions Src/IronPythonTest/IronPythonTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="NUnitLite" Version="3.11.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.1.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.13.0" />
<PackageReference Include="NUnitLite" Version="3.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.15.1" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Src/IronPythonWindow/IronPythonWindow.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.3">
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion Src/IronPythonWindowAny/IronPythonWindowAny.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.3">
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand Down
6 changes: 0 additions & 6 deletions Tests/test_formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,6 @@ def test_format_testfile(self):
"""the following is borrowed from stdlib"""
import math
format_testfile = 'formatfloat_testcases.txt'
bugged = {
('%.2f', 0.004999): "0.01",
('%f', 4.9989999999999997e-07): "0.000001",
}
with open(os.path.join(self.test_dir, format_testfile)) as testfile:
for line in testfile:
print line
Expand All @@ -324,8 +320,6 @@ def test_format_testfile(self):
lhs, rhs = map(str.strip, line.split('->'))
fmt, arg = lhs.split()
arg = float(arg)
if is_netcoreapp30: # https://github.com/dotnet/corefx/issues/37524
rhs = bugged.get((fmt, arg), rhs)
self.assertEqual(fmt % arg, rhs)
if not math.isnan(arg) and math.copysign(1.0, arg) > 0.0:
print("minus")
Expand Down

0 comments on commit 5b4ff35

Please sign in to comment.