File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 17
17
18
18
Changed
19
19
~~~~~~~~~
20
+ * Updated deprecation warning for python 2 pack installs, following python 2 support removal. #5099
21
+ Contributed by @amanda11
22
+
20
23
* Improve the st2-self-check script to echo to stderr and exit if it isn't run with a
21
24
ST2_AUTH_TOKEN or ST2_API_KEY environment variable. (improvement) #5068
22
25
Original file line number Diff line number Diff line change 43
43
]
44
44
45
45
# Common format for python 2.7 warning
46
- PACK_PYTHON2_WARNING = "DEPRECATION WARNING: Pack %s only supports Python 2.x. " \
47
- "Python 2 support will be dropped in future releases. " \
48
- "Please consider updating your packs to work with Python 3.x"
46
+ if six .PY2 :
47
+ PACK_PYTHON2_WARNING = "DEPRECATION WARNING: Pack %s only supports Python 2.x. " \
48
+ "Python 2 support will be dropped in future releases. " \
49
+ "Please consider updating your packs to work with Python 3.x"
50
+ else :
51
+ PACK_PYTHON2_WARNING = "DEPRECATION WARNING: Pack %s only supports Python 2.x. " \
52
+ "Python 2 support has been removed since st2 v3.4.0. " \
53
+ "Please update your packs to work with Python 3.x"
49
54
50
55
51
56
def get_pack_ref_from_metadata (metadata , pack_directory_name = None ):
You can’t perform that action at this time.
0 commit comments