suite-py 1.41.9__tar.gz → 1.41.10__tar.gz
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-1.41.9 → suite_py-1.41.10}/PKG-INFO +1 -1
- {suite_py-1.41.9 → suite_py-1.41.10}/pyproject.toml +1 -1
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/__version__.py +1 -1
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/cli.py +31 -17
- {suite_py-1.41.9 → suite_py-1.41.10}/LICENSE-APACHE +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/LICENSE-MIT +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/__init__.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/commands/__init__.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/commands/aggregator.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/commands/ask_review.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/commands/batch_job.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/commands/bump.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/commands/check.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/commands/common.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/commands/context.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/commands/create_branch.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/commands/deploy.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/commands/docker.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/commands/generator.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/commands/id.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/commands/ip.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/commands/login.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/commands/merge_pr.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/commands/open_pr.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/commands/project_lock.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/commands/release.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/commands/secret.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/commands/set_token.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/commands/status.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/lib/__init__.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/lib/config.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/lib/handler/__init__.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/lib/handler/aws_handler.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/lib/handler/captainhook_handler.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/lib/handler/changelog_handler.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/lib/handler/drone_handler.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/lib/handler/frequent_reviewers_handler.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/lib/handler/git_handler.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/lib/handler/github_handler.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/lib/handler/metrics_handler.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/lib/handler/okta_handler.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/lib/handler/prompt_utils.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/lib/handler/vault_handler.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/lib/handler/version_handler.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/lib/handler/youtrack_handler.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/lib/logger.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/lib/metrics.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/lib/oauth.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/lib/requests/__init__.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/lib/requests/auth.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/lib/requests/session.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/lib/symbol.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/lib/tokens.py +0 -0
- {suite_py-1.41.9 → suite_py-1.41.10}/suite_py/templates/login.html +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
|
-
__version__ = "1.41.
|
|
2
|
+
__version__ = "1.41.10"
|
|
@@ -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
|
-
|
|
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()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|