Skip to content

Commit 09ac68d

Browse files
committed
Merge branch 'main' into 3.6
2 parents a20040e + eee41a5 commit 09ac68d

File tree

14 files changed

+27
-20
lines changed

14 files changed

+27
-20
lines changed

.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ dotnet_naming_symbols.method_and_property_symbols.applicable_accessibilities = *
3737
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
3838

3939
# enforce some code styles
40-
dotnet_style_require_accessibility_modifiers = for_non_interface_members:error
41-
csharp_preferred_modifier_order = public, private, protected, internal, static, extern, new, virtual, abstract, sealed, override, readonly, unsafe, volatile, async:error
40+
dotnet_style_require_accessibility_modifiers = for_non_interface_members:warning
41+
csharp_preferred_modifier_order = public, private, protected, internal, file, static, extern, new, virtual, abstract, sealed, override, readonly, unsafe, required, volatile, async:warning
4242

4343
# CA2241: Provide correct arguments to formatting methods
4444
dotnet_code_quality.CA2241.try_determine_additional_string_formatting_methods_automatically = true

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: CI
22

33
on: [push, pull_request]
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
59
jobs:
610
build:
711
runs-on: ${{ matrix.os }}

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[submodule "Src/DLR"]
1+
[submodule "DLR"]
22
path = src/dlr
33
url = https://github.com/IronLanguages/dlr
44
branch = main

Directory.Build.props

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@
5252
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
5353
</PropertyGroup>
5454

55+
<PropertyGroup Condition=" '$(ContinuousIntegrationBuild)' == 'true' ">
56+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
57+
</PropertyGroup>
58+
5559
<PropertyGroup>
5660
<EmbedUntrackedSources>true</EmbedUntrackedSources>
5761
</PropertyGroup>
@@ -108,7 +112,6 @@
108112
<Import Project="$(BuildSysDir)\$(TargetFramework).props" Condition="'$(TargetFramework)' != ''" />
109113

110114
<PropertyGroup>
111-
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
112115
<NoWarn>1573;1591</NoWarn>
113116
<ErrorReport>prompt</ErrorReport>
114117
<WarningLevel>4</WarningLevel>

IronPython.slnx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<Solution>
22
<Folder Name="/DLR/">
3-
<Project Path="src/dlr/Src/Microsoft.Dynamic/Microsoft.Dynamic.csproj" />
4-
<Project Path="src/dlr/Src/Microsoft.Scripting.Metadata/Microsoft.Scripting.Metadata.csproj" />
5-
<Project Path="src/dlr/Src/Microsoft.Scripting/Microsoft.Scripting.csproj" />
3+
<Project Path="src/dlr/src/core/Microsoft.Dynamic/Microsoft.Dynamic.csproj" />
4+
<Project Path="src/dlr/src/core/Microsoft.Scripting.Metadata/Microsoft.Scripting.Metadata.csproj" />
5+
<Project Path="src/dlr/src/core/Microsoft.Scripting/Microsoft.Scripting.csproj" />
66
</Folder>
77
<Folder Name="/DLR/Tests/">
8-
<Project Path="src/dlr/Tests/ClrAssembly/ClrAssembly.csproj" />
8+
<Project Path="src/dlr/tests/ClrAssembly/ClrAssembly.csproj" />
99
</Folder>
1010
<Folder Name="/Solution Items/">
1111
<File Path=".editorconfig" />

eng/scripts/generate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def get_root_dir():
1616

1717
source_directories = [
1818
os.path.join(root_dir, "src"),
19-
os.path.join(root_dir, "src", "dlr", "Src"),
19+
os.path.join(root_dir, "src", "dlr", "src"),
2020
]
2121

2222
exclude_directories = [

eng/scripts/generate_comdispatch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def write_accessor(self, cw, transparent):
5555

5656
# Getter
5757
if not transparent and self.critical: gen_exposed_code_security(cw)
58-
cw.enter_block("get")
58+
cw.enter_block("readonly get")
5959
cw.write("Debug.Assert(VariantType == VarEnum.VT_%s);" % self.variantType)
6060
if self.getStatements == None:
6161
cw.write("return _typeUnion._unionTypes.%s;" % self.managedFieldName)

eng/scripts/generate_exception_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def gen_expr_factory_com(cw):
172172
gen_expr_factory(cw, generate.root_dir + "\\..\\..\\ndp\\fx\\src\\Dynamic\\System\\Dynamic\\System.Dynamic.txt")
173173

174174
def gen_expr_factory_scripting(cw):
175-
gen_expr_factory(cw, generate.root_dir + "\\src\\dlr\\Src\\Microsoft.Dynamic\\Microsoft.Scripting.txt")
175+
gen_expr_factory(cw, generate.root_dir + "\\src\\dlr\\src\\Microsoft.Dynamic\\Microsoft.Scripting.txt")
176176

177177
def main():
178178
return generate.generate(

src/core/IronPython/IronPython.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<ProjectReference Include="..\..\dlr\Src\Microsoft.Dynamic\Microsoft.Dynamic.csproj" />
11+
<ProjectReference Include="..\..\dlr\src\core\Microsoft.Dynamic\Microsoft.Dynamic.csproj" />
1212
</ItemGroup>
1313

1414
<ItemGroup>

src/core/IronPython/Lib/iptest/ipunittest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ def generate_suite(tests, failing_tests, skip_tests=[]):
234234
# if not rowan_root:
235235
# rowan_root = sys.prefix
236236
# if is_cli:
237-
# if System.IO.Directory.Exists(path_combine(rowan_root, '../../Src')):
238-
# basePyDir = '../../Src'
237+
# if System.IO.Directory.Exists(path_combine(rowan_root, '../../src')):
238+
# basePyDir = '../../src'
239239

240240
# # get some directories and files
241241
# ip_root = path_combine(rowan_root, basePyDir)

0 commit comments

Comments
 (0)