suite-py 1.43.0__tar.gz → 1.43.2__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.
Files changed (46) hide show
  1. {suite_py-1.43.0 → suite_py-1.43.2}/PKG-INFO +4 -12
  2. {suite_py-1.43.0 → suite_py-1.43.2}/pyproject.toml +5 -12
  3. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/__version__.py +1 -1
  4. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/cli.py +2 -1
  5. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/commands/release.py +1 -0
  6. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/lib/handler/github_handler.py +1 -0
  7. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/lib/handler/pre_commit_handler.py +1 -0
  8. suite_py-1.43.2/suite_py/lib/logger.py +40 -0
  9. suite_py-1.43.0/suite_py/lib/logger.py +0 -33
  10. {suite_py-1.43.0 → suite_py-1.43.2}/LICENSE-APACHE +0 -0
  11. {suite_py-1.43.0 → suite_py-1.43.2}/LICENSE-MIT +0 -0
  12. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/__init__.py +0 -0
  13. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/commands/__init__.py +0 -0
  14. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/commands/ask_review.py +0 -0
  15. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/commands/bump.py +0 -0
  16. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/commands/check.py +0 -0
  17. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/commands/common.py +0 -0
  18. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/commands/context.py +0 -0
  19. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/commands/create_branch.py +0 -0
  20. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/commands/login.py +0 -0
  21. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/commands/merge_pr.py +0 -0
  22. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/commands/open_pr.py +0 -0
  23. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/commands/project_lock.py +0 -0
  24. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/commands/set_token.py +0 -0
  25. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/commands/status.py +0 -0
  26. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/lib/__init__.py +0 -0
  27. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/lib/config.py +0 -0
  28. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/lib/handler/__init__.py +0 -0
  29. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/lib/handler/aws_handler.py +0 -0
  30. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/lib/handler/captainhook_handler.py +0 -0
  31. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/lib/handler/changelog_handler.py +0 -0
  32. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/lib/handler/frequent_reviewers_handler.py +0 -0
  33. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/lib/handler/git_handler.py +0 -0
  34. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/lib/handler/metrics_handler.py +0 -0
  35. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/lib/handler/okta_handler.py +0 -0
  36. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/lib/handler/prompt_utils.py +0 -0
  37. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/lib/handler/version_handler.py +0 -0
  38. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/lib/handler/youtrack_handler.py +0 -0
  39. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/lib/metrics.py +0 -0
  40. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/lib/oauth.py +0 -0
  41. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/lib/requests/__init__.py +0 -0
  42. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/lib/requests/auth.py +0 -0
  43. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/lib/requests/session.py +0 -0
  44. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/lib/symbol.py +0 -0
  45. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/lib/tokens.py +0 -0
  46. {suite_py-1.43.0 → suite_py-1.43.2}/suite_py/templates/login.html +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: suite-py
3
- Version: 1.43.0
3
+ Version: 1.43.2
4
4
  Summary:
5
5
  Author: larrywax, EugenioLaghi, michelangelomo
6
6
  Author-email: devops@prima.it
@@ -13,30 +13,22 @@ Classifier: Programming Language :: Python :: 3.11
13
13
  Classifier: Programming Language :: Python :: 3.12
14
14
  Requires-Dist: Click (>=7.0)
15
15
  Requires-Dist: InquirerPy (>=0.2.0)
16
- Requires-Dist: Jinja2 (>=3.1.4,<4.0.0)
17
16
  Requires-Dist: PyGithub (>=1.57)
18
17
  Requires-Dist: PyYaml (>=5.4)
19
18
  Requires-Dist: autoupgrade-prima (>=0.6)
20
- Requires-Dist: black (>=22.6,<25.0)
21
19
  Requires-Dist: boto3 (>=1.17.84)
22
20
  Requires-Dist: cement (>=3.0)
23
21
  Requires-Dist: colorama (>=0.4.3)
24
- Requires-Dist: cryptography (==43.0.1)
25
22
  Requires-Dist: halo (>=0.0.28)
26
- Requires-Dist: inquirer (==3.1.4)
23
+ Requires-Dist: inquirer (>=3.1.4,<4.0.0)
27
24
  Requires-Dist: itsdangerous (==2.2.0)
28
25
  Requires-Dist: keyring (>=23.9.1,<26.0.0)
29
- Requires-Dist: kubernetes (==31.0.0)
30
- Requires-Dist: logzero (==1.7.0)
31
- Requires-Dist: markupsafe (==2.0.1)
32
- Requires-Dist: pptree (==3.1)
33
26
  Requires-Dist: pylint (>=2.14.5,<4.0.0)
34
- Requires-Dist: pyreadline (>=2.1,<3.0)
35
27
  Requires-Dist: pytest (>=7.0.0)
36
28
  Requires-Dist: python-dateutil (>=2.8.2)
37
29
  Requires-Dist: requests (>=2.26.0)
38
30
  Requires-Dist: requests-toolbelt (>=0.9.1)
39
- Requires-Dist: rich (==13.9.2)
40
- Requires-Dist: semver (>=2.13.0,<3.0.0)
31
+ Requires-Dist: rich (==13.9.4)
32
+ Requires-Dist: semver (>=3.0.4,<4.0.0)
41
33
  Requires-Dist: termcolor (>=1.1.0)
42
34
  Requires-Dist: truststore (>=0.7,<0.11) ; python_version >= "3.10"
@@ -2,41 +2,34 @@
2
2
  authors = ["larrywax, EugenioLaghi, michelangelomo <devops@prima.it>"]
3
3
  description = ""
4
4
  name = "suite-py"
5
- version = "1.43.0"
5
+ version = "1.43.2"
6
6
 
7
7
  [tool.poetry.dependencies]
8
8
  Click = ">=7.0"
9
9
  InquirerPy = ">=0.2.0"
10
- Jinja2 = ">=3.1.4,<4.0.0"
11
10
  PyGithub = ">=1.57"
12
11
  PyYaml = ">=5.4"
13
12
  autoupgrade-prima = ">=0.6"
14
- black = ">=22.6,<25.0"
15
13
  boto3 = ">=1.17.84"
16
14
  cement = ">=3.0"
17
15
  colorama = ">=0.4.3"
18
16
  halo = ">=0.0.28"
19
- inquirer = "==3.1.4"
17
+ inquirer = "^3.1.4"
20
18
  itsdangerous = "==2.2.0"
21
19
  keyring = ">=23.9.1,<26.0.0"
22
- kubernetes = "==31.0.0"
23
- logzero = "==1.7.0"
24
- markupsafe = "==2.0.1"
25
- pptree = "==3.1"
26
20
  pylint = ">=2.14.5,<4.0.0"
27
- pyreadline = "^2.1"
28
21
  pytest = ">=7.0.0"
29
22
  python = ">=3.8,<4.0"
30
23
  python-dateutil = ">=2.8.2"
31
24
  requests = ">=2.26.0"
32
25
  requests-toolbelt = ">=0.9.1"
33
- rich = "==13.9.2"
34
- semver = "^2.13.0"
26
+ rich = "==13.9.4"
27
+ semver = "^3.0.4"
35
28
  termcolor = ">=1.1.0"
36
29
  truststore = {version = ">=0.7,<0.11", python = ">=3.10"}
37
- cryptography = "43.0.1"
38
30
 
39
31
  [tool.poetry.dev-dependencies]
32
+ black = ">=22.6,<25.0"
40
33
 
41
34
  [tool.poetry.scripts]
42
35
  suite-py = "suite_py.cli:main"
@@ -1,2 +1,2 @@
1
1
  # -*- encoding: utf-8 -*-
2
- __version__ = "1.43.0"
2
+ __version__ = "1.43.2"
@@ -38,7 +38,6 @@ from typing import Optional
38
38
 
39
39
  import click
40
40
  import requests
41
- from autoupgrade import Package
42
41
  from click.exceptions import ClickException
43
42
 
44
43
  from suite_py.__version__ import __version__
@@ -95,6 +94,8 @@ def upgrade_suite_py_if_needed(break_on_missing_package: bool = False) -> None:
95
94
  # If available, upgrade (if needed)
96
95
  latest_version = fetch_latest_version()
97
96
  if latest_version is None or latest_version > installed_version:
97
+ from autoupgrade import Package
98
+
98
99
  # If we fail to fetch the latest version, fallback to attempting the upgrade anyway
99
100
  Package("suite_py").upgrade()
100
101
  except Exception as error:
@@ -15,6 +15,7 @@ from suite_py.lib.handler.youtrack_handler import YoutrackHandler
15
15
 
16
16
  class Release:
17
17
  # pylint: disable=too-many-instance-attributes
18
+ # pylint: disable=too-many-positional-arguments
18
19
  def __init__(self, action, project, captainhook, config, tokens):
19
20
  self._action = action
20
21
  self._project = project
@@ -19,6 +19,7 @@ class GithubHandler:
19
19
  def get_user(self):
20
20
  return self._client.get_user()
21
21
 
22
+ # pylint: disable=too-many-positional-arguments
22
23
  def create_pr(self, repo, branch, title, body="", base="master", is_draft=False):
23
24
  return self.get_repo(repo).create_pull(
24
25
  title=title, head=branch, base=base, body=body, draft=is_draft
@@ -1,4 +1,5 @@
1
1
  import os
2
+
2
3
  import yaml
3
4
 
4
5
  from suite_py.lib import logger
@@ -0,0 +1,40 @@
1
+ # -*- encoding: utf-8 -*-
2
+ import logging
3
+
4
+ from rich.logging import RichHandler
5
+
6
+ # Rich handles color and formatting internally
7
+ # This format will make it so we print stuff like "[I] message"
8
+ LOG_FORMAT = "%(message)s"
9
+
10
+ LOGGER_NAME = "suite_py_logger"
11
+
12
+
13
+ def setup(verbose):
14
+ level = logging.DEBUG if verbose else logging.INFO
15
+
16
+ logging.basicConfig(
17
+ level=level,
18
+ format=LOG_FORMAT,
19
+ datefmt="[%X]",
20
+ handlers=[RichHandler(rich_tracebacks=True, markup=False)],
21
+ )
22
+
23
+ logger = logging.getLogger(LOGGER_NAME)
24
+ logger.debug("Logging as %s", level)
25
+
26
+
27
+ def debug(message, *args, **kwargs):
28
+ logging.getLogger(LOGGER_NAME).debug(message, *args, **kwargs)
29
+
30
+
31
+ def info(message, *args, **kwargs):
32
+ logging.getLogger(LOGGER_NAME).info(message, *args, **kwargs)
33
+
34
+
35
+ def warning(message, *args, **kwargs):
36
+ logging.getLogger(LOGGER_NAME).warning(message, *args, **kwargs)
37
+
38
+
39
+ def error(message, *args, **kwargs):
40
+ logging.getLogger(LOGGER_NAME).error(message, *args, **kwargs)
@@ -1,33 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- import logging
3
-
4
- import logzero
5
- from logzero import logger as _logger
6
-
7
- DEFAULT_FORMAT = "%(color)s[%(levelname)1.4s]%(end_color)s %(message)s"
8
- # Set a custom formatter
9
- formatter = logzero.LogFormatter(fmt=DEFAULT_FORMAT)
10
-
11
-
12
- def setup(verbose):
13
- logzero.setup_default_logger(formatter=formatter)
14
- level = logging.DEBUG if verbose else logging.INFO
15
-
16
- _logger.setLevel(level)
17
- _logger.debug("Logging as %s", level)
18
-
19
-
20
- def debug(message, *args, **kwargs):
21
- _logger.debug(message, *args, **kwargs)
22
-
23
-
24
- def info(message, *args, **kwargs):
25
- _logger.info(message, *args, **kwargs)
26
-
27
-
28
- def warning(message, *args, **kwargs):
29
- _logger.warning(message, *args, **kwargs)
30
-
31
-
32
- def error(message, *args, **kwargs):
33
- _logger.error(message, *args, **kwargs)
File without changes
File without changes