suite-py 1.41.6__py3-none-any.whl → 1.41.8__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.6"
2
+ __version__ = "1.41.8"
suite_py/cli.py CHANGED
@@ -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
+ }
@@ -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"
@@ -1,6 +1,6 @@
1
1
  suite_py/__init__.py,sha256=REmi3D0X2G1ZWnYpKs8Ffm3NIj-Hw6dMuvz2b9NW344,142
2
- suite_py/__version__.py,sha256=aMXm_z4ppgW1Y0eVAzZBh6s_5nLoe5IxwAQFeSDa5dg,49
3
- suite_py/cli.py,sha256=I4IbkCRCprI73-pjllFzDX8UY3lVUNOIbZAPRgK2ukw,14953
2
+ suite_py/__version__.py,sha256=C72BQjNOg72voqmXyLIqBdkVITPqxMJeS157soE2SM8,49
3
+ suite_py/cli.py,sha256=EaXTn4YONpw0Q5yuUeo9ANsLClHa0A-S87wHYnLwGOs,14934
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
@@ -8,7 +8,7 @@ suite_py/commands/batch_job.py,sha256=pcSpDov9uNY4z9MjQ8KDapEC9zhEJDe7XcJV7uidHy
8
8
  suite_py/commands/bump.py,sha256=oFZU1hPfD11ujFC5G7wFyQOf2alY3xp2SO1h1ldjf3s,5406
9
9
  suite_py/commands/check.py,sha256=0e2NsPi3cqvCwtNYzhR1UroT59bCojLlGo69vv3FiOA,4074
10
10
  suite_py/commands/common.py,sha256=aWCEvO3hqdheuMUmZcHuc9EGZPQTk7VkzkHJk283MxQ,566
11
- suite_py/commands/context.py,sha256=coK1O1XZ1nhtduEvZNpYJQ0RkTCXhrLYCbK3IBniDkQ,753
11
+ suite_py/commands/context.py,sha256=6dssSqoABPb9gLmL3Y7W2iAGxrY_oma665X8zrSkNNQ,1079
12
12
  suite_py/commands/create_branch.py,sha256=cDpeDsQk1AK70GkWz-hTduaEeU65x1wck1b-5nKIMew,4424
13
13
  suite_py/commands/deploy.py,sha256=kadgbVKUMtE_X4b8oWaQ1ufS4Qy9b2WuutPDXnjm4t4,8088
14
14
  suite_py/commands/docker.py,sha256=POz_VXOXEQaFZCafkH-grgB2_HZFrckAc0CpB9IgOiU,2932
@@ -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.6.dist-info/METADATA,sha256=4x0_Re_h7wuAqrsaaKktcU-7uNTXuHSBMET3qCal2t0,1531
52
- suite_py-1.41.6.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
53
- suite_py-1.41.6.dist-info/entry_points.txt,sha256=dVKLC-9Infy-dHJT_MkK6LcDjOgBCJ8lfPkURJhBjxE,46
54
- suite_py-1.41.6.dist-info/RECORD,,
51
+ suite_py-1.41.8.dist-info/METADATA,sha256=YpG9ptQzXGsGoS0KjGyMKsoNlNV4eLRQRUu57UJZ0cQ,1532
52
+ suite_py-1.41.8.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
53
+ suite_py-1.41.8.dist-info/entry_points.txt,sha256=dVKLC-9Infy-dHJT_MkK6LcDjOgBCJ8lfPkURJhBjxE,46
54
+ suite_py-1.41.8.dist-info/RECORD,,