Skip to content

Commit cb4ded2

Browse files
committed
Merge branch 'main' into 3.6
2 parents 6779c43 + 29308e7 commit cb4ded2

File tree

90 files changed

+927
-745
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+927
-745
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ dotnet_naming_style.pascal_case_style.capitalization = pascal_case
4040
dotnet_style_require_accessibility_modifiers = for_non_interface_members:error
4141
csharp_preferred_modifier_order = public, private, protected, internal, static, extern, new, virtual, abstract, sealed, override, readonly, unsafe, volatile, async:error
4242

43+
# CA2241: Provide correct arguments to formatting methods
44+
dotnet_code_quality.CA2241.try_determine_additional_string_formatting_methods_automatically = true
45+
4346
# IPY01: Parameter which is marked not nullable does not have the NotNullAttribute
4447
dotnet_diagnostic.IPY01.severity = warning
4548

@@ -95,6 +98,7 @@ dotnet_diagnostic.CA2211.severity = none # CA2211: Non-constant fields sh
9598
dotnet_diagnostic.CA2219.severity = suggestion # CA2219: Do not raise exceptions in finally clauses
9699
dotnet_diagnostic.CA2229.severity = suggestion # CA2229: Implement serialization constructors
97100
dotnet_diagnostic.CA2249.severity = suggestion # CA2249: Consider using 'string.Contains' instead of 'string.IndexOf'
101+
dotnet_diagnostic.CA2263.severity = none # CA2263: Prefer generic overload when type is known
98102
dotnet_diagnostic.CA3075.severity = suggestion # CA3075: Insecure DTD processing in XML
99103
dotnet_diagnostic.CA5350.severity = suggestion # CA5350: Do Not Use Weak Cryptographic Algorithms
100104
dotnet_diagnostic.CA5351.severity = suggestion # CA5351: Do Not Use Broken Cryptographic Algorithms

.github/workflows/main.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
os: [windows-latest, ubuntu-22.04, macos-latest]
12+
os: [windows-latest, ubuntu-22.04, macos-14]
1313

1414
steps:
1515
# Prerequisites
@@ -21,18 +21,18 @@ jobs:
2121
submodules: true
2222

2323
# Setup .NET
24-
- name: Setup .NET 6.0
24+
- name: Setup .NET 10.0
2525
uses: actions/setup-dotnet@v4
2626
with:
27-
dotnet-version: '6.0.x'
28-
- name: Setup .NET 8.0
29-
uses: actions/setup-dotnet@v4
30-
with:
31-
dotnet-version: '8.0.x'
27+
dotnet-version: '10.0.x'
3228
- name: Setup .NET 9.0
3329
uses: actions/setup-dotnet@v4
3430
with:
3531
dotnet-version: '9.0.x'
32+
- name: Setup .NET 8.0
33+
uses: actions/setup-dotnet@v4
34+
with:
35+
dotnet-version: '8.0.x'
3636

3737
# CI debug information
3838
- name: Version Information
@@ -60,8 +60,8 @@ jobs:
6060
strategy:
6161
fail-fast: false
6262
matrix:
63-
os: [windows-latest, ubuntu-22.04, macos-latest]
64-
framework: ['net462', 'net6.0', 'net8.0']
63+
os: [windows-latest, ubuntu-22.04, macos-14]
64+
framework: ['net462', 'net8.0', 'net10.0']
6565

6666
steps:
6767
# Prerequisites
@@ -70,18 +70,18 @@ jobs:
7070
submodules: true
7171

7272
# Setup .NET
73-
- name: Setup .NET 6.0
73+
- name: Setup .NET 10.0
7474
uses: actions/setup-dotnet@v4
7575
with:
76-
dotnet-version: '6.0.x'
77-
- name: Setup .NET 8.0
78-
uses: actions/setup-dotnet@v4
79-
with:
80-
dotnet-version: '8.0.x'
76+
dotnet-version: '10.0.x'
8177
- name: Setup .NET 9.0
8278
uses: actions/setup-dotnet@v4
8379
with:
8480
dotnet-version: '9.0.x'
81+
- name: Setup .NET 8.0
82+
uses: actions/setup-dotnet@v4
83+
with:
84+
dotnet-version: '8.0.x'
8585

8686
# Build & Test
8787
- name: Build

.vsts-ci.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
imageName: 'ubuntu-22.04'
88
mac:
99
osName: 'macOS'
10-
imageName: 'macOS-latest'
10+
imageName: 'macOS-14'
1111
windows:
1212
osName: 'Windows'
1313
imageName: 'windows-latest'
@@ -32,10 +32,10 @@ jobs:
3232

3333
# Setup .NET
3434
- task: UseDotNet@2
35-
displayName: Install .NET 9.0 SDK for build
35+
displayName: Install .NET 10.0 SDK for build
3636
inputs:
3737
packageType: 'sdk'
38-
version: '9.0.x'
38+
version: '10.0.x'
3939

4040
# Display version info
4141
- task: PowerShell@2
@@ -88,38 +88,38 @@ jobs:
8888
osName: Linux
8989
imageName: ubuntu-22.04
9090
framework: net462
91-
linux_net6_0:
92-
osName: Linux
93-
imageName: ubuntu-22.04
94-
framework: net6.0
9591
linux_net8_0:
9692
osName: Linux
9793
imageName: ubuntu-22.04
9894
framework: net8.0
9995
macos_net462:
10096
osName: macOS
101-
imageName: macOS-latest
97+
imageName: macOS-14
10298
framework: net462
103-
macos_net6_0:
104-
osName: macOS
105-
imageName: macOS-latest
106-
framework: net6.0
10799
macos_net8_0:
108100
osName: macOS
109-
imageName: macOS-latest
101+
imageName: macOS-14
110102
framework: net8.0
111103
windows_net462:
112104
osName: Windows
113105
imageName: windows-latest
114106
framework: net462
115-
windows_net6_0:
116-
osName: Windows
117-
imageName: windows-latest
118-
framework: net6.0
119107
windows_net8_0:
120108
osName: Windows
121109
imageName: windows-latest
122110
framework: net8.0
111+
linux_net10_0:
112+
osName: Linux
113+
imageName: ubuntu-22.04
114+
framework: net10.0
115+
macos_net10_0:
116+
osName: macOS
117+
imageName: macOS-14
118+
framework: net10.0
119+
windows_net10_0:
120+
osName: Windows
121+
imageName: windows-latest
122+
framework: net10.0
123123

124124
displayName: Test
125125
timeoutInMinutes: 180
@@ -133,20 +133,20 @@ jobs:
133133

134134
# Setup .NET
135135
- task: UseDotNet@2
136-
displayName: Install .NET 6.0 runtime for testing
136+
displayName: Install .NET 10.0 SDK for build
137+
inputs:
138+
packageType: 'sdk'
139+
version: '10.0.x'
140+
- task: UseDotNet@2
141+
displayName: Install .NET 9.0 runtime for testing
137142
inputs:
138143
packageType: 'runtime'
139-
version: '6.0.x'
144+
version: '9.0.x'
140145
- task: UseDotNet@2
141146
displayName: Install .NET 8.0 runtime for testing
142147
inputs:
143148
packageType: 'runtime'
144149
version: '8.0.x'
145-
- task: UseDotNet@2
146-
displayName: Install .NET 9.0 SDK for build
147-
inputs:
148-
packageType: 'sdk'
149-
version: '9.0.x'
150150

151151
# Build & Test
152152
- powershell: ./make.ps1

Build.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<MacOS Condition="$([MSBuild]::IsOSPlatform('OSX'))">true</MacOS>
99

1010
<RootDir>$(MSBuildThisFileDirectory)</RootDir>
11-
<Solution>$(RootDir)IronPython.sln</Solution>
11+
<Solution>$(RootDir)IronPython.slnx</Solution>
1212
<UtilsDir>$(RootDir)eng\utils</UtilsDir>
1313
<BinDir>$(RootDir)bin</BinDir>
1414
<BuildSysDir>$(RootDir)eng</BuildSysDir>

Directory.Build.props

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
<FileVersion>$(MajorVersion).$(MinorVersion).$(MicroVersion).$(AssemblyFileRevision)</FileVersion>
2828
<InformationalVersion>$(MSBuildProjectName) $(MajorVersion).$(MinorVersion).$(MicroVersion) $(ReleaseLevel) $(ReleaseSerial)</InformationalVersion>
2929

30+
<PythonSymbols>PYTHON_$(MajorVersion)$(MinorVersion)</PythonSymbols>
31+
<PythonSymbols Condition="'$(MajorVersion)$(MinorVersion)' >= '36'">$(PythonSymbols);PYTHON_36_OR_GREATER</PythonSymbols>
32+
3033
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
3134

3235
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
@@ -125,7 +128,7 @@
125128
<DebugType>portable</DebugType>
126129
<Optimize>true</Optimize>
127130
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
128-
<DefineConstants>$(Features);$(SignedSym);TRACE</DefineConstants>
131+
<DefineConstants>$(PythonSymbols);$(Features);$(SignedSym);TRACE</DefineConstants>
129132
</PropertyGroup>
130133

131134
<!-- Debug -->
@@ -135,6 +138,6 @@
135138
<Optimize>false</Optimize>
136139
<!-- TODO: Python & zlib.net need some work -->
137140
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
138-
<DefineConstants>$(Features);$(SignedSym);DEBUG;TRACE</DefineConstants>
141+
<DefineConstants>$(PythonSymbols);$(Features);$(SignedSym);DEBUG;TRACE</DefineConstants>
139142
</PropertyGroup>
140143
</Project>

0 commit comments

Comments
 (0)