@@ -165,9 +165,9 @@ def __post_init__(self):
165165 # Set the lifecycle information taken from
166166 # https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core
167167 self .supported_until = {
168- "6.0" : datetime .date (2024 , 11 , 12 ),
169168 "8.0" : datetime .date (2026 , 11 , 10 ),
170- "9.0" : datetime .date (2026 , 5 , 12 ),
169+ "9.0" : datetime .date (2026 , 11 , 10 ),
170+ "10.0" : datetime .date (2028 , 11 , 12 ),
171171 }.get (str (self .tag_version ))
172172 assert self .supported_until , (
173173 f".Net version missing in lifecycle information: { self .tag_version } "
@@ -183,7 +183,7 @@ def __post_init__(self):
183183
184184 self .custom_labelprefix_end = self .name .replace ("-" , "." )
185185 self .exclusive_arch = _DOTNET_EXCLUSIVE_ARCH
186- min_release_counter = {"8.0" : 60 , "9.0" : 20 }[str (self .tag_version )]
186+ min_release_counter = {"8.0" : 60 , "9.0" : 20 , "10.0" : 0 }[str (self .tag_version )]
187187 self .min_release_counter = {
188188 self .os_version : min_release_counter ,
189189 }
@@ -329,14 +329,14 @@ def prepare_template(self) -> None:
329329 super ().prepare_template ()
330330
331331
332- _DOTNET_VERSION_T = Literal ["8.0" , "9.0" ]
332+ _DOTNET_VERSION_T = Literal ["8.0" , "9.0" , "10.0" ]
333333
334- _DOTNET_VERSIONS : list [_DOTNET_VERSION_T ] = ["8.0" , "9.0" ]
334+ _DOTNET_VERSIONS : list [_DOTNET_VERSION_T ] = ["8.0" , "9.0" , "10.0" ]
335335
336- _LATEST_DOTNET_VERSION = "9 .0"
336+ _LATEST_DOTNET_VERSION = "10 .0"
337337
338338assert _LATEST_DOTNET_VERSION in _DOTNET_VERSIONS
339- assert _DOTNET_VERSIONS == sorted (_DOTNET_VERSIONS )
339+ assert _DOTNET_VERSIONS == sorted (_DOTNET_VERSIONS , key = version . parse )
340340assert _DOTNET_VERSIONS [- 1 ] == _LATEST_DOTNET_VERSION
341341
342342
0 commit comments