Skip to content

Commit eeb0e7c

Browse files
[release/9.0] Mark Aspire.Hosting.Python as experimental (#6460)
* Mark Aspire.Hosting.Python as experimental Fixes #6298 * PR feedbcak * Move suppression to csproj * Remove stable flag from csproj --------- Co-authored-by: Sebastien Ros <sebastienros@gmail.com>
1 parent f0ad73e commit eeb0e7c

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

playground/python/Python.AppHost/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
#pragma warning disable ASPIREHOSTINGPYTHON001 // Test for experimental feature
5+
46
var builder = DistributedApplication.CreateBuilder(args);
57

68
builder.AddPythonApp("script-only", "../script_only", "main.py");

src/Aspire.Hosting.Python/Aspire.Hosting.Python.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
<PackageTags>aspire integration hosting python</PackageTags>
77
<Description>Python support for .NET Aspire.</Description>
88
<MinCodeCoverage>80</MinCodeCoverage>
9-
<!-- In preview until the public API is validated. -->
10-
<SuppressFinalPackageVersion>true</SuppressFinalPackageVersion>
119
</PropertyGroup>
1210

1311
<ItemGroup>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
using System.Diagnostics.CodeAnalysis;
5+
6+
[assembly: Experimental("ASPIREHOSTINGPYTHON001", UrlFormat = "https://aka.ms/dotnet/aspire/diagnostics#{0}")]

tests/Aspire.Hosting.Python.Tests/Aspire.Hosting.Python.Tests.csproj

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

33
<PropertyGroup>
44
<TargetFramework>$(DefaultTargetFramework)</TargetFramework>
5+
<NoWarn>
6+
$(NoWarn);
7+
ASPIREHOSTINGPYTHON001;
8+
</NoWarn>
59
</PropertyGroup>
610

711
<ItemGroup>

0 commit comments

Comments
 (0)