@@ -121,7 +121,9 @@ def calculate_constraints_location(
121
121
):
122
122
constraints_base = f"https://raw.githubusercontent.com/{ github_repository } /{ constraints_reference } "
123
123
location = f"{ constraints_base } /{ constraints_mode } -{ python_version } .txt"
124
- console .print (f"[info]Determined { 'providers' if providers else 'airflow' } constraints as: { location } " )
124
+ console .print (
125
+ f"[bright_blue]Determined { 'providers' if providers else 'airflow' } constraints as: { location } "
126
+ )
125
127
return location
126
128
127
129
@@ -143,25 +145,27 @@ def get_airflow_constraints_location(
143
145
* DEFAULT_CONSTRAINT_BRANCH + constraints mode - as fallback
144
146
* constraints-main + constraints mode - as fallback
145
147
"""
148
+ console .print ("[bright_blue]Determining airflow constraints location" )
146
149
if airflow_skip_constraints :
150
+ console .print ("[bright_blue]Skipping airflow constraints." )
147
151
return None
148
152
if airflow_constraints_location :
149
- console .print (f"[info ]Using constraints from location: { airflow_constraints_location } " )
153
+ console .print (f"[bright_blue ]Using constraints from location: { airflow_constraints_location } " )
150
154
return airflow_constraints_location
151
155
if airflow_constraints_reference :
152
156
console .print (
153
- f"[info ]Building constraints location from constraints reference: { airflow_constraints_reference } "
157
+ f"[bright_blue ]Building constraints location from constraints reference: { airflow_constraints_reference } "
154
158
)
155
159
elif airflow_package_version :
156
160
if re .match (r"[0-9]+\.[0-9]+\.[0-9]+[0-9a-z.]*|main|v[0-9]_.*" , airflow_package_version ):
157
161
airflow_constraints_reference = f"constraints-{ airflow_package_version } "
158
162
console .print (
159
- f"[info ]Determined constraints reference from airflow package version "
163
+ f"[bright_blue ]Determined constraints reference from airflow package version "
160
164
f"{ airflow_package_version } as: { airflow_constraints_reference } "
161
165
)
162
166
else :
163
167
airflow_constraints_reference = default_constraints_branch
164
- console .print (f"[info ]Falling back tp : { default_constraints_branch } " )
168
+ console .print (f"[bright_blue ]Falling back to constraints branch : { default_constraints_branch } " )
165
169
return calculate_constraints_location (
166
170
constraints_mode = airflow_constraints_mode ,
167
171
constraints_reference = airflow_constraints_reference ,
@@ -188,9 +192,10 @@ def get_providers_constraints_location(
188
192
* constraints-main + constraints mode - as fallback
189
193
"""
190
194
if providers_skip_constraints :
195
+ console .print ("[bright_blue]Skipping providers constraints." )
191
196
return None
192
197
if providers_constraints_location :
193
- console .print (f"[info ]Using constraints from location: { providers_constraints_location } " )
198
+ console .print (f"[bright_blue ]Using constraints from location: { providers_constraints_location } " )
194
199
return providers_constraints_location
195
200
if not providers_constraints_reference :
196
201
providers_constraints_reference = default_constraints_branch
@@ -237,6 +242,7 @@ def find_installation_spec(
237
242
use_airflow_version : str ,
238
243
use_distributions_from_dist : bool ,
239
244
) -> InstallationSpec :
245
+ console .print ("[bright_blue]Finding installation specification" )
240
246
if use_distributions_from_dist :
241
247
console .print ("[bright_blue]Using distributions from dist folder" )
242
248
else :
@@ -250,6 +256,7 @@ def find_installation_spec(
250
256
sys .exit (1 )
251
257
extension = "whl" if distribution_format == "wheel" else "tar.gz"
252
258
pre_release = os .environ .get ("ALLOW_PRE_RELEASES" , "false" ).lower () == "true"
259
+ console .print ("[bright_blue]Pre-release: " , pre_release )
253
260
if airflow_extras :
254
261
console .print (f"[bright_blue]Using airflow extras: { airflow_extras } " )
255
262
airflow_extras = f"[{ airflow_extras } ]"
@@ -263,6 +270,7 @@ def find_installation_spec(
263
270
console .print ("[red]This is not supported. Please use --mount-sources=remove flag in breeze." )
264
271
sys .exit (1 )
265
272
if use_airflow_version in ["wheel" , "sdist" ] and use_distributions_from_dist :
273
+ console .print ("[bright_blue]Finding specification from local distribution files in dist folder" )
266
274
airflow_distribution_spec , airflow_core_distribution_spec = find_airflow_package (extension )
267
275
if use_airflow_version != distribution_format :
268
276
console .print (
@@ -273,6 +281,7 @@ def find_installation_spec(
273
281
if airflow_distribution_spec :
274
282
airflow_version = get_airflow_version_from_package (airflow_distribution_spec )
275
283
if airflow_version :
284
+ console .print (f"[bright_blue]Using airflow version retrieved from package: { airflow_version } " )
276
285
airflow_constraints_location = get_airflow_constraints_location (
277
286
airflow_skip_constraints = airflow_skip_constraints ,
278
287
airflow_constraints_mode = airflow_constraints_mode ,
@@ -422,7 +431,7 @@ def find_installation_spec(
422
431
else :
423
432
console .print ("\n [bright_blue]No preselected providers\n " )
424
433
provider_distributions_list = find_provider_distributions (extension , selected_providers_list )
425
- return InstallationSpec (
434
+ installation_spec = InstallationSpec (
426
435
airflow_distribution = airflow_distribution_spec ,
427
436
airflow_core_distribution = airflow_core_distribution_spec ,
428
437
airflow_constraints_location = airflow_constraints_location ,
@@ -442,6 +451,8 @@ def find_installation_spec(
442
451
),
443
452
pre_release = pre_release ,
444
453
)
454
+ console .print ("[bright_blue]Installation specification:[/]" , installation_spec )
455
+ return installation_spec
445
456
446
457
447
458
ALLOWED_DISTRIBUTION_FORMAT = ["wheel" , "sdist" , "both" ]
@@ -633,12 +644,31 @@ def install_airflow_and_providers(
633
644
use_distributions_from_dist = use_distributions_from_dist ,
634
645
)
635
646
if installation_spec .airflow_distribution and install_airflow_with_constraints :
647
+ console .print ("[bright_blue]Installing airflow with constraints" )
648
+ console .print (
649
+ "[bright_blue]Airflow constraints location: " , installation_spec .airflow_constraints_location
650
+ )
651
+ console .print ("[bright_blue]Airflow distribution" , installation_spec .airflow_distribution )
652
+ console .print ("[bright_blue]Airflow core distribution" , installation_spec .airflow_core_distribution )
653
+ console .print (
654
+ "[bright_blue]Airflow task-sdk constraints location: " ,
655
+ installation_spec .airflow_task_sdk_constraints_location ,
656
+ )
657
+ console .print (
658
+ "[bright_blue]Airflow task-sdk distribution" , installation_spec .airflow_task_sdk_distribution
659
+ )
660
+ console .print (
661
+ "[bright_blue]Airflow ctl constraints location: " ,
662
+ installation_spec .airflow_ctl_constraints_location ,
663
+ )
664
+ console .print ("[bright_blue]Airflow ctl distribution" , installation_spec .airflow_ctl_distribution )
636
665
base_install_airflow_cmd = [
637
666
"/usr/local/bin/uv" ,
638
667
"pip" ,
639
668
"install" ,
640
669
]
641
670
if installation_spec .pre_release :
671
+ console .print ("[bright_blue]Allowing pre-release versions of airflow" )
642
672
base_install_airflow_cmd .append ("--pre" )
643
673
base_install_airflow_cmd .append (installation_spec .airflow_distribution )
644
674
console .print (
@@ -718,6 +748,7 @@ def install_airflow_and_providers(
718
748
)
719
749
run_command (base_install_airflow_cmd , github_actions = github_actions , check = True )
720
750
if installation_spec .provider_distributions or not install_airflow_with_constraints :
751
+ console .print ("[bright_blue]Installing airflow without constraints" )
721
752
base_install_providers_cmd = [
722
753
"/usr/local/bin/uv" ,
723
754
"pip" ,
0 commit comments