wexample-wex-addon-dev-php 0.0.2__tar.gz → 0.0.4__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.
Files changed (13) hide show
  1. {wexample_wex_addon_dev_php-0.0.2 → wexample_wex_addon_dev_php-0.0.4}/PKG-INFO +8 -6
  2. {wexample_wex_addon_dev_php-0.0.2 → wexample_wex_addon_dev_php-0.0.4}/README.md +4 -3
  3. {wexample_wex_addon_dev_php-0.0.2 → wexample_wex_addon_dev_php-0.0.4}/pyproject.toml +4 -6
  4. {wexample_wex_addon_dev_php-0.0.2 → wexample_wex_addon_dev_php-0.0.4}/src/wexample_wex_addon_dev_php/workdir/php_laravel_workdir.py +5 -1
  5. {wexample_wex_addon_dev_php-0.0.2 → wexample_wex_addon_dev_php-0.0.4}/src/wexample_wex_addon_dev_php/workdir/php_workdir.py +19 -14
  6. {wexample_wex_addon_dev_php-0.0.2 → wexample_wex_addon_dev_php-0.0.4}/src/wexample_wex_addon_dev_php/__init__.py +0 -0
  7. {wexample_wex_addon_dev_php-0.0.2 → wexample_wex_addon_dev_php-0.0.4}/src/wexample_wex_addon_dev_php/file/__init__.py +0 -0
  8. {wexample_wex_addon_dev_php-0.0.2 → wexample_wex_addon_dev_php-0.0.4}/src/wexample_wex_addon_dev_php/php_addon_manager.py +0 -0
  9. {wexample_wex_addon_dev_php-0.0.2 → wexample_wex_addon_dev_php-0.0.4}/src/wexample_wex_addon_dev_php/py.typed +0 -0
  10. {wexample_wex_addon_dev_php-0.0.2 → wexample_wex_addon_dev_php-0.0.4}/src/wexample_wex_addon_dev_php/workdir/__init__.py +0 -0
  11. {wexample_wex_addon_dev_php-0.0.2 → wexample_wex_addon_dev_php-0.0.4}/src/wexample_wex_addon_dev_php/workdir/php_package_workdir.py +0 -0
  12. {wexample_wex_addon_dev_php-0.0.2 → wexample_wex_addon_dev_php-0.0.4}/src/wexample_wex_addon_dev_php/workdir/php_packages_suite_workdir.py +6 -6
  13. {wexample_wex_addon_dev_php-0.0.2 → wexample_wex_addon_dev_php-0.0.4}/src/wexample_wex_addon_dev_php/workdir/php_symfony_workdir.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wexample-wex-addon-dev-php
3
- Version: 0.0.2
3
+ Version: 0.0.4
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.45
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
  Requires-Dist: wexample-filestate-php==0.0.1; extra == "dev"
@@ -20,7 +21,7 @@ Description-Content-Type: text/markdown
20
21
 
21
22
  Python dev addon for wex
22
23
 
23
- Version: 0.0.2
24
+ Version: 0.0.3
24
25
 
25
26
  ## Requirements
26
27
 
@@ -28,8 +29,9 @@ Version: 0.0.2
28
29
 
29
30
  ## Dependencies
30
31
 
31
- - pydantic>=2,<3
32
- - wexample-wex-core==6.0.45
32
+ - attrs>=23.1.0
33
+ - cattrs>=23.1.0
34
+ - wexample-wex-core==6.0.46
33
35
 
34
36
  ## Installation
35
37
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Python dev addon for wex
4
4
 
5
- Version: 0.0.2
5
+ Version: 0.0.3
6
6
 
7
7
  ## Requirements
8
8
 
@@ -10,8 +10,9 @@ Version: 0.0.2
10
10
 
11
11
  ## Dependencies
12
12
 
13
- - pydantic>=2,<3
14
- - wexample-wex-core==6.0.45
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-php"
9
- version = "0.0.2"
9
+ version = "0.0.4"
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.45",
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]
@@ -42,9 +43,6 @@ dev = [
42
43
  distribution = true
43
44
 
44
45
  [tool.pdm.build]
45
- includes = [
46
- "src/wexample_wex_addon_dev_php/*",
47
- ]
48
46
  package-dir = "src"
49
47
  packages = [
50
48
  { include = "wexample_wex_addon_dev_php", from = "src" },
@@ -1,8 +1,12 @@
1
1
  from __future__ import annotations
2
2
 
3
- from wexample_config.const.types import DictConfig
3
+ from typing import TYPE_CHECKING
4
+
4
5
  from wexample_wex_addon_dev_php.workdir.php_workdir import PhpWorkdir
5
6
 
7
+ if TYPE_CHECKING:
8
+ from wexample_config.const.types import DictConfig
9
+
6
10
 
7
11
  class PhpLaravelWorkdir(PhpWorkdir):
8
12
  def prepare_value(self, raw_value: DictConfig | None = None) -> DictConfig:
@@ -1,18 +1,27 @@
1
1
  from __future__ import annotations
2
2
 
3
- from wexample_config.const.types import DictConfig
4
- from wexample_filestate.config_option.children_file_factory_config_option import (
5
- ChildrenFileFactoryConfigOption,
6
- )
7
- from wexample_filestate.const.disk import DiskItemType
3
+ from typing import TYPE_CHECKING
4
+
8
5
  from wexample_wex_core.workdir.code_base_workdir import CodeBaseWorkdir
9
6
 
7
+ if TYPE_CHECKING:
8
+ from wexample_config.const.types import DictConfig
9
+ from wexample_filestate.option.children_file_factory_option import (
10
+ ChildrenFileFactoryOption,
11
+ )
12
+
10
13
 
11
14
  class PhpWorkdir(CodeBaseWorkdir):
15
+ def get_dependencies(self) -> list[str]:
16
+ # TODO search in composer.json
17
+ return []
18
+
12
19
  def prepare_value(self, raw_value: DictConfig | None = None) -> DictConfig:
13
- raw_value = super().prepare_value(raw_value=raw_value)
20
+ from wexample_filestate.const.disk import DiskItemType
14
21
  from wexample_helpers.helpers.array import array_dict_get_by
15
22
 
23
+ raw_value = super().prepare_value(raw_value=raw_value)
24
+
16
25
  # Ensure a composer.json file exists for any PHP package project
17
26
  children = raw_value["children"]
18
27
 
@@ -37,18 +46,14 @@ class PhpWorkdir(CodeBaseWorkdir):
37
46
 
38
47
  return raw_value
39
48
 
40
- def get_dependencies(self) -> list[str]:
41
- # TODO search in composer.json
42
- return []
43
-
44
- def _create_php_file_children_filter(self) -> ChildrenFileFactoryConfigOption:
45
- from wexample_filestate.config_option.children_filter_config_option import (
46
- ChildrenFilterConfigOption,
49
+ def _create_php_file_children_filter(self) -> ChildrenFileFactoryOption:
50
+ from wexample_filestate.option.children_filter_option import (
51
+ ChildrenFilterOption,
47
52
  )
48
53
  from wexample_filestate.const.disk import DiskItemType
49
54
  from wexample_filestate_php.file.php_file import PhpFile
50
55
 
51
- return ChildrenFilterConfigOption(
56
+ return ChildrenFilterOption(
52
57
  pattern={
53
58
  "class": PhpFile,
54
59
  "name_pattern": r"^.*\.php$",
@@ -13,15 +13,15 @@ if TYPE_CHECKING:
13
13
 
14
14
 
15
15
  class PhpPackagesSuiteWorkdir(FrameworkPackageSuiteWorkdir):
16
+ def _child_is_package_directory(self, entry: Path) -> bool:
17
+ return entry.is_dir() and (entry / "composer.json").is_file()
18
+
19
+ def _get_children_package_directory_name(self) -> str:
20
+ return "composer"
21
+
16
22
  def _get_children_package_workdir_class(self) -> type[CodeBaseWorkdir]:
17
23
  from wexample_wex_addon_dev_php.workdir.php_package_workdir import (
18
24
  PhpPackageWorkdir,
19
25
  )
20
26
 
21
27
  return PhpPackageWorkdir
22
-
23
- def _get_children_package_directory_name(self) -> str:
24
- return "composer"
25
-
26
- def _child_is_package_directory(self, entry: Path) -> bool:
27
- return entry.is_dir() and (entry / "composer.json").is_file()