https://pulumi.com logo
#python
Title
# python
s

sparse-gold-10561

02/15/2022, 5:22 PM
Is there a way for pulumi to check the version of python is at least 3.9 and print or show a warning if the stack is performing up or preview when its not?
m

microscopic-pilot-97530

02/15/2022, 5:42 PM
You could do something like this in your program:
Copy code
import sys
import pulumi

if sys.version_info[:2] < (3, 9):
    pulumi.warn("your warning here")
s

sparse-gold-10561

02/15/2022, 6:43 PM
in the main.py?
That makes sense.. thank you