c2cciutils 1.8.0.dev50__py3-none-any.whl → 1.8.0.dev51__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.

@@ -1,4 +1,4 @@
1
1
  # https://docs.renovatebot.com/modules/datasource/#github-releases-datasource
2
- k3d-io/k3d: v5.7.5 # github-releases
3
- postgresql: 16.3.5 # helm - https://charts.bitnami.com/bitnami
2
+ k3d-io/k3d: v5.8.1 # github-releases
3
+ postgresql: 16.4.5 # helm - https://charts.bitnami.com/bitnami
4
4
  helm/chart-releaser: v1.7.0 # github-releases
@@ -8,7 +8,7 @@
8
8
  "name": "c2ccicheck",
9
9
  "version": "1.0.0",
10
10
  "dependencies": {
11
- "snyk": "1.1294.3"
11
+ "snyk": "1.1295.2"
12
12
  }
13
13
  },
14
14
  "node_modules/@sentry-internal/tracing": {
@@ -332,9 +332,9 @@
332
332
  }
333
333
  },
334
334
  "node_modules/snyk": {
335
- "version": "1.1294.3",
336
- "resolved": "https://registry.npmjs.org/snyk/-/snyk-1.1294.3.tgz",
337
- "integrity": "sha512-ZF+F2bv293HmpFxZCV0x8hT3rQGOl6rPDoJq/TqBT1i5/nZypfn8v4A1Q4m6zUSUs1g6WJsS8QR5wTlR/eSvMQ==",
335
+ "version": "1.1295.2",
336
+ "resolved": "https://registry.npmjs.org/snyk/-/snyk-1.1295.2.tgz",
337
+ "integrity": "sha512-Unl6HD/XF2DfDEj4pySiQF5bUkc6yS/tljtO9LHgjJjfj4CRGZdNs2HmtfEJHsnda3pqBEUO71L7PXhgouzYGw==",
338
338
  "hasInstallScript": true,
339
339
  "license": "Apache-2.0",
340
340
  "dependencies": {
c2cciutils/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "description": "",
5
5
  "author": "",
6
6
  "dependencies": {
7
- "snyk": "1.1294.3"
7
+ "snyk": "1.1295.2"
8
8
  }
9
9
  }
c2cciutils/publish.py CHANGED
@@ -28,7 +28,7 @@ class GoogleCalendar:
28
28
  def __init__(self) -> None:
29
29
  """Initialize."""
30
30
  self.scopes = ["https://www.googleapis.com/auth/calendar"] # in fact it is better to hard-code this
31
- self.credentials_pickle_file = os.environ.get("TMP_CREDS_FILE", f"/tmp/{uuid.uuid4()}.pickle") # noqa: S108
31
+ self.credentials_pickle_file = os.environ.get("TMP_CREDS_FILE", f"/tmp/{uuid.uuid4()}.pickle") # noqa: S108 # nosec
32
32
  self.credentials_json_file = os.environ.get(
33
33
  "GOOGLE_CREDS_JSON_FILE", "~/google-credentials-c2cibot.json"
34
34
  ) # used to refresh the refresh_token or to initialize the credentials the first time
@@ -62,7 +62,7 @@ class GoogleCalendar:
62
62
  # time.
63
63
  if os.path.exists(self.credentials_pickle_file):
64
64
  with open(self.credentials_pickle_file, "rb") as token:
65
- creds = pickle.load(token) # noqa: S301
65
+ creds = pickle.load(token) # noqa: S301 # nosec
66
66
  # If there are no (valid) credentials available, let the user log in.
67
67
  if not creds or not creds.valid: # pylint: disable=possibly-used-before-assignment
68
68
  if creds and creds.expired and creds.refresh_token:
@@ -99,7 +99,7 @@ class GoogleCalendar:
99
99
  # list all the calendars that the user has access to.
100
100
  # used to debug credentials
101
101
  print("Getting list of calendars")
102
- calendars_result = self.service.calendarList().list().execute()
102
+ calendars_result = self.service.calendarList().list().execute() # pylint: disable=no-member
103
103
 
104
104
  calendars = calendars_result.get("items", [])
105
105
 
@@ -123,7 +123,7 @@ class GoogleCalendar:
123
123
  if not time_min:
124
124
  time_min = datetime.datetime.utcnow() - datetime.timedelta(days=30)
125
125
  events_result = (
126
- self.service.events()
126
+ self.service.events() # pylint: disable=no-member
127
127
  .list(
128
128
  calendarId=self.calendar_id,
129
129
  timeMin=time_min.isoformat() + "Z",
@@ -164,7 +164,7 @@ class GoogleCalendar:
164
164
  "end": {"dateTime": end, "timeZone": "Europe/Zurich"},
165
165
  }
166
166
 
167
- event_result = self.service.events().insert(calendarId=self.calendar_id, body=body).execute()
167
+ event_result = self.service.events().insert(calendarId=self.calendar_id, body=body).execute() # pylint: disable=no-member
168
168
  print(f"Created event with id: {event_result['id']}")
169
169
 
170
170
  def save_credentials_to_gopass(self) -> None:
@@ -30,11 +30,11 @@ def main() -> None:
30
30
 
31
31
  # Store in /tmp/docker-logs-timestamp the current timestamp to avoid printing same logs multiple times.
32
32
  timestamp_args = []
33
- if os.path.exists("/tmp/docker-logs-timestamp"): # noqa: S108
34
- with open("/tmp/docker-logs-timestamp", encoding="utf-8") as timestamp_file: # noqa: S108
33
+ if os.path.exists("/tmp/docker-logs-timestamp"): # noqa: S108 # nosec
34
+ with open("/tmp/docker-logs-timestamp", encoding="utf-8") as timestamp_file: # noqa: S108 # nosec
35
35
  timestamp_args = [f"--since={timestamp_file.read().strip()}Z"]
36
36
 
37
- with open("/tmp/docker-logs-timestamp", "w", encoding="utf-8") as timestamp_file: # noqa: S108
37
+ with open("/tmp/docker-logs-timestamp", "w", encoding="utf-8") as timestamp_file: # noqa: S108 # nosec
38
38
  timestamp_file.write(datetime.utcnow().isoformat())
39
39
 
40
40
  for name in (
@@ -59,7 +59,7 @@ def main() -> None:
59
59
 
60
60
  def dispatch(repository: str, event_type: str, images_full: list[str]) -> None:
61
61
  """Trigger an image update on the argocd repository."""
62
- id_ = random.randint(1, 100000) # noqa: S311
62
+ id_ = random.randint(1, 100000) # noqa: S311 # nosec
63
63
  print(f"Triggering {event_type}:{id_} on {repository} with {','.join(images_full)}")
64
64
 
65
65
  response = requests.post(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: c2cciutils
3
- Version: 1.8.0.dev50
3
+ Version: 1.8.0.dev51
4
4
  Summary: Common utilities for Camptocamp CI
5
5
  Home-page: https://github.com/camptocamp/c2cciutils
6
6
  License: FreeBSD
@@ -1,5 +1,5 @@
1
1
  c2cciutils/__init__.py,sha256=-J6_XPwyZ3Xbix6AhmAONbltSf9okJsXwQvBj6TuP_U,13353
2
- c2cciutils/applications-versions.yaml,sha256=uTCcyFKt2GJIhUNxrOl3hEZo-6ee0x5ftb9Zncci6dk,224
2
+ c2cciutils/applications-versions.yaml,sha256=LaIzIK9DY7YS6R3Fa_tNCFUaREf_kzwW80Uor-ZBmj8,224
3
3
  c2cciutils/applications.yaml,sha256=yn0XRi08cS29A_jXPofcBPxsGBv7PEBliztjRC3WtfM,504
4
4
  c2cciutils/applications_definition.py,sha256=inAh3vJitu3S9n62Ntv6N-avNUQlUd5FatNvDq4VpxM,1305
5
5
  c2cciutils/branches.graphql,sha256=UZrj1RO-H527M1SKqWm1VnkWtNsuKTnPTf4BCU2YcOU,358
@@ -9,14 +9,14 @@ c2cciutils/default_branch.graphql,sha256=CaP3rRsNiyg_7RvqbMk0tOJr0aqWd8cOeSV-ZKg
9
9
  c2cciutils/env.py,sha256=daNqFY-6-X7PGuPz5OaN634KqYtsawj9Dj-Zt-bxctw,3338
10
10
  c2cciutils/lib/docker.py,sha256=ULklJgc-8sfy1vI8p_cbYYEq_u73BKNIGorMxzEKA2I,5663
11
11
  c2cciutils/lib/oidc.py,sha256=M03Avmwy45u3xzP8uhyTXJ8mY5BEonsXKeO-S1DC_JI,6297
12
- c2cciutils/package-lock.json,sha256=lFCuvKM1p63hGIzj53UkTvjb3LR9tz95L5NuPAt1SSc,13406
13
- c2cciutils/package.json,sha256=M-ah0GP5yl-tipGXquiCD9m6wBPqUwonCrmHLG9JwT4,134
14
- c2cciutils/publish.py,sha256=Pc8BdEMZiqDiNIP3tlysNf1nxc-0ZM0lnymfKcqapg8,17158
12
+ c2cciutils/package-lock.json,sha256=jFYeJsnGJELg-NPl5btLrJvMw7kgZnF91FOX58YlgXs,13406
13
+ c2cciutils/package.json,sha256=ldnUjKZmT2OGChP8rXlEKR47kQ08WzJQx6nRBqh2CTs,134
14
+ c2cciutils/publish.py,sha256=MJok8QdlfxdwNF5UfPIqRzteNubDFS_BKQe1Scbumy8,17261
15
15
  c2cciutils/schema-applications.json,sha256=Tus-s9NB7uwKhTrQwhWQM4_oJygF_yHUqShtZhN1IxE,1551
16
16
  c2cciutils/schema.json,sha256=G0WbvTVn9zdDjilFr28uZqF7zDVADl7uQus12_TVnSs,14559
17
17
  c2cciutils/scripts/__init__.py,sha256=YvySYhMJ9eUqBc9FgH6hNbZHbTU25D7z6FIbYJiRW_U,34
18
18
  c2cciutils/scripts/clean.py,sha256=oB4A4TvSNoo7vGWzy5m0p2QDyGM-ix0FepxPIqqNlyg,2987
19
- c2cciutils/scripts/docker_logs.py,sha256=-_LeoavnKqNNeDJMwkAMKrH91JBUiJuAScMpCA6VfTA,1766
19
+ c2cciutils/scripts/docker_logs.py,sha256=m8ETno2N1mqh-xHvmCi2zxXfvX_vc14dgsOqqMsxpdQ,1790
20
20
  c2cciutils/scripts/docker_versions_gen.py,sha256=yp1I_UqxyIABKxHek3q3UYWh0YR8tqKWzliC2kqZOa0,1315
21
21
  c2cciutils/scripts/download_applications.py,sha256=x0SPm4MCWCIYMp1AWekIpbOicwUixitEAJ69quMq698,4488
22
22
  c2cciutils/scripts/env.py,sha256=YZwV39D_vQ454ytHByI84gXP6VrtTW3eM8MdFLUBCw0,363
@@ -28,10 +28,10 @@ c2cciutils/scripts/k8s/wait.py,sha256=zgPToNMN42qRTAq3RyzCApOqxOPJmmVUsIqbEuXCdi
28
28
  c2cciutils/scripts/main.py,sha256=DfljDzEGCWwP7FZG0RRZaXD6PmOVaXMJjnNBQ0-rAWM,785
29
29
  c2cciutils/scripts/pin_pipenv.py,sha256=jBTwlolcEL0MUyq6VYzO-adkcL1gqN7B3kBb3UjTo2k,2150
30
30
  c2cciutils/scripts/publish.py,sha256=wzXSBn_60DzMJVdO8i2NjjO6Vwg6L6efH_T6ZR6LRsU,20513
31
- c2cciutils/scripts/trigger_image_update.py,sha256=kEQHs71ymRNFh5VpKt0UMJILxcRPFZupl24iJ2EA3Bs,2772
31
+ c2cciutils/scripts/trigger_image_update.py,sha256=HQI4vm9kwInr_6zbLcwjIpX_Rs05woGvbMes8okhvZk,2780
32
32
  c2cciutils/scripts/version.py,sha256=Srk22CQudxT8JixS-ZBsxeJvWryYVzN_NiWpcJvgrWI,8931
33
- c2cciutils-1.8.0.dev50.dist-info/LICENSE,sha256=K_e76Y2cY12AHvtanvNmIEJ0nWsNh_WFMDK020TxMcY,1307
34
- c2cciutils-1.8.0.dev50.dist-info/METADATA,sha256=drs8RJduwexOXXYXJXI3ylTauHL42r1x-zQ7jsyjW0c,17852
35
- c2cciutils-1.8.0.dev50.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
36
- c2cciutils-1.8.0.dev50.dist-info/entry_points.txt,sha256=54llpn1q67tS78NbLwA8rwSDWnEQ6aE3FaqMN0ctNN8,918
37
- c2cciutils-1.8.0.dev50.dist-info/RECORD,,
33
+ c2cciutils-1.8.0.dev51.dist-info/LICENSE,sha256=K_e76Y2cY12AHvtanvNmIEJ0nWsNh_WFMDK020TxMcY,1307
34
+ c2cciutils-1.8.0.dev51.dist-info/METADATA,sha256=NXvbyt6f948zt___1mp0b2P8PGY1CNPP2mSY63WnK_o,17852
35
+ c2cciutils-1.8.0.dev51.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
36
+ c2cciutils-1.8.0.dev51.dist-info/entry_points.txt,sha256=54llpn1q67tS78NbLwA8rwSDWnEQ6aE3FaqMN0ctNN8,918
37
+ c2cciutils-1.8.0.dev51.dist-info/RECORD,,