suite-py 1.41.9__py3-none-any.whl → 1.41.10__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
suite_py/__version__.py CHANGED
@@ -1,2 +1,2 @@
1
1
  # -*- encoding: utf-8 -*-
2
- __version__ = "1.41.9"
2
+ __version__ = "1.41.10"
suite_py/cli.py CHANGED
@@ -4,12 +4,38 @@
4
4
  # for performance reasons, so turn off the lint warning
5
5
  # pylint: disable=import-outside-toplevel
6
6
 
7
- import os
7
+ # We need to inject truststore code before we do any libraries
8
+ # that might end up creating an ssl.SSlContext object
9
+ # pylint: disable=wrong-import-position
10
+
8
11
  import sys
12
+
13
+
14
+ def maybe_inject_truststore() -> None:
15
+ """
16
+ Injects the truststore package into the system ssl store, to fix verficiation certificate issues when using warp.
17
+ """
18
+ if sys.version_info >= (3, 10):
19
+ import truststore
20
+
21
+ truststore.inject_into_ssl()
22
+ else:
23
+ # pylint: disable-next=reimported
24
+ from suite_py.lib import logger
25
+
26
+ logger.warning(
27
+ "Your python version is older than 3.10 and doesn't support the truststore package. You might experience issues with certificate verification when connected to the warp VPN.\nPlease update to python 3.10 or newer"
28
+ )
29
+
30
+
31
+ # Needs to be done before any other imports
32
+ maybe_inject_truststore()
33
+
34
+ import os
9
35
  from functools import wraps
36
+ from importlib.metadata import PackageNotFoundError, version
10
37
  from typing import Optional
11
38
 
12
- from importlib.metadata import version, PackageNotFoundError
13
39
  import click
14
40
  import requests
15
41
  from autoupgrade import Package
@@ -25,24 +51,12 @@ from suite_py.lib.handler.captainhook_handler import CaptainHook
25
51
  from suite_py.lib.handler.okta_handler import Okta
26
52
  from suite_py.lib.tokens import Tokens
27
53
 
54
+ # pylint: enable=wrong-import-position
55
+
28
56
  ALLOW_NO_GIT_SUBCOMMAND = ["login", "aggregator"]
29
57
  ALLOW_NO_HOME_SUBCOMMAND = ["login", "aggregator"]
30
58
 
31
59
 
32
- def maybe_inject_truststore() -> None:
33
- """
34
- Injects the truststore package into the system ssl store, to fix verficiation certificate issues when using warp.
35
- """
36
- if sys.version_info >= (3, 10):
37
- import truststore
38
-
39
- truststore.inject_into_ssl()
40
- else:
41
- logger.warning(
42
- "Your python version is older than 3.10 and doesn't support the truststore package. You might experience issues with certificate verification when connected to the warp VPN.\nPlease update to python 3.10 or newer"
43
- )
44
-
45
-
46
60
  def fetch_latest_version() -> Optional[str]:
47
61
  """
48
62
  Fetches the latest version of suite-py as a str
@@ -243,8 +257,8 @@ def cli_unlock_project(obj, environment):
243
257
  @click.pass_obj
244
258
  @catch_exceptions
245
259
  def cli_open_pr(obj):
246
- from suite_py.commands.open_pr import OpenPR
247
260
  from suite_py.commands.ask_review import AskReview
261
+ from suite_py.commands.open_pr import OpenPR
248
262
 
249
263
  ask_review = obj.call(AskReview)
250
264
  obj.call(OpenPR, ask_review=ask_review).run()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: suite-py
3
- Version: 1.41.9
3
+ Version: 1.41.10
4
4
  Summary:
5
5
  Author: larrywax, EugenioLaghi, michelangelomo
6
6
  Author-email: devops@prima.it
@@ -1,6 +1,6 @@
1
1
  suite_py/__init__.py,sha256=REmi3D0X2G1ZWnYpKs8Ffm3NIj-Hw6dMuvz2b9NW344,142
2
- suite_py/__version__.py,sha256=9Lm2m6l1n6KrpsW6I8NMfl6nA0nBNZrACrlL10iipLg,49
3
- suite_py/cli.py,sha256=TUxsNK35_-KalEBi0Jj_Vui5OG0qIPSAnfHYBGSXBPs,14805
2
+ suite_py/__version__.py,sha256=i6HmzASsryZBCC4p1Cf_qbUBilep7P848kIqMZUnTNs,50
3
+ suite_py/cli.py,sha256=oGKcY9TUvGgXJl1tYBlkvSCcz6A6Aa7Fye5yEPqB4F8,15159
4
4
  suite_py/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  suite_py/commands/aggregator.py,sha256=_xyyX7MOMZzDEvzj2AI03OF3sut5PpSIyuRjUiCp5aI,5747
6
6
  suite_py/commands/ask_review.py,sha256=yN__Ac-fiZBPShjRDhyCCQZGfVlQE16KozoJk4UtiNw,3788
@@ -48,7 +48,7 @@ suite_py/lib/requests/session.py,sha256=P32H3cWnCWunu91WIj2iDM5U3HzaBglg60VN_C9J
48
48
  suite_py/lib/symbol.py,sha256=z3QYBuNIwD3qQ3zF-cLOomIr_-C3bO_u5UIDAHMiyTo,60
49
49
  suite_py/lib/tokens.py,sha256=kK4vatd5iKEFaue0BZwK1f66YOh9zLdLzP41ZOhjMCU,5534
50
50
  suite_py/templates/login.html,sha256=fJLls2SB84oZTSrxTdA5q1PqfvIHcCD4fhVWfyco7Ig,861
51
- suite_py-1.41.9.dist-info/METADATA,sha256=Ya0nVIVuYCPW5DMYjRIi5Gj8Ok1CwzrSWMkQYTE6kMQ,1532
52
- suite_py-1.41.9.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
53
- suite_py-1.41.9.dist-info/entry_points.txt,sha256=dVKLC-9Infy-dHJT_MkK6LcDjOgBCJ8lfPkURJhBjxE,46
54
- suite_py-1.41.9.dist-info/RECORD,,
51
+ suite_py-1.41.10.dist-info/METADATA,sha256=A_GGYDs7Uq5qzCIiUW-PKqxk0QdgS4su2FMwpKWc4A4,1533
52
+ suite_py-1.41.10.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
53
+ suite_py-1.41.10.dist-info/entry_points.txt,sha256=dVKLC-9Infy-dHJT_MkK6LcDjOgBCJ8lfPkURJhBjxE,46
54
+ suite_py-1.41.10.dist-info/RECORD,,