c2cciutils 1.7.0.dev326__py3-none-any.whl → 1.7.0.dev334__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.

Potentially problematic release.


This version of c2cciutils might be problematic. Click here for more details.

c2cciutils/lib/oidc.py CHANGED
@@ -105,14 +105,15 @@ This strongly suggests a server configuration or downtime issue; wait
105
105
  a few minutes and try again.
106
106
 
107
107
  You can monitor PyPI's status here: https://status.python.org/
108
- """
108
+ """ # noqa: E702
109
109
  )
110
110
 
111
111
  # On failure, the JSON response includes the list of errors that
112
112
  # occurred during minting.
113
113
  if not mint_token_resp.ok:
114
114
  reasons = "\n".join(
115
- f'* `{error["code"]}`: {error["description"]}' for error in mint_token_payload["errors"]
115
+ f'* `{error["code"]}`: {error["description"]}'
116
+ for error in mint_token_payload["errors"] # noqa: W604
116
117
  )
117
118
 
118
119
  rendered_claims = _render_claims(oidc_token)
@@ -159,7 +160,7 @@ def pypi_login() -> None:
159
160
  pypirc_filename = os.path.expanduser("~/.pypirc")
160
161
 
161
162
  if os.path.exists(pypirc_filename):
162
- print(f"::info::{pypirc_filename} already exists; consider as already logged in.")
163
+ print(f"::info::{pypirc_filename} already exists; consider as already logged in.") # noqa: E702
163
164
  return
164
165
 
165
166
  if "ACTIONS_ID_TOKEN_REQUEST_TOKEN" not in os.environ:
@@ -54,7 +54,7 @@ def _check_container_status(pod: Any, status: Any, is_init: bool = False) -> boo
54
54
  status_message = status_message.strip()
55
55
  if status_message == "Completed":
56
56
  return True
57
- print(f'::group::Container not ready in {pod["metadata"]["name"]}: {status_message}')
57
+ print(f'::group::Container not ready in {pod["metadata"]["name"]}: {status_message}') # noqa: E713
58
58
  if status_message_long != status_message:
59
59
  print(status_message_long)
60
60
  print(json.dumps(status, indent=4))
@@ -68,7 +68,7 @@ def _check_pod_status(pods: Any) -> bool:
68
68
  for condition in pod["status"].get("conditions", []):
69
69
  if not condition["status"]:
70
70
  print(
71
- f'::group::Pod not ready in {pod["metadata"]["name"]}: {condition.get("message", condition["type"])}'
71
+ f'::group::Pod not ready in {pod["metadata"]["name"]}: {condition.get("message", condition["type"])}' # noqa: E713
72
72
  )
73
73
  print(json.dumps(condition, indent=4))
74
74
  print("::endgroup::")
@@ -403,7 +403,7 @@ def main() -> None:
403
403
  for dpkg_package, package_version in versions_image.items():
404
404
  if dpkg_package not in current_versions_in_images[image]:
405
405
  current_versions_in_images[image][dpkg_package] = str(package_version)
406
- for dpkg_package in current_versions_in_images[image].keys():
406
+ for dpkg_package in list(current_versions_in_images[image].keys()):
407
407
  if dpkg_package not in versions_image:
408
408
  del current_versions_in_images[image][dpkg_package]
409
409
  if dpkg_config_found:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: c2cciutils
3
- Version: 1.7.0.dev326
3
+ Version: 1.7.0.dev334
4
4
  Summary: Common utilities for Camptocamp CI
5
5
  Home-page: https://github.com/camptocamp/c2cciutils
6
6
  License: FreeBSD
@@ -9,7 +9,7 @@ c2cciutils/configuration.py,sha256=yGv9L9OVAMb1Rnxt4NKf92pLNl7zHnbXeyUgKnhE2Vs,2
9
9
  c2cciutils/default_branch.graphql,sha256=CaP3rRsNiyg_7RvqbMk0tOJr0aqWd8cOeSV-ZKgvKY4,131
10
10
  c2cciutils/env.py,sha256=fm_cMLKWM1fVvTWph2ikNyUPAaog0Am59DNzU68qkEI,3418
11
11
  c2cciutils/lib/docker.py,sha256=d_YAUGCw2fXil7IaHFPxO3F_D5AWL4zz4gZj7M3fxj8,5675
12
- c2cciutils/lib/oidc.py,sha256=2UdalnADG173oSPwp1qqH7-w96AcUwT5A7vlll-RmZU,6229
12
+ c2cciutils/lib/oidc.py,sha256=VEQT0j31BuIyyUY5vJeUnCWBvS-6Ja9IeXlVx5synQw,6283
13
13
  c2cciutils/package-lock.json,sha256=aLnN3q1ufs_2pn-Zy6_2v8wL09JT8MZzJidxJi8E9Lc,15611
14
14
  c2cciutils/package.json,sha256=A3gItP1CsTXzsMdigeCu3fNeltY08nYVs_LCU4B5PJs,134
15
15
  c2cciutils/pr_checks.py,sha256=tBwDHxThcu6648pE2cqpLNsaU711lwwgRc7sB4qR6fU,10109
@@ -27,15 +27,15 @@ c2cciutils/scripts/k8s/__init__.py,sha256=ESPfnAzxPBK-TXColaFlz0OxAouX_fHV8MDamh
27
27
  c2cciutils/scripts/k8s/db.py,sha256=GK1tzzyCqrCyIJzcBdIXjyNJUXrBPFNa-9fdtwxyrlU,3268
28
28
  c2cciutils/scripts/k8s/install.py,sha256=OIQ8KHA3Pst2pjO2E-J5FYNaBHW-i-fqCXlAUcG1tw0,933
29
29
  c2cciutils/scripts/k8s/logs.py,sha256=-xJYu8BBUmSmMrPEwiTBKZjJBRyIlMp1depCB04_NWs,2655
30
- c2cciutils/scripts/k8s/wait.py,sha256=qzQn6hbB9p1CX4bUxrkukPnbu_p6oRNem29WiMtplNk,5661
30
+ c2cciutils/scripts/k8s/wait.py,sha256=mZyQbmSwuC2BZuJlfJDjkLSKWXz4WkIkihOjRzdBa6Y,5689
31
31
  c2cciutils/scripts/main.py,sha256=ZksoYEDRJD0igEU6i0PnuOFtch4OzsxyHZQxbrjd5AY,1029
32
32
  c2cciutils/scripts/pin_pipenv.py,sha256=jBTwlolcEL0MUyq6VYzO-adkcL1gqN7B3kBb3UjTo2k,2150
33
33
  c2cciutils/scripts/pr_checks.py,sha256=PA9z9QB81H2JhGSr4T02eoxyeWDjQZ4XoIKFzS5o5A0,2190
34
- c2cciutils/scripts/publish.py,sha256=lc75i0BP4zHKWqeWpseVY1-hO4mJVTy57zEOCmeideg,20422
34
+ c2cciutils/scripts/publish.py,sha256=K4oR8DlsZh5mRBUpf7Ruf70376cfUKo9-AJnUw9h4Xs,20428
35
35
  c2cciutils/scripts/trigger_image_update.py,sha256=cDNFVXH_t6CE4b-8l9dn6Ivqf0vhEspKaujrUQdOaIQ,2779
36
36
  c2cciutils/scripts/version.py,sha256=BAhoEBr6pz8WJOf4SGSjP9DINIRhw7LVNr2h0aLJDOo,8911
37
- c2cciutils-1.7.0.dev326.dist-info/LICENSE,sha256=EMCYfDu0AgsMQO6k8Hl_xHzoFxM0db1xu9n_asZW9Vc,1307
38
- c2cciutils-1.7.0.dev326.dist-info/METADATA,sha256=PpQCxb7zSYo0nVbH35Dv6uwTRgo5D8Ye1kF-Fa4AXa0,19200
39
- c2cciutils-1.7.0.dev326.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
40
- c2cciutils-1.7.0.dev326.dist-info/entry_points.txt,sha256=jPDp7KeB0Fz_TpOwbOODeW2WEcdLNJZACPtKpRqtHs4,1030
41
- c2cciutils-1.7.0.dev326.dist-info/RECORD,,
37
+ c2cciutils-1.7.0.dev334.dist-info/LICENSE,sha256=EMCYfDu0AgsMQO6k8Hl_xHzoFxM0db1xu9n_asZW9Vc,1307
38
+ c2cciutils-1.7.0.dev334.dist-info/METADATA,sha256=f08LeftPSfDck0GdN-JDADhxAIwR-FgVCNC3oIZ2Th0,19200
39
+ c2cciutils-1.7.0.dev334.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
40
+ c2cciutils-1.7.0.dev334.dist-info/entry_points.txt,sha256=jPDp7KeB0Fz_TpOwbOODeW2WEcdLNJZACPtKpRqtHs4,1030
41
+ c2cciutils-1.7.0.dev334.dist-info/RECORD,,