@@ -111,6 +111,11 @@ def list_overrides(
111111 [v for v in all_patches .keys () if v is not None ]
112112 )
113113
114+ min_release_age = ps .resolver_dist .min_release_age
115+ min_release_age_str = (
116+ str (min_release_age ) if min_release_age is not None else ""
117+ )
118+
114119 if not all_pkg_versions :
115120 # This package has overrides, but none are version-specific.
116121 patches_str = str (num_global_patches ) if num_global_patches else ""
@@ -119,6 +124,7 @@ def list_overrides(
119124 "version" : "" ,
120125 "patches" : patches_str ,
121126 "plugin_hooks" : plugin_hooks_str ,
127+ "min_release_age" : min_release_age_str ,
122128 }
123129 # Add variant information
124130 row_data .update (variant_info )
@@ -135,6 +141,7 @@ def list_overrides(
135141 "version" : str (version ),
136142 "patches" : patches_str ,
137143 "plugin_hooks" : plugin_hooks_str ,
144+ "min_release_age" : min_release_age_str ,
138145 }
139146 # Add variant information
140147 row_data .update (variant_info )
@@ -166,7 +173,11 @@ def _export_csv(
166173) -> None :
167174 """Export data as CSV."""
168175 # Define field names in the order we want them
169- fieldnames = ["package" , "version" , "patches" ] + variants + ["plugin_hooks" ]
176+ fieldnames = (
177+ ["package" , "version" , "patches" , "min_release_age" ]
178+ + variants
179+ + ["plugin_hooks" ]
180+ )
170181
171182 if output :
172183 with open (output , "w" , newline = "" ) as outfile :
@@ -190,13 +201,19 @@ def _export_table(data: list[dict], variants: list[str]) -> None:
190201 table .add_column ("Version" , justify = "left" , no_wrap = True )
191202 table .add_column ("Patches" , justify = "left" , no_wrap = True )
192203
204+ table .add_column ("Min Release Age (days)" , justify = "left" , no_wrap = True )
205+
193206 for v in variants :
194207 table .add_column (v , justify = "left" , no_wrap = True )
195208
196209 table .add_column ("Plugin" , justify = "left" )
197210
198211 # Define column keys in the same order as CSV exporter
199- column_keys = ["package" , "version" , "patches" ] + variants + ["plugin_hooks" ]
212+ column_keys = (
213+ ["package" , "version" , "patches" , "min_release_age" ]
214+ + variants
215+ + ["plugin_hooks" ]
216+ )
200217
201218 for row_data in data :
202219 row = [row_data .get (key , "" ) for key in column_keys ]
0 commit comments