wexample-wex-addon-dev-javascript 0.0.41__tar.gz → 0.0.44__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wexample-wex-addon-dev-javascript
3
- Version: 0.0.41
3
+ Version: 0.0.44
4
4
  Summary: Python dev addon for wex
5
5
  Author-Email: weeger <contact@wexample.com>
6
6
  License: MIT
@@ -9,8 +9,9 @@ Classifier: License :: OSI Approved :: MIT License
9
9
  Classifier: Operating System :: OS Independent
10
10
  Project-URL: homepage, https://github.com/wexample/python-wex-dev-python
11
11
  Requires-Python: >=3.10
12
- Requires-Dist: pydantic<3,>=2
13
- Requires-Dist: wexample-wex-core==6.0.44
12
+ Requires-Dist: attrs>=23.1.0
13
+ Requires-Dist: cattrs>=23.1.0
14
+ Requires-Dist: wexample-wex-core==6.0.47
14
15
  Provides-Extra: dev
15
16
  Requires-Dist: pytest; extra == "dev"
16
17
  Description-Content-Type: text/markdown
@@ -19,7 +20,7 @@ Description-Content-Type: text/markdown
19
20
 
20
21
  Python dev addon for wex
21
22
 
22
- Version: 0.0.41
23
+ Version: 0.0.43
23
24
 
24
25
  ## Requirements
25
26
 
@@ -27,8 +28,9 @@ Version: 0.0.41
27
28
 
28
29
  ## Dependencies
29
30
 
30
- - pydantic>=2,<3
31
- - wexample-wex-core==6.0.44
31
+ - attrs>=23.1.0
32
+ - cattrs>=23.1.0
33
+ - wexample-wex-core==6.0.46
32
34
 
33
35
  ## Installation
34
36
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Python dev addon for wex
4
4
 
5
- Version: 0.0.41
5
+ Version: 0.0.43
6
6
 
7
7
  ## Requirements
8
8
 
@@ -10,8 +10,9 @@ Version: 0.0.41
10
10
 
11
11
  ## Dependencies
12
12
 
13
- - pydantic>=2,<3
14
- - wexample-wex-core==6.0.44
13
+ - attrs>=23.1.0
14
+ - cattrs>=23.1.0
15
+ - wexample-wex-core==6.0.46
15
16
 
16
17
  ## Installation
17
18
 
@@ -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.41"
9
+ version = "0.0.44"
10
10
  description = "Python dev addon for wex"
11
11
  authors = [
12
12
  { name = "weeger", email = "contact@wexample.com" },
@@ -18,8 +18,9 @@ classifiers = [
18
18
  "Operating System :: OS Independent",
19
19
  ]
20
20
  dependencies = [
21
- "pydantic>=2,<3",
22
- "wexample-wex-core==6.0.44",
21
+ "attrs>=23.1.0",
22
+ "cattrs>=23.1.0",
23
+ "wexample-wex-core==6.0.47",
23
24
  ]
24
25
 
25
26
  [project.readme]
@@ -41,9 +42,6 @@ dev = [
41
42
  distribution = true
42
43
 
43
44
  [tool.pdm.build]
44
- includes = [
45
- "src/wexample_wex_addon_dev_javascript/py.typed",
46
- ]
47
45
  package-dir = "src"
48
46
  packages = [
49
47
  { include = "wexample_wex_addon_dev_javascript", from = "src" },
@@ -0,0 +1,7 @@
1
+ from __future__ import annotations
2
+
3
+ from wexample_wex_core.common.abstract_addon_manager import AbstractAddonManager
4
+
5
+
6
+ class JavascriptAddonManager(AbstractAddonManager):
7
+ pass
@@ -0,0 +1,17 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from wexample_wex_addon_dev_javascript.workdir.javascript_workdir import (
6
+ JavascriptWorkdir,
7
+ )
8
+
9
+ if TYPE_CHECKING:
10
+ from wexample_config.const.types import DictConfig
11
+
12
+
13
+ class JavascriptPackageWorkdir(JavascriptWorkdir):
14
+ def prepare_value(self, raw_value: DictConfig | None = None) -> DictConfig:
15
+ raw_value = super().prepare_value(raw_value=raw_value)
16
+
17
+ return raw_value
@@ -0,0 +1,27 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from wexample_wex_core.workdir.framework_packages_suite_workdir import (
6
+ FrameworkPackageSuiteWorkdir,
7
+ )
8
+
9
+ if TYPE_CHECKING:
10
+ from pathlib import Path
11
+
12
+ from wexample_wex_core.workdir.code_base_workdir import CodeBaseWorkdir
13
+
14
+
15
+ class JavascriptPackagesSuiteWorkdir(FrameworkPackageSuiteWorkdir):
16
+ def _child_is_package_directory(self, entry: Path) -> bool:
17
+ return entry.is_dir() and (entry / "package.json").is_file()
18
+
19
+ def _get_children_package_directory_name(self) -> str:
20
+ return "npm"
21
+
22
+ def _get_children_package_workdir_class(self) -> type[CodeBaseWorkdir]:
23
+ from wexample_wex_addon_dev_javascript.workdir.javascript_package_workdir import (
24
+ JavascriptPackageWorkdir,
25
+ )
26
+
27
+ return JavascriptPackageWorkdir
@@ -0,0 +1,9 @@
1
+ from __future__ import annotations
2
+
3
+ from wexample_wex_core.workdir.code_base_workdir import CodeBaseWorkdir
4
+
5
+
6
+ class JavascriptWorkdir(CodeBaseWorkdir):
7
+ def get_dependencies(self) -> list[str]:
8
+ # TODO search in package.json
9
+ return []