wexample-wex-addon-dev-php 0.0.18__tar.gz → 0.0.19__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 (17) hide show
  1. {wexample_wex_addon_dev_php-0.0.18 → wexample_wex_addon_dev_php-0.0.19}/PKG-INFO +9 -9
  2. {wexample_wex_addon_dev_php-0.0.18 → wexample_wex_addon_dev_php-0.0.19}/README.md +5 -5
  3. {wexample_wex_addon_dev_php-0.0.18 → wexample_wex_addon_dev_php-0.0.19}/pyproject.toml +4 -4
  4. {wexample_wex_addon_dev_php-0.0.18 → wexample_wex_addon_dev_php-0.0.19}/src/wexample_wex_addon_dev_php/file/php_composer_json_file.py +9 -24
  5. {wexample_wex_addon_dev_php-0.0.18 → wexample_wex_addon_dev_php-0.0.19}/src/wexample_wex_addon_dev_php/workdir/php_package_workdir.py +3 -3
  6. {wexample_wex_addon_dev_php-0.0.18 → wexample_wex_addon_dev_php-0.0.19}/src/wexample_wex_addon_dev_php/__init__.py +0 -0
  7. {wexample_wex_addon_dev_php-0.0.18 → wexample_wex_addon_dev_php-0.0.19}/src/wexample_wex_addon_dev_php/__pycache__/__init__.py +0 -0
  8. {wexample_wex_addon_dev_php-0.0.18 → wexample_wex_addon_dev_php-0.0.19}/src/wexample_wex_addon_dev_php/config_value/__init__.py +0 -0
  9. {wexample_wex_addon_dev_php-0.0.18 → wexample_wex_addon_dev_php-0.0.19}/src/wexample_wex_addon_dev_php/config_value/php_package_readme_config_value.py +0 -0
  10. {wexample_wex_addon_dev_php-0.0.18 → wexample_wex_addon_dev_php-0.0.19}/src/wexample_wex_addon_dev_php/file/__init__.py +0 -0
  11. {wexample_wex_addon_dev_php-0.0.18 → wexample_wex_addon_dev_php-0.0.19}/src/wexample_wex_addon_dev_php/php_addon_manager.py +0 -0
  12. {wexample_wex_addon_dev_php-0.0.18 → wexample_wex_addon_dev_php-0.0.19}/src/wexample_wex_addon_dev_php/py.typed +0 -0
  13. {wexample_wex_addon_dev_php-0.0.18 → wexample_wex_addon_dev_php-0.0.19}/src/wexample_wex_addon_dev_php/workdir/__init__.py +0 -0
  14. {wexample_wex_addon_dev_php-0.0.18 → wexample_wex_addon_dev_php-0.0.19}/src/wexample_wex_addon_dev_php/workdir/php_laravel_workdir.py +0 -0
  15. {wexample_wex_addon_dev_php-0.0.18 → wexample_wex_addon_dev_php-0.0.19}/src/wexample_wex_addon_dev_php/workdir/php_packages_suite_workdir.py +0 -0
  16. {wexample_wex_addon_dev_php-0.0.18 → wexample_wex_addon_dev_php-0.0.19}/src/wexample_wex_addon_dev_php/workdir/php_symfony_workdir.py +0 -0
  17. {wexample_wex_addon_dev_php-0.0.18 → wexample_wex_addon_dev_php-0.0.19}/src/wexample_wex_addon_dev_php/workdir/php_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.18
3
+ Version: 0.0.19
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-php==0.0.13
15
- Requires-Dist: wexample-wex-addon-app==0.0.54
16
- Requires-Dist: wexample-wex-core==6.0.66
14
+ Requires-Dist: wexample-filestate-php==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-php
23
23
 
24
- Version: 0.0.18
24
+ Version: 0.0.19
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 **Wexample Suite** — a collection of high-quality Python packages designed to work seamlessly together.
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-php: ==0.0.13
233
- - wexample-wex-addon-app: ==0.0.54
234
- - wexample-wex-core: ==6.0.66
232
+ - wexample-filestate-php: ==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
@@ -1,6 +1,6 @@
1
1
  # wexample-wex-addon-dev-php
2
2
 
3
- Version: 0.0.18
3
+ Version: 0.0.19
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 **Wexample Suite** — a collection of high-quality Python packages designed to work seamlessly together.
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-php: ==0.0.13
212
- - wexample-wex-addon-app: ==0.0.54
213
- - wexample-wex-core: ==6.0.66
211
+ - wexample-filestate-php: ==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
@@ -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.18"
9
+ version = "0.0.19"
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-php==0.0.13",
24
- "wexample-wex-addon-app==0.0.54",
25
- "wexample-wex-core==6.0.66",
23
+ "wexample-filestate-php==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]
@@ -1,23 +1,18 @@
1
1
  from __future__ import annotations
2
2
 
3
- from typing import TYPE_CHECKING
4
-
5
3
  from wexample_filestate.item.file.json_file import JsonFile
6
4
  from wexample_helpers.decorator.base_class import base_class
7
5
 
8
- if TYPE_CHECKING:
9
- from wexample_wex_addon_app.workdir.code_base_workdir import CodeBaseWorkdir
10
-
11
6
 
12
7
  @base_class
13
8
  class PhpComposerJsonFile(JsonFile):
14
9
  def add_dependency(
15
- self,
16
- package_name: str,
17
- version: str,
18
- operator: str = "",
19
- optional: bool = False,
20
- group: None | str = None,
10
+ self,
11
+ package_name: str,
12
+ version: str,
13
+ operator: str = "",
14
+ optional: bool = False,
15
+ group: None | str = None,
21
16
  ) -> bool:
22
17
  """
23
18
  Add or update a Composer dependency.
@@ -54,7 +49,7 @@ class PhpComposerJsonFile(JsonFile):
54
49
  return True
55
50
 
56
51
  def get_dependencies_versions(
57
- self, optional: bool = False, group: str = "dev"
52
+ self, optional: bool = False, group: str = "dev"
58
53
  ) -> dict[str, str]:
59
54
  # Default values is not well managed in nested config value, for now.
60
55
  require = self.read_config().search(path="require")
@@ -65,17 +60,7 @@ class PhpComposerJsonFile(JsonFile):
65
60
  return require.to_dict()
66
61
 
67
62
  def dumps(self, content: dict | None = None) -> str:
68
- import json
69
-
70
63
  content = content or self.read_parsed()
64
+ content["version"] = self.get_parent_item().get_project_version()
71
65
 
72
- package = self.find_package_workdir()
73
- if package:
74
- content["version"] = package.get_project_version()
75
-
76
- return json.dumps(content or {}, ensure_ascii=False, indent=2)
77
-
78
- def find_package_workdir(self) -> CodeBaseWorkdir | None:
79
- from wexample_wex_addon_app.workdir.code_base_workdir import CodeBaseWorkdir
80
-
81
- return self.find_closest(CodeBaseWorkdir)
66
+ return super().dumps(content or {})
@@ -39,8 +39,8 @@ class PhpPackageWorkdir(PhpWorkdir):
39
39
  return f"{string_to_pascal_case(self.get_vendor_name())}\\{string_to_pascal_case(self.get_project_name())}"
40
40
 
41
41
  def search_imports_in_codebase(
42
- self, searched_package: "PhpPackageWorkdir"
43
- ) -> list["SearchResult"]:
42
+ self, searched_package: PhpPackageWorkdir
43
+ ) -> list[SearchResult]:
44
44
  """Find PHP `use`/qualified references to the given package."""
45
45
  import re
46
46
 
@@ -50,7 +50,7 @@ class PhpPackageWorkdir(PhpWorkdir):
50
50
 
51
51
  def search_in_codebase(
52
52
  self, string: str, *, regex: bool = False, flags: int = 0
53
- ) -> list["SearchResult"]:
53
+ ) -> list[SearchResult]:
54
54
  from wexample_filestate.utils.search_result import SearchResult
55
55
  from wexample_filestate_php.file.php_file import PhpFile
56
56