Skip to content

Commit b7aaefa

Browse files
committed
Merge branch 'master' into 3.6
# Conflicts: # Src/IronPython/Runtime/PythonList.cs
2 parents 26960dd + 0be3c1c commit b7aaefa

Some content is hidden

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

56 files changed

+401
-270
lines changed

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ dotnet_diagnostic.CA1846.severity = none # CA1846: Prefer 'AsSpan' over '
8282
dotnet_diagnostic.CA1847.severity = none # CA1847: Use char literal for a single character lookup
8383
dotnet_diagnostic.CA1852.severity = suggestion # CA1852: Seal internal types
8484
dotnet_diagnostic.CA1859.severity = suggestion # CA1859: Use concrete types when possible for improved performance
85+
dotnet_diagnostic.CA1861.severity = suggestion # CA1861: Avoid constant arrays as arguments
8586
dotnet_diagnostic.CA2101.severity = suggestion # CA2101: Specify marshaling for P/Invoke string arguments
8687
dotnet_diagnostic.CA2201.severity = none # CA2201: Do not raise reserved exception types
8788
dotnet_diagnostic.CA2208.severity = suggestion # CA2208: Instantiate argument exceptions correctly

.github/ISSUE_TEMPLATE.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### Prerequisites
22

3-
The issue tracker is used to report bugs and request new features, NOT to ask questions.
3+
The issue tracker is used to report bugs and request new features, **NOT** to ask questions.
44

55
Questions should be posted in [Discussions](https://github.com/IronLanguages/ironpython3/discussions/categories/q-a) or to the users mailing list which can be accessed at
66
https://ironpython.groups.io/g/users.
@@ -19,10 +19,21 @@ https://ironpython.groups.io/g/users.
1919
2. [Second Step]
2020
3. [and so on...]
2121

22-
**Expected behavior:** [What you expected to happen]
22+
**Expected behavior:**
2323

24-
**Actual behavior:** [What actually happened]
24+
[What you expected to happen]
2525

26-
### Versions
26+
**Actual behavior:**
2727

28-
You can get this information from executing `ipy -VV`.
28+
[What actually happened]
29+
30+
### Version Information
31+
32+
If you are using the `ipy` console program, provide output of executing `ipy -VV`. If it is a local build, provide also the git hash of the commit used to build IronPython. In either case, provide the type of the operating system used.
33+
34+
If you are using the IronPython engine embedded in a .NET application, provide the version number of the NuGet package used (or if it is a local build, the git hash of the commit used to build IronPython), and the following info:
35+
36+
* .NET platform used (choice from: .NET, .NET Core, .NET Framework, Mono, Unity, Xamarin),
37+
* Version of the .NET platform used,
38+
* Operating system used,
39+
* Value of `sys.version`, from imported module `sys`.

.github/workflows/main.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,15 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
os: [windows-latest, ubuntu-20.04, macos-latest]
13+
os: [windows-latest, ubuntu-latest, macos-latest]
1414

1515
steps:
1616
- name: Install tools
17-
if: matrix.os == 'ubuntu-20.04'
17+
if: matrix.os == 'ubuntu-latest'
1818
run: sudo apt-get -yq install mono-vbnc dos2unix
1919
- uses: actions/checkout@v2
2020
with:
2121
submodules: true
22-
- name: Setup .NET Core 2.1
23-
uses: actions/setup-dotnet@v1
24-
with:
25-
dotnet-version: '2.1.x'
2622
- name: Setup .NET Core 3.1
2723
uses: actions/setup-dotnet@v1
2824
with:
@@ -48,9 +44,6 @@ jobs:
4844
- name: Test (net462)
4945
run: ./make.ps1 -frameworks net462 test-all
5046
shell: pwsh
51-
- name: Test (netcoreapp2.1)
52-
run: ./make.ps1 -frameworks netcoreapp2.1 test-all
53-
shell: pwsh
5447
- name: Test (netcoreapp3.1)
5548
run: ./make.ps1 -frameworks netcoreapp3.1 test-all
5649
shell: pwsh

.vsts-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
displayName: Linux (Ubuntu)
1919
timeoutInMinutes: 180
2020
pool:
21-
vmImage: ubuntu-20.04
21+
vmImage: ubuntu-latest
2222
steps:
2323
- template: Build/steps.yml
2424
parameters:

Build/After.targets

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
</Choose>
2020

2121
<PropertyGroup>
22-
<_TargetFramework>$(TargetFramework)</_TargetFramework>
23-
<_TargetFramework Condition=" $(TargetFramework.EndsWith('-windows')) ">$(TargetFramework.Substring(0, $(TargetFramework.IndexOf('-windows'))))</_TargetFramework>
22+
<_TargetFramework>$(TargetFramework.Replace('-windows', ''))</_TargetFramework>
2423
<MainStageDir>$(StageDir)\$(_TargetFramework)</MainStageDir>
2524
<MainStageDir Condition=" '$(StoreInDLLs)' == 'true' ">$(StageDir)\$(_TargetFramework)\DLLs</MainStageDir>
2625
<UnsignedItems>@(StageItem)</UnsignedItems>
@@ -44,9 +43,5 @@
4443
<Copy SourceFiles="$(UnsignedItems)" DestinationFolder="$(MainStageDir)" />
4544
</Target>
4645

47-
<Target Name="_StoreInDLLs" Condition=" '$(StoreInDLLs)' == 'true' ">
48-
<Move SourceFiles="@(StageItem)" DestinationFolder="$(TargetDir)%(StageItem.RecursiveDir)DLLs" />
49-
</Target>
50-
51-
<Target Name="Stage" DependsOnTargets="_LateStage;_MainStage;_StoreInDLLs" />
46+
<Target Name="Stage" DependsOnTargets="_LateStage;_MainStage" />
5247
</Project>

Build/steps.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ steps:
2424
Write-Host ("##vso[task.setvariable variable=PackageVersion;isSecret=false;isOutput=true;]$PackageVersion")
2525
displayName: Grab Package Version
2626
27-
- task: UseDotNet@2
28-
displayName: Install .NET Core 2.1 runtime for testing
29-
inputs:
30-
packageType: 'runtime'
31-
version: '2.1.x'
32-
3327
- task: UseDotNet@2
3428
displayName: Install .NET Core 3.1 runtime for testing
3529
inputs:

IronPython.sln

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{17737ACB
3737
Build\net462.props = Build\net462.props
3838
Build\net6.0-windows.props = Build\net6.0-windows.props
3939
Build\net6.0.props = Build\net6.0.props
40-
Build\netcoreapp2.1.props = Build\netcoreapp2.1.props
41-
Build\netcoreapp3.1.props = Build\netcoreapp3.1.props
4240
Build\netstandard2.0.props = Build\netstandard2.0.props
4341
Build\steps.yml = Build\steps.yml
4442
Build\Tasks.Targets = Build\Tasks.Targets

Package/nuget/IronPython.nuspec

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,7 @@ This package contains the IronPython interpreter engine.</description>
2525
<group targetFramework="netstandard2.0">
2626
<dependency id="DynamicLanguageRuntime" version="1.3.4" />
2727
<dependency id="System.Memory" version="4.5.5" />
28-
<dependency id="System.Text.Encoding.CodePages" version="4.6.0" />
29-
<dependency id="Microsoft.Win32.Registry" version="4.5.0" />
30-
<dependency id="Mono.Unix" version="7.1.0-final.1.21458.1" />
31-
</group>
32-
<group targetFramework="netcoreapp3.1">
33-
<dependency id="DynamicLanguageRuntime" version="1.3.4" />
28+
<dependency id="System.Text.Encoding.CodePages" version="4.7.0" />
3429
<dependency id="Microsoft.Win32.Registry" version="4.7.0" />
3530
<dependency id="Mono.Unix" version="7.1.0-final.1.21458.1" />
3631
</group>
@@ -41,9 +36,9 @@ This package contains the IronPython interpreter engine.</description>
4136
</dependencies>
4237
</metadata>
4338
<files>
44-
<file src="**\IronPython*.dll" target="lib" exclude="**\IronPythonTest.dll;**\DLLs\*.dll;netcoreapp2.1\**\*;net7.0*\**\*" />
45-
<file src="**\IronPython*.pdb" target="lib" exclude="**\IronPythonTest.pdb;**\DLLs\*.pdb;netcoreapp2.1\**\*;net7.0*\**\*" />
46-
<file src="**\IronPython*.xml" target="lib" exclude="**\IronPythonTest.xml;**\DLLs\*.xml;netcoreapp2.1\**\*;net7.0*\**\*" />
39+
<file src="**\IronPython*.dll" target="lib" exclude="**\IronPythonTest.dll;**\DLLs\*.dll;netcoreapp3.1\**\*;net7.0*\**\*;net8.0*\**\*" />
40+
<file src="**\IronPython*.pdb" target="lib" exclude="**\IronPythonTest.pdb;**\DLLs\*.pdb;netcoreapp3.1\**\*;net7.0*\**\*;net8.0*\**\*" />
41+
<file src="**\IronPython*.xml" target="lib" exclude="**\IronPythonTest.xml;**\DLLs\*.xml;netcoreapp3.1\**\*;net7.0*\**\*;net8.0*\**\*" />
4742
<file src="LICENSE" />
4843
<file src="..\..\..\nuget\README.md" target="" />
4944
<file src="..\..\..\..\Documentation\logo.png" target="" />

Package/zip/Zip.Packaging.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<MakeDir Directories="$(PackageDir)" Condition="!Exists('$(PackageDir)')"/>
55

66
<ItemGroup>
7-
<ZipFiles Include="$(StageDir)\**\*.*" Exclude="$(StageDir)\README.md;$(StageDir)\**\*.pdb;$(StageDir)\netstandard2.0\**\*;$(StageDir)\netcoreapp2.1\**\*;$(StageDir)\net7.0*\**\*" />
7+
<ZipFiles Include="$(StageDir)\**\*.*" Exclude="$(StageDir)\README.md;$(StageDir)\**\*.pdb;$(StageDir)\netstandard2.0\**\*;$(StageDir)\netcoreapp3.1\**\*;$(StageDir)\net7.0*\**\*;$(StageDir)\net8.0*\**\*" />
88
<ZipFiles Include="README.md" Link="$(MSBuildThisFileDirectory)README.md" />
99
<ZipFiles Include="scripts/Enter-IronPythonEnvironment.ps1" Link="$(RootDir)Src\Scripts\Enter-IronPythonEnvironment.ps1" />
1010
<ZipFiles Include="scripts/Install-IronPython.ps1" Link="$(RootDir)Src\Scripts\Install-IronPython.ps1" />

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ Binaries of IronPython 3 can be downloaded from the [release page](https://githu
8686
See the [building document](Documentation/building.md). Since the main development is on Windows, bugs on other platforms may inadvertently be introduced - please report them!
8787

8888
## Supported Platforms
89-
IronPython 3 targets .NET Framework 4.6.2, .NET Standard 2.0, .NET Core 3.1 and .NET 6.0. The support for .NET and .NET Core follow the lifecycle defined on [.NET and .NET Core Support Policy](https://dotnet.microsoft.com/platform/support/policy/dotnet-core).
89+
IronPython 3 targets .NET Framework 4.6.2, .NET Standard 2.0 and .NET 6.0. The support for .NET and .NET Core follow the lifecycle defined on [.NET and .NET Core Support Policy](https://dotnet.microsoft.com/platform/support/policy/dotnet-core).

0 commit comments

Comments
 (0)