wexample-wex-addon-dev-javascript 8.13.4__py3-none-any.whl → 8.13.6__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.
@@ -77,9 +77,7 @@ class NodePackageJsonFile(AppDependenciesConfigFileMixin, JsonFile):
77
77
  return {**deps, **peer}
78
78
 
79
79
  def get_dev_dependencies_versions(self) -> dict[str, str]:
80
- return (
81
- self.read_config().search(path="devDependencies").to_dict_or_none() or {}
82
- )
80
+ return self.read_config().search(path="devDependencies").to_dict_or_none() or {}
83
81
 
84
82
  def get_registry_versions(self) -> dict[str, str] | None:
85
83
  """The latest version of each dependency of a scope the .npmrc beside
@@ -83,7 +83,5 @@ done
83
83
  """
84
84
 
85
85
  context.io.log(f"Wiring local npm packages ({vendors}) into node_modules/…")
86
- output = service.addon_manager.docker_exec(
87
- service.name, ["/bin/sh", "-c", script]
88
- )
86
+ output = service.addon_manager.docker_exec(service.name, ["/bin/sh", "-c", script])
89
87
  context.io.log(output)
@@ -80,7 +80,9 @@ fi
80
80
  npmrc_environment = {
81
81
  name: value
82
82
  for name in (
83
- re.findall(r"\$\{([A-Z0-9_]+)\}", npmrc.read_text()) if npmrc.is_file() else []
83
+ re.findall(r"\$\{([A-Z0-9_]+)\}", npmrc.read_text())
84
+ if npmrc.is_file()
85
+ else []
84
86
  )
85
87
  if (value := service.app_workdir.get_env_parameter(name, default=None))
86
88
  }
@@ -92,9 +92,7 @@ class JavascriptPackageWorkdir(JavascriptWorkdir):
92
92
  "type": DiskItemType.FILE,
93
93
  "should_exist": True,
94
94
  "content": file_read(
95
- module_get_path(
96
- wexample_wex_addon_dev_javascript
97
- )
95
+ module_get_path(wexample_wex_addon_dev_javascript)
98
96
  / "resources"
99
97
  / "package_publish.yml"
100
98
  ),
@@ -143,7 +141,9 @@ class JavascriptPackageWorkdir(JavascriptWorkdir):
143
141
  )
144
142
  from wexample_helpers_git.helper.git import git_content_changed_files_since_tag
145
143
 
146
- if not git_content_changed_files_since_tag(last_tag, "src", cwd=self.get_path()):
144
+ if not git_content_changed_files_since_tag(
145
+ last_tag, "src", cwd=self.get_path()
146
+ ):
147
147
  return UPGRADE_TYPE_MINOR
148
148
 
149
149
  # Check if all changes in src/ are whitespace-only — safe to treat as patch
@@ -181,7 +181,9 @@ class JavascriptPackageWorkdir(JavascriptWorkdir):
181
181
  os.chown(config_dir, user_get_real_uid(), user_get_real_gid())
182
182
  env = {"NPM_CONFIG_USERCONFIG": os.path.join(config_dir, ".npmrc")}
183
183
 
184
- self.log("Declaring the CI as trusted publisher — confirm the two links npm prints.")
184
+ self.log(
185
+ "Declaring the CI as trusted publisher — confirm the two links npm prints."
186
+ )
185
187
  try:
186
188
  self._shell_run_node_command(["npm", "login", "--auth-type=web"], env)
187
189
  self._shell_run_node_command(
@@ -310,8 +312,11 @@ class JavascriptPackageWorkdir(JavascriptWorkdir):
310
312
  # without anyone waiting for it.
311
313
  if self.get_gitlab_registry_url():
312
314
  self._publish_to_gitlab_registry(force=force)
313
- if self.is_published_publicly() and not self._get_registry_gateway().has_package(
314
- self.get_project_name()
315
+ if (
316
+ self.is_published_publicly()
317
+ and not self._get_registry_gateway().has_package(
318
+ self.get_project_name()
319
+ )
315
320
  ):
316
321
  # npm's first version asks for a login and confirmations: someone
317
322
  # has to be there, which a runner never is.
@@ -330,8 +335,9 @@ class JavascriptPackageWorkdir(JavascriptWorkdir):
330
335
 
331
336
  # Only public npm has the chicken-and-egg problem: a private registry
332
337
  # (GitLab) lets its CI job token create the package itself.
333
- if self.is_published_publicly() and not self._get_registry_gateway().has_package(
334
- self.get_project_name()
338
+ if (
339
+ self.is_published_publicly()
340
+ and not self._get_registry_gateway().has_package(self.get_project_name())
335
341
  ):
336
342
  self._publish_first_version()
337
343
  return
@@ -366,7 +372,9 @@ class JavascriptPackageWorkdir(JavascriptWorkdir):
366
372
  # To npm itself: installs read the vendor's scope from GitLab.
367
373
  self._shell_run_node_command(
368
374
  [manager, "publish", "--access", "public"],
369
- {f"npm_config_{package.split('/', 1)[0]}:registry": NPM_REGISTRY_URL_DEFAULT},
375
+ {
376
+ f"npm_config_{package.split('/', 1)[0]}:registry": NPM_REGISTRY_URL_DEFAULT
377
+ },
370
378
  )
371
379
 
372
380
  self._first_publication = True
@@ -488,7 +496,9 @@ class JavascriptPackageWorkdir(JavascriptWorkdir):
488
496
  f"available on this machine. A stale lockfile would break "
489
497
  f"the strict CI install."
490
498
  )
491
- self._shell_run_node_command(command, extra_env=self._suite_registry_environment())
499
+ self._shell_run_node_command(
500
+ command, extra_env=self._suite_registry_environment()
501
+ )
492
502
  return
493
503
 
494
504
  def _suite_registry_environment(self) -> dict[str, str]:
@@ -503,7 +513,9 @@ class JavascriptPackageWorkdir(JavascriptWorkdir):
503
513
  return {}
504
514
  suite = self.get_suite_workdir()
505
515
  siblings = (
506
- {package.get_package_name() for package in suite.get_packages()} if suite else set()
516
+ {package.get_package_name() for package in suite.get_packages()}
517
+ if suite
518
+ else set()
507
519
  )
508
520
  dependencies = {
509
521
  **self.get_app_config_file().get_dependencies_versions(),
@@ -590,4 +602,3 @@ class JavascriptPackageWorkdir(JavascriptWorkdir):
590
602
  ).run()
591
603
 
592
604
  self.success(f"{package}@{version} is available.")
593
-
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wexample-wex-addon-dev-javascript
3
- Version: 8.13.4
3
+ Version: 8.13.6
4
4
  Summary: Extends wex with JavaScript support: enforces JS/TS project layout and symlinks local npm packages into node_modules
5
5
  Author-Email: weeger <contact@wexample.com>
6
6
  License: MIT
@@ -12,9 +12,9 @@ Requires-Python: >=3.10
12
12
  Requires-Dist: attrs>=23.1.0
13
13
  Requires-Dist: cattrs>=23.1.0
14
14
  Requires-Dist: wexample-api>=6.8.0
15
- Requires-Dist: wexample-filestate-javascript>=6.6.0
15
+ Requires-Dist: wexample-filestate-javascript>=6.8.0
16
16
  Requires-Dist: wexample-wex-addon-ai>=19.1.0
17
- Requires-Dist: wexample-wex-addon-app>=34.17.0
17
+ Requires-Dist: wexample-wex-addon-app>=35.1.0
18
18
  Provides-Extra: dev
19
19
  Requires-Dist: pytest; extra == "dev"
20
20
  Requires-Dist: pytest-cov; extra == "dev"
@@ -22,7 +22,7 @@ Description-Content-Type: text/markdown
22
22
 
23
23
  # wex_addon_dev_javascript
24
24
 
25
- Version: 8.13.4
25
+ Version: 8.13.6
26
26
 
27
27
  Extends wex with JavaScript support: enforces JS/TS project layout and symlinks local npm packages into node_modules
28
28
 
@@ -1,6 +1,6 @@
1
- wexample_wex_addon_dev_javascript-8.13.4.dist-info/METADATA,sha256=3-B5ujNB0rMTDMGWX6plMZKc-EhxrfEsG_rdK2Y8ywQ,3403
2
- wexample_wex_addon_dev_javascript-8.13.4.dist-info/WHEEL,sha256=IuIk3wbaEnFH1cx75iM2R1CmliRI3dFLXTbRakgvgFQ,90
3
- wexample_wex_addon_dev_javascript-8.13.4.dist-info/entry_points.txt,sha256=WwYdg3RL2Ey1fg4JNNkcQxZcQRgZSgPLLzSDi6lbYgI,143
1
+ wexample_wex_addon_dev_javascript-8.13.6.dist-info/METADATA,sha256=ZnD3SLu2STktmA6KqfJh6d7DVjNkTncye058Yzd3hBI,3402
2
+ wexample_wex_addon_dev_javascript-8.13.6.dist-info/WHEEL,sha256=IuIk3wbaEnFH1cx75iM2R1CmliRI3dFLXTbRakgvgFQ,90
3
+ wexample_wex_addon_dev_javascript-8.13.6.dist-info/entry_points.txt,sha256=WwYdg3RL2Ey1fg4JNNkcQxZcQRgZSgPLLzSDi6lbYgI,143
4
4
  wexample_wex_addon_dev_javascript/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  wexample_wex_addon_dev_javascript/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  wexample_wex_addon_dev_javascript/common/npm_registry_gateway.py,sha256=jcAIOZN1eiPeRSjradY095VI93ne86ijbVAZcXzCKpQ,2742
@@ -13,7 +13,7 @@ wexample_wex_addon_dev_javascript/file/__init__.py,sha256=U4S_2y3zgLZVfMenHRaJFB
13
13
  wexample_wex_addon_dev_javascript/file/javascript_package_json_file.py,sha256=yn1ltv3oBYNg1OvUytJ4PEzH8FSJS2KcIKK8y-cMrl4,2906
14
14
  wexample_wex_addon_dev_javascript/file/javascript_package_lock_json_file.py,sha256=PPlIbKksyw0IPjJuaNbxcwty1nsH875owgRCgeJIij4,1388
15
15
  wexample_wex_addon_dev_javascript/file/javascript_tsconfig_json_file.py,sha256=a2vfYgB7gbiIiGljU_QA6extFJPyNM6rlhhAS3YoeCs,1395
16
- wexample_wex_addon_dev_javascript/file/node_package_json_file.py,sha256=QN9GfD8G7vncQx8BLcOXqkQ7gfk41cxO0swL4huo6IA,5404
16
+ wexample_wex_addon_dev_javascript/file/node_package_json_file.py,sha256=Amb0bzavkAGE371j93i0rVsEzbnuGUnwRK6AZ-eGopY,5380
17
17
  wexample_wex_addon_dev_javascript/formatter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
18
  wexample_wex_addon_dev_javascript/formatter/javascript_code_formatter.py,sha256=6TLrynxXH-P0kHiW6FmgROA8fG2Ik03Pn4JV9dctDuE,1618
19
19
  wexample_wex_addon_dev_javascript/javascript_addon_manager.py,sha256=zateyPGxtR4eOdjstfLI6MfTagEOWAAeb2CZqF_qMVo,1387
@@ -27,8 +27,8 @@ wexample_wex_addon_dev_javascript/services/__init__.py,sha256=47DEQpj8HBSa-_TImW
27
27
  wexample_wex_addon_dev_javascript/services/node/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
28
28
  wexample_wex_addon_dev_javascript/services/node/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
29
  wexample_wex_addon_dev_javascript/services/node/commands/service/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
- wexample_wex_addon_dev_javascript/services/node/commands/service/install_local.py,sha256=U4WjWabvGhlET5zocCfKIT-1WwQJbRK0GOGD7krwTnE,3283
31
- wexample_wex_addon_dev_javascript/services/node/commands/service/refresh_lock.py,sha256=zBvS17vE8bTJJxZ6ATFQt5zAq2EweSmJSaRe04qGrHk,3433
30
+ wexample_wex_addon_dev_javascript/services/node/commands/service/install_local.py,sha256=Fcs48d1r3Dm3u5m8kxWSCivu5p8pXGSjuPohUGVVV14,3269
31
+ wexample_wex_addon_dev_javascript/services/node/commands/service/refresh_lock.py,sha256=kDp4DfjjHhDsqa5RxdzXtTwr3vlqSDIigq7GhblNyvs,3457
32
32
  wexample_wex_addon_dev_javascript/services/node/docker/.wex.yml,sha256=JdIF6nGkFcfi76yZYGlXxeWfOK4eAUSV_gAn6i3hk2w,32
33
33
  wexample_wex_addon_dev_javascript/services/node/docker/docker-compose.yml,sha256=joejn22luhTK0U2vRMh52NjeWidu1EswuUdfKeb7GEM,371
34
34
  wexample_wex_addon_dev_javascript/services/node/service.yml,sha256=jPLW-E4ymVaEnTwdTjVvTJNx04pwMGN4twxeOuN37mo,95
@@ -47,7 +47,7 @@ wexample_wex_addon_dev_javascript/services/vite/docker/.wex.yml,sha256=JdIF6nGkF
47
47
  wexample_wex_addon_dev_javascript/services/vite/docker/docker-compose.yml,sha256=M7ejIcht0GxuEAEEcK3urBIrXA66JwYrr5EPUA9nMMM,595
48
48
  wexample_wex_addon_dev_javascript/services/vite/service.yml,sha256=8mFPv49QbKA3klHFbNK73QOB7ryy38zFeLiQB3gfDys,184
49
49
  wexample_wex_addon_dev_javascript/workdir/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
50
- wexample_wex_addon_dev_javascript/workdir/javascript_package_workdir.py,sha256=U0gf0Zgj0k34yfoARFLmbcm9f7hXxbo7RPSHNgSSUa8,25009
50
+ wexample_wex_addon_dev_javascript/workdir/javascript_package_workdir.py,sha256=D0J88JDCJUH3eEUdSKtXsIaD9HoTOOG_nlt81pb55uU,25128
51
51
  wexample_wex_addon_dev_javascript/workdir/javascript_packages_suite_workdir.py,sha256=b0QoTWlNYOYfpqEb8vYzL4WRoY0WwBhYOFUoRc4oySI,928
52
52
  wexample_wex_addon_dev_javascript/workdir/javascript_workdir.py,sha256=EFY0-500y9PKeLtZIvI-q53n-EfNiHCpKnkmWm-q68w,9948
53
- wexample_wex_addon_dev_javascript-8.13.4.dist-info/RECORD,,
53
+ wexample_wex_addon_dev_javascript-8.13.6.dist-info/RECORD,,