suite-py 1.41.6__tar.gz → 1.41.8__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 (54) hide show
  1. {suite_py-1.41.6 → suite_py-1.41.8}/PKG-INFO +3 -3
  2. {suite_py-1.41.6 → suite_py-1.41.8}/pyproject.toml +3 -3
  3. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/__version__.py +1 -1
  4. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/cli.py +1 -1
  5. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/commands/context.py +12 -1
  6. {suite_py-1.41.6 → suite_py-1.41.8}/LICENSE-APACHE +0 -0
  7. {suite_py-1.41.6 → suite_py-1.41.8}/LICENSE-MIT +0 -0
  8. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/__init__.py +0 -0
  9. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/commands/__init__.py +0 -0
  10. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/commands/aggregator.py +0 -0
  11. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/commands/ask_review.py +0 -0
  12. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/commands/batch_job.py +0 -0
  13. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/commands/bump.py +0 -0
  14. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/commands/check.py +0 -0
  15. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/commands/common.py +0 -0
  16. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/commands/create_branch.py +0 -0
  17. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/commands/deploy.py +0 -0
  18. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/commands/docker.py +0 -0
  19. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/commands/generator.py +0 -0
  20. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/commands/id.py +0 -0
  21. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/commands/ip.py +0 -0
  22. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/commands/login.py +0 -0
  23. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/commands/merge_pr.py +0 -0
  24. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/commands/open_pr.py +0 -0
  25. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/commands/project_lock.py +0 -0
  26. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/commands/release.py +0 -0
  27. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/commands/secret.py +0 -0
  28. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/commands/set_token.py +0 -0
  29. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/commands/status.py +0 -0
  30. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/lib/__init__.py +0 -0
  31. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/lib/config.py +0 -0
  32. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/lib/handler/__init__.py +0 -0
  33. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/lib/handler/aws_handler.py +0 -0
  34. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/lib/handler/captainhook_handler.py +0 -0
  35. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/lib/handler/changelog_handler.py +0 -0
  36. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/lib/handler/drone_handler.py +0 -0
  37. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/lib/handler/frequent_reviewers_handler.py +0 -0
  38. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/lib/handler/git_handler.py +0 -0
  39. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/lib/handler/github_handler.py +0 -0
  40. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/lib/handler/metrics_handler.py +0 -0
  41. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/lib/handler/okta_handler.py +0 -0
  42. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/lib/handler/prompt_utils.py +0 -0
  43. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/lib/handler/vault_handler.py +0 -0
  44. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/lib/handler/version_handler.py +0 -0
  45. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/lib/handler/youtrack_handler.py +0 -0
  46. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/lib/logger.py +0 -0
  47. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/lib/metrics.py +0 -0
  48. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/lib/oauth.py +0 -0
  49. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/lib/requests/__init__.py +0 -0
  50. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/lib/requests/auth.py +0 -0
  51. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/lib/requests/session.py +0 -0
  52. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/lib/symbol.py +0 -0
  53. {suite_py-1.41.6 → suite_py-1.41.8}/suite_py/lib/tokens.py +0 -0
  54. {suite_py-1.41.6 → suite_py-1.41.8}/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.41.6
3
+ Version: 1.41.8
4
4
  Summary:
5
5
  Author: larrywax, EugenioLaghi, michelangelomo
6
6
  Author-email: devops@prima.it
@@ -24,7 +24,7 @@ Requires-Dist: colorama (>=0.4.3)
24
24
  Requires-Dist: cryptography (==42.0.5)
25
25
  Requires-Dist: halo (>=0.0.28)
26
26
  Requires-Dist: inquirer (==3.1.4)
27
- Requires-Dist: itsdangerous (==2.0.1)
27
+ Requires-Dist: itsdangerous (==2.2.0)
28
28
  Requires-Dist: keyring (>=23.9.1,<26.0.0)
29
29
  Requires-Dist: kubernetes (==29.0.0)
30
30
  Requires-Dist: logzero (==1.7.0)
@@ -39,4 +39,4 @@ Requires-Dist: requests-toolbelt (>=0.9.1)
39
39
  Requires-Dist: rich (==13.7.1)
40
40
  Requires-Dist: semver (>=2.13.0,<3.0.0)
41
41
  Requires-Dist: termcolor (>=1.1.0)
42
- Requires-Dist: truststore (>=0.7,<0.9) ; python_version >= "3.10"
42
+ Requires-Dist: truststore (>=0.7,<0.10) ; python_version >= "3.10"
@@ -2,7 +2,7 @@
2
2
  authors = ["larrywax, EugenioLaghi, michelangelomo <devops@prima.it>"]
3
3
  description = ""
4
4
  name = "suite-py"
5
- version = "1.41.6"
5
+ version = "1.41.8"
6
6
 
7
7
  [tool.poetry.dependencies]
8
8
  Click = ">=7.0"
@@ -17,7 +17,7 @@ cement = ">=3.0"
17
17
  colorama = ">=0.4.3"
18
18
  halo = ">=0.0.28"
19
19
  inquirer = "==3.1.4"
20
- itsdangerous = "==2.0.1"
20
+ itsdangerous = "==2.2.0"
21
21
  keyring = ">=23.9.1,<26.0.0"
22
22
  kubernetes = "==29.0.0"
23
23
  logzero = "==1.7.0"
@@ -33,7 +33,7 @@ requests-toolbelt = ">=0.9.1"
33
33
  rich = "==13.7.1"
34
34
  semver = "^2.13.0"
35
35
  termcolor = ">=1.1.0"
36
- truststore = {version = ">=0.7,<0.9", python = ">=3.10"}
36
+ truststore = {version = ">=0.7,<0.10", python = ">=3.10"}
37
37
  cryptography = "42.0.5"
38
38
 
39
39
  [tool.poetry.dev-dependencies]
@@ -1,2 +1,2 @@
1
1
  # -*- encoding: utf-8 -*-
2
- __version__ = "1.41.6"
2
+ __version__ = "1.41.8"
@@ -349,7 +349,7 @@ def cli_docker_versions(obj):
349
349
  def cli_status(obj):
350
350
  from suite_py.commands.status import Status
351
351
 
352
- obj.call(Status, action="versions").run()
352
+ obj.call(Status).run()
353
353
 
354
354
 
355
355
  @main.command("check", help="Verify authorisations for third party services")
@@ -17,10 +17,21 @@ class Context:
17
17
 
18
18
  # Call the function to_call with kwargs, injecting fields from self as default arguments
19
19
  def call(self, to_call, **kwargs):
20
- provided = dataclasses.asdict(self)
20
+ provided = self.shallow_dict()
21
21
  needed = signature(to_call).parameters.keys()
22
22
  provided = {k: provided[k] for k in needed if k in provided}
23
23
 
24
24
  kwargs = provided | kwargs
25
25
 
26
26
  return to_call(**kwargs)
27
+
28
+ def shallow_dict(self):
29
+ """
30
+ Converts the dataclass to a dict.
31
+
32
+ Unlike dataclasses.asdict this function only shallow copies the fields
33
+ instead of using copy.deepcopy()
34
+ """
35
+ return {
36
+ field.name: getattr(self, field.name) for field in dataclasses.fields(self)
37
+ }
File without changes
File without changes