wexample-wex-addon-dev-javascript 0.0.56__tar.gz → 0.0.57__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.
- {wexample_wex_addon_dev_javascript-0.0.56 → wexample_wex_addon_dev_javascript-0.0.57}/PKG-INFO +9 -9
- {wexample_wex_addon_dev_javascript-0.0.56 → wexample_wex_addon_dev_javascript-0.0.57}/README.md +5 -5
- {wexample_wex_addon_dev_javascript-0.0.56 → wexample_wex_addon_dev_javascript-0.0.57}/pyproject.toml +4 -4
- wexample_wex_addon_dev_javascript-0.0.57/src/wexample_wex_addon_dev_javascript/file/javascript_package_json_file.py +28 -0
- {wexample_wex_addon_dev_javascript-0.0.56 → wexample_wex_addon_dev_javascript-0.0.57}/src/wexample_wex_addon_dev_javascript/workdir/javascript_package_workdir.py +7 -6
- wexample_wex_addon_dev_javascript-0.0.56/src/wexample_wex_addon_dev_javascript/file/javascript_package_json_file.py +0 -43
- {wexample_wex_addon_dev_javascript-0.0.56 → wexample_wex_addon_dev_javascript-0.0.57}/src/wexample_wex_addon_dev_javascript/__init__.py +0 -0
- {wexample_wex_addon_dev_javascript-0.0.56 → wexample_wex_addon_dev_javascript-0.0.57}/src/wexample_wex_addon_dev_javascript/__pycache__/__init__.py +0 -0
- {wexample_wex_addon_dev_javascript-0.0.56 → wexample_wex_addon_dev_javascript-0.0.57}/src/wexample_wex_addon_dev_javascript/config_value/__init__.py +0 -0
- {wexample_wex_addon_dev_javascript-0.0.56 → wexample_wex_addon_dev_javascript-0.0.57}/src/wexample_wex_addon_dev_javascript/config_value/javascript_package_readme_config_value.py +0 -0
- {wexample_wex_addon_dev_javascript-0.0.56 → wexample_wex_addon_dev_javascript-0.0.57}/src/wexample_wex_addon_dev_javascript/file/__init__.py +0 -0
- {wexample_wex_addon_dev_javascript-0.0.56 → wexample_wex_addon_dev_javascript-0.0.57}/src/wexample_wex_addon_dev_javascript/javascript_addon_manager.py +0 -0
- {wexample_wex_addon_dev_javascript-0.0.56 → wexample_wex_addon_dev_javascript-0.0.57}/src/wexample_wex_addon_dev_javascript/py.typed +0 -0
- {wexample_wex_addon_dev_javascript-0.0.56 → wexample_wex_addon_dev_javascript-0.0.57}/src/wexample_wex_addon_dev_javascript/workdir/__init__.py +0 -0
- {wexample_wex_addon_dev_javascript-0.0.56 → wexample_wex_addon_dev_javascript-0.0.57}/src/wexample_wex_addon_dev_javascript/workdir/javascript_packages_suite_workdir.py +0 -0
- {wexample_wex_addon_dev_javascript-0.0.56 → wexample_wex_addon_dev_javascript-0.0.57}/src/wexample_wex_addon_dev_javascript/workdir/javascript_workdir.py +0 -0
{wexample_wex_addon_dev_javascript-0.0.56 → wexample_wex_addon_dev_javascript-0.0.57}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: wexample-wex-addon-dev-javascript
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.57
|
|
4
4
|
Summary: Python dev addon for wex
|
|
5
5
|
Author-Email: weeger <contact@wexample.com>
|
|
6
6
|
License: MIT
|
|
@@ -11,9 +11,9 @@ Project-URL: homepage, https://github.com/wexample/python-wex-dev-python
|
|
|
11
11
|
Requires-Python: >=3.10
|
|
12
12
|
Requires-Dist: attrs>=23.1.0
|
|
13
13
|
Requires-Dist: cattrs>=23.1.0
|
|
14
|
-
Requires-Dist: wexample-filestate-javascript==0.0.
|
|
15
|
-
Requires-Dist: wexample-wex-addon-app==0.0.
|
|
16
|
-
Requires-Dist: wexample-wex-core==6.0.
|
|
14
|
+
Requires-Dist: wexample-filestate-javascript==0.0.14
|
|
15
|
+
Requires-Dist: wexample-wex-addon-app==0.0.55
|
|
16
|
+
Requires-Dist: wexample-wex-core==6.0.67
|
|
17
17
|
Provides-Extra: dev
|
|
18
18
|
Requires-Dist: pytest; extra == "dev"
|
|
19
19
|
Requires-Dist: pytest-cov; extra == "dev"
|
|
@@ -21,7 +21,7 @@ Description-Content-Type: text/markdown
|
|
|
21
21
|
|
|
22
22
|
# wexample-wex-addon-dev-javascript
|
|
23
23
|
|
|
24
|
-
Version: 0.0.
|
|
24
|
+
Version: 0.0.57
|
|
25
25
|
|
|
26
26
|
Python dev addon for wex
|
|
27
27
|
|
|
@@ -211,7 +211,7 @@ Free to use in both personal and commercial projects.
|
|
|
211
211
|
|
|
212
212
|
## Integration in the Suite
|
|
213
213
|
|
|
214
|
-
This package is part of the
|
|
214
|
+
This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
|
|
215
215
|
|
|
216
216
|
### Related Packages
|
|
217
217
|
|
|
@@ -229,9 +229,9 @@ Refer to each package's documentation for specific version compatibility require
|
|
|
229
229
|
|
|
230
230
|
- attrs: >=23.1.0
|
|
231
231
|
- cattrs: >=23.1.0
|
|
232
|
-
- wexample-filestate-javascript: ==0.0.
|
|
233
|
-
- wexample-wex-addon-app: ==0.0.
|
|
234
|
-
- wexample-wex-core: ==6.0.
|
|
232
|
+
- wexample-filestate-javascript: ==0.0.14
|
|
233
|
+
- wexample-wex-addon-app: ==0.0.55
|
|
234
|
+
- wexample-wex-core: ==6.0.67
|
|
235
235
|
|
|
236
236
|
|
|
237
237
|
# About us
|
{wexample_wex_addon_dev_javascript-0.0.56 → wexample_wex_addon_dev_javascript-0.0.57}/README.md
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# wexample-wex-addon-dev-javascript
|
|
2
2
|
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.57
|
|
4
4
|
|
|
5
5
|
Python dev addon for wex
|
|
6
6
|
|
|
@@ -190,7 +190,7 @@ Free to use in both personal and commercial projects.
|
|
|
190
190
|
|
|
191
191
|
## Integration in the Suite
|
|
192
192
|
|
|
193
|
-
This package is part of the
|
|
193
|
+
This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
|
|
194
194
|
|
|
195
195
|
### Related Packages
|
|
196
196
|
|
|
@@ -208,9 +208,9 @@ Refer to each package's documentation for specific version compatibility require
|
|
|
208
208
|
|
|
209
209
|
- attrs: >=23.1.0
|
|
210
210
|
- cattrs: >=23.1.0
|
|
211
|
-
- wexample-filestate-javascript: ==0.0.
|
|
212
|
-
- wexample-wex-addon-app: ==0.0.
|
|
213
|
-
- wexample-wex-core: ==6.0.
|
|
211
|
+
- wexample-filestate-javascript: ==0.0.14
|
|
212
|
+
- wexample-wex-addon-app: ==0.0.55
|
|
213
|
+
- wexample-wex-core: ==6.0.67
|
|
214
214
|
|
|
215
215
|
|
|
216
216
|
# About us
|
{wexample_wex_addon_dev_javascript-0.0.56 → wexample_wex_addon_dev_javascript-0.0.57}/pyproject.toml
RENAMED
|
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
|
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "wexample-wex-addon-dev-javascript"
|
|
9
|
-
version = "0.0.
|
|
9
|
+
version = "0.0.57"
|
|
10
10
|
description = "Python dev addon for wex"
|
|
11
11
|
authors = [
|
|
12
12
|
{ name = "weeger", email = "contact@wexample.com" },
|
|
@@ -20,9 +20,9 @@ classifiers = [
|
|
|
20
20
|
dependencies = [
|
|
21
21
|
"attrs>=23.1.0",
|
|
22
22
|
"cattrs>=23.1.0",
|
|
23
|
-
"wexample-filestate-javascript==0.0.
|
|
24
|
-
"wexample-wex-addon-app==0.0.
|
|
25
|
-
"wexample-wex-core==6.0.
|
|
23
|
+
"wexample-filestate-javascript==0.0.14",
|
|
24
|
+
"wexample-wex-addon-app==0.0.55",
|
|
25
|
+
"wexample-wex-core==6.0.67",
|
|
26
26
|
]
|
|
27
27
|
|
|
28
28
|
[project.readme]
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from wexample_filestate.item.file.json_file import JsonFile
|
|
4
|
+
from wexample_helpers.decorator.base_class import base_class
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
@base_class
|
|
8
|
+
class JavascriptPackageJsonFile(JsonFile):
|
|
9
|
+
def dumps(self, content: dict | None = None) -> str:
|
|
10
|
+
content = content or self.read_parsed()
|
|
11
|
+
|
|
12
|
+
workdir = self.get_parent_item()
|
|
13
|
+
content["name"] = workdir.get_package_import_name()
|
|
14
|
+
content["version"] = workdir.get_project_version()
|
|
15
|
+
|
|
16
|
+
if not content.get("type"):
|
|
17
|
+
content["type"] = "module"
|
|
18
|
+
|
|
19
|
+
return super().dumps(content or {})
|
|
20
|
+
|
|
21
|
+
def get_dependencies_versions(
|
|
22
|
+
self, optional: bool = False, group: str = "dev"
|
|
23
|
+
) -> dict[str, str]:
|
|
24
|
+
return (
|
|
25
|
+
self.read_config()
|
|
26
|
+
.search(path="dependencies")
|
|
27
|
+
.get_dict_or_default(default={})
|
|
28
|
+
)
|
|
@@ -5,6 +5,7 @@ import subprocess
|
|
|
5
5
|
from typing import TYPE_CHECKING
|
|
6
6
|
|
|
7
7
|
from wexample_helpers.helpers.string import string_to_kebab_case
|
|
8
|
+
|
|
8
9
|
from wexample_wex_addon_dev_javascript.workdir.javascript_workdir import (
|
|
9
10
|
JavascriptWorkdir,
|
|
10
11
|
)
|
|
@@ -19,6 +20,12 @@ if TYPE_CHECKING:
|
|
|
19
20
|
|
|
20
21
|
|
|
21
22
|
class JavascriptPackageWorkdir(JavascriptWorkdir):
|
|
23
|
+
def get_package_import_name(self) -> str:
|
|
24
|
+
"""Get the full package import name with vendor prefix."""
|
|
25
|
+
return (
|
|
26
|
+
f"@{self.get_vendor_name()}/{string_to_kebab_case(self.get_project_name())}"
|
|
27
|
+
)
|
|
28
|
+
|
|
22
29
|
def _get_readme_content(self) -> ReadmeContentConfigValue | None:
|
|
23
30
|
from wexample_wex_addon_dev_javascript.config_value.javascript_package_readme_config_value import (
|
|
24
31
|
JavascriptPackageReadmeContentConfigValue,
|
|
@@ -33,12 +40,6 @@ class JavascriptPackageWorkdir(JavascriptWorkdir):
|
|
|
33
40
|
|
|
34
41
|
return JavascriptPackagesSuiteWorkdir
|
|
35
42
|
|
|
36
|
-
def get_package_import_name(self) -> str:
|
|
37
|
-
"""Get the full package import name with vendor prefix."""
|
|
38
|
-
return (
|
|
39
|
-
f"@{self.get_vendor_name()}/{string_to_kebab_case(self.get_project_name())}"
|
|
40
|
-
)
|
|
41
|
-
|
|
42
43
|
def _publish(self, force: bool = False) -> None:
|
|
43
44
|
"""Publish the package to npm, skipping if the version already exists."""
|
|
44
45
|
from wexample_helpers.helpers.shell import shell_run
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
from typing import TYPE_CHECKING
|
|
4
|
-
|
|
5
|
-
from wexample_filestate.item.file.json_file import JsonFile
|
|
6
|
-
from wexample_helpers.decorator.base_class import base_class
|
|
7
|
-
|
|
8
|
-
if TYPE_CHECKING:
|
|
9
|
-
from wexample_wex_addon_app.workdir.code_base_workdir import CodeBaseWorkdir
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
@base_class
|
|
13
|
-
class JavascriptPackageJsonFile(JsonFile):
|
|
14
|
-
def get_dependencies_versions(
|
|
15
|
-
self, optional: bool = False, group: str = "dev"
|
|
16
|
-
) -> dict[str, str]:
|
|
17
|
-
return (
|
|
18
|
-
self.read_config()
|
|
19
|
-
.search(path="dependencies")
|
|
20
|
-
.get_dict_or_default(default={})
|
|
21
|
-
)
|
|
22
|
-
|
|
23
|
-
def dumps(self, content: dict | None = None) -> str:
|
|
24
|
-
import json
|
|
25
|
-
|
|
26
|
-
content = content or self.read_parsed()
|
|
27
|
-
|
|
28
|
-
package = self.find_package_workdir()
|
|
29
|
-
if package:
|
|
30
|
-
if not content.get("name"):
|
|
31
|
-
content["name"] = package.get_package_import_name()
|
|
32
|
-
|
|
33
|
-
content["version"] = package.get_project_version()
|
|
34
|
-
|
|
35
|
-
if not content.get("type"):
|
|
36
|
-
content["type"] = "module"
|
|
37
|
-
|
|
38
|
-
return json.dumps(content or {}, ensure_ascii=False, indent=2)
|
|
39
|
-
|
|
40
|
-
def find_package_workdir(self) -> CodeBaseWorkdir | None:
|
|
41
|
-
from wexample_wex_addon_app.workdir.code_base_workdir import CodeBaseWorkdir
|
|
42
|
-
|
|
43
|
-
return self.find_closest(CodeBaseWorkdir)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|