wexample-wex-addon-dev-php 0.0.19__tar.gz → 0.0.20__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_php-0.0.20/PKG-INFO +108 -0
- wexample_wex_addon_dev_php-0.0.20/README.md +87 -0
- {wexample_wex_addon_dev_php-0.0.19 → wexample_wex_addon_dev_php-0.0.20}/pyproject.toml +4 -4
- {wexample_wex_addon_dev_php-0.0.19 → wexample_wex_addon_dev_php-0.0.20}/src/wexample_wex_addon_dev_php/file/php_composer_json_file.py +26 -16
- {wexample_wex_addon_dev_php-0.0.19 → wexample_wex_addon_dev_php-0.0.20}/src/wexample_wex_addon_dev_php/workdir/php_package_workdir.py +18 -24
- {wexample_wex_addon_dev_php-0.0.19 → wexample_wex_addon_dev_php-0.0.20}/src/wexample_wex_addon_dev_php/workdir/php_workdir.py +5 -0
- wexample_wex_addon_dev_php-0.0.20/src/wexample_wex_addon_dev_php/workdir/symfony_workdir.py +33 -0
- wexample_wex_addon_dev_php-0.0.19/PKG-INFO +0 -244
- wexample_wex_addon_dev_php-0.0.19/README.md +0 -223
- wexample_wex_addon_dev_php-0.0.19/src/wexample_wex_addon_dev_php/workdir/php_laravel_workdir.py +0 -32
- {wexample_wex_addon_dev_php-0.0.19 → wexample_wex_addon_dev_php-0.0.20}/src/wexample_wex_addon_dev_php/__init__.py +0 -0
- {wexample_wex_addon_dev_php-0.0.19 → wexample_wex_addon_dev_php-0.0.20}/src/wexample_wex_addon_dev_php/__pycache__/__init__.py +0 -0
- {wexample_wex_addon_dev_php-0.0.19 → wexample_wex_addon_dev_php-0.0.20}/src/wexample_wex_addon_dev_php/config_value/__init__.py +0 -0
- {wexample_wex_addon_dev_php-0.0.19 → wexample_wex_addon_dev_php-0.0.20}/src/wexample_wex_addon_dev_php/config_value/php_package_readme_config_value.py +0 -0
- {wexample_wex_addon_dev_php-0.0.19 → wexample_wex_addon_dev_php-0.0.20}/src/wexample_wex_addon_dev_php/file/__init__.py +0 -0
- {wexample_wex_addon_dev_php-0.0.19 → wexample_wex_addon_dev_php-0.0.20}/src/wexample_wex_addon_dev_php/php_addon_manager.py +0 -0
- {wexample_wex_addon_dev_php-0.0.19 → wexample_wex_addon_dev_php-0.0.20}/src/wexample_wex_addon_dev_php/py.typed +0 -0
- {wexample_wex_addon_dev_php-0.0.19 → wexample_wex_addon_dev_php-0.0.20}/src/wexample_wex_addon_dev_php/workdir/__init__.py +0 -0
- {wexample_wex_addon_dev_php-0.0.19 → wexample_wex_addon_dev_php-0.0.20}/src/wexample_wex_addon_dev_php/workdir/php_packages_suite_workdir.py +0 -0
- {wexample_wex_addon_dev_php-0.0.19 → wexample_wex_addon_dev_php-0.0.20}/src/wexample_wex_addon_dev_php/workdir/php_symfony_workdir.py +0 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: wexample-wex-addon-dev-php
|
|
3
|
+
Version: 0.0.20
|
|
4
|
+
Summary: Python dev addon for wex
|
|
5
|
+
Author-Email: weeger <contact@wexample.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Project-URL: homepage, https://github.com/wexample/python-wex-dev-python
|
|
11
|
+
Requires-Python: >=3.10
|
|
12
|
+
Requires-Dist: attrs>=23.1.0
|
|
13
|
+
Requires-Dist: cattrs>=23.1.0
|
|
14
|
+
Requires-Dist: wexample-filestate-php==0.0.15
|
|
15
|
+
Requires-Dist: wexample-wex-addon-app==0.0.56
|
|
16
|
+
Requires-Dist: wexample-wex-addon-dev-javascript==0.0.58
|
|
17
|
+
Provides-Extra: dev
|
|
18
|
+
Requires-Dist: pytest; extra == "dev"
|
|
19
|
+
Requires-Dist: pytest-cov; extra == "dev"
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
|
|
22
|
+
# wexample-wex-addon-dev-php
|
|
23
|
+
|
|
24
|
+
Version: 0.0.20
|
|
25
|
+
|
|
26
|
+
Python dev addon for wex
|
|
27
|
+
|
|
28
|
+
## Table of Contents
|
|
29
|
+
|
|
30
|
+
- [Status Compatibility](#status-compatibility)
|
|
31
|
+
- [Tests](#tests)
|
|
32
|
+
- [Roadmap](#roadmap)
|
|
33
|
+
- [Useful Links](#useful-links)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## Status & Compatibility
|
|
37
|
+
|
|
38
|
+
**Maturity**: Production-ready
|
|
39
|
+
|
|
40
|
+
**Python Support**: >=3.10
|
|
41
|
+
|
|
42
|
+
**OS Support**: Linux, macOS, Windows
|
|
43
|
+
|
|
44
|
+
**Status**: Actively maintained
|
|
45
|
+
|
|
46
|
+
## Tests
|
|
47
|
+
|
|
48
|
+
This project uses `pytest` for testing and `pytest-cov` for code coverage analysis.
|
|
49
|
+
|
|
50
|
+
### Installation
|
|
51
|
+
|
|
52
|
+
First, install the required testing dependencies:
|
|
53
|
+
```bash
|
|
54
|
+
.venv/bin/python -m pip install pytest pytest-cov
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Basic Usage
|
|
58
|
+
|
|
59
|
+
Run all tests with coverage:
|
|
60
|
+
```bash
|
|
61
|
+
.venv/bin/python -m pytest --cov --cov-report=html
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Common Commands
|
|
65
|
+
```bash
|
|
66
|
+
# Run tests with coverage for a specific module
|
|
67
|
+
.venv/bin/python -m pytest --cov=your_module
|
|
68
|
+
|
|
69
|
+
# Show which lines are not covered
|
|
70
|
+
.venv/bin/python -m pytest --cov=your_module --cov-report=term-missing
|
|
71
|
+
|
|
72
|
+
# Generate an HTML coverage report
|
|
73
|
+
.venv/bin/python -m pytest --cov=your_module --cov-report=html
|
|
74
|
+
|
|
75
|
+
# Combine terminal and HTML reports
|
|
76
|
+
.venv/bin/python -m pytest --cov=your_module --cov-report=term-missing --cov-report=html
|
|
77
|
+
|
|
78
|
+
# Run specific test file with coverage
|
|
79
|
+
.venv/bin/python -m pytest tests/test_file.py --cov=your_module --cov-report=term-missing
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Viewing HTML Reports
|
|
83
|
+
|
|
84
|
+
After generating an HTML report, open `htmlcov/index.html` in your browser to view detailed line-by-line coverage information.
|
|
85
|
+
|
|
86
|
+
### Coverage Threshold
|
|
87
|
+
|
|
88
|
+
To enforce a minimum coverage percentage:
|
|
89
|
+
```bash
|
|
90
|
+
.venv/bin/python -m pytest --cov=your_module --cov-fail-under=80
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
This will cause the test suite to fail if coverage drops below 80%.
|
|
94
|
+
|
|
95
|
+
## Known Limitations & Roadmap
|
|
96
|
+
|
|
97
|
+
Current limitations and planned features are tracked in the GitHub issues.
|
|
98
|
+
|
|
99
|
+
See the [project roadmap](https://github.com/wexample/python-wex_addon_dev_php/issues) for upcoming features and improvements.
|
|
100
|
+
|
|
101
|
+
## Useful Links
|
|
102
|
+
|
|
103
|
+
- **Homepage**: https://github.com/wexample/python-wex-addon-dev-php
|
|
104
|
+
- **Documentation**: [docs.wexample.com](https://docs.wexample.com)
|
|
105
|
+
- **Issue Tracker**: https://github.com/wexample/python-wex-addon-dev-php/issues
|
|
106
|
+
- **Discussions**: https://github.com/wexample/python-wex-addon-dev-php/discussions
|
|
107
|
+
- **PyPI**: [pypi.org/project/wexample-wex-addon-dev-php](https://pypi.org/project/wexample-wex-addon-dev-php/)
|
|
108
|
+
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# wexample-wex-addon-dev-php
|
|
2
|
+
|
|
3
|
+
Version: 0.0.20
|
|
4
|
+
|
|
5
|
+
Python dev addon for wex
|
|
6
|
+
|
|
7
|
+
## Table of Contents
|
|
8
|
+
|
|
9
|
+
- [Status Compatibility](#status-compatibility)
|
|
10
|
+
- [Tests](#tests)
|
|
11
|
+
- [Roadmap](#roadmap)
|
|
12
|
+
- [Useful Links](#useful-links)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## Status & Compatibility
|
|
16
|
+
|
|
17
|
+
**Maturity**: Production-ready
|
|
18
|
+
|
|
19
|
+
**Python Support**: >=3.10
|
|
20
|
+
|
|
21
|
+
**OS Support**: Linux, macOS, Windows
|
|
22
|
+
|
|
23
|
+
**Status**: Actively maintained
|
|
24
|
+
|
|
25
|
+
## Tests
|
|
26
|
+
|
|
27
|
+
This project uses `pytest` for testing and `pytest-cov` for code coverage analysis.
|
|
28
|
+
|
|
29
|
+
### Installation
|
|
30
|
+
|
|
31
|
+
First, install the required testing dependencies:
|
|
32
|
+
```bash
|
|
33
|
+
.venv/bin/python -m pip install pytest pytest-cov
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Basic Usage
|
|
37
|
+
|
|
38
|
+
Run all tests with coverage:
|
|
39
|
+
```bash
|
|
40
|
+
.venv/bin/python -m pytest --cov --cov-report=html
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Common Commands
|
|
44
|
+
```bash
|
|
45
|
+
# Run tests with coverage for a specific module
|
|
46
|
+
.venv/bin/python -m pytest --cov=your_module
|
|
47
|
+
|
|
48
|
+
# Show which lines are not covered
|
|
49
|
+
.venv/bin/python -m pytest --cov=your_module --cov-report=term-missing
|
|
50
|
+
|
|
51
|
+
# Generate an HTML coverage report
|
|
52
|
+
.venv/bin/python -m pytest --cov=your_module --cov-report=html
|
|
53
|
+
|
|
54
|
+
# Combine terminal and HTML reports
|
|
55
|
+
.venv/bin/python -m pytest --cov=your_module --cov-report=term-missing --cov-report=html
|
|
56
|
+
|
|
57
|
+
# Run specific test file with coverage
|
|
58
|
+
.venv/bin/python -m pytest tests/test_file.py --cov=your_module --cov-report=term-missing
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Viewing HTML Reports
|
|
62
|
+
|
|
63
|
+
After generating an HTML report, open `htmlcov/index.html` in your browser to view detailed line-by-line coverage information.
|
|
64
|
+
|
|
65
|
+
### Coverage Threshold
|
|
66
|
+
|
|
67
|
+
To enforce a minimum coverage percentage:
|
|
68
|
+
```bash
|
|
69
|
+
.venv/bin/python -m pytest --cov=your_module --cov-fail-under=80
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
This will cause the test suite to fail if coverage drops below 80%.
|
|
73
|
+
|
|
74
|
+
## Known Limitations & Roadmap
|
|
75
|
+
|
|
76
|
+
Current limitations and planned features are tracked in the GitHub issues.
|
|
77
|
+
|
|
78
|
+
See the [project roadmap](https://github.com/wexample/python-wex_addon_dev_php/issues) for upcoming features and improvements.
|
|
79
|
+
|
|
80
|
+
## Useful Links
|
|
81
|
+
|
|
82
|
+
- **Homepage**: https://github.com/wexample/python-wex-addon-dev-php
|
|
83
|
+
- **Documentation**: [docs.wexample.com](https://docs.wexample.com)
|
|
84
|
+
- **Issue Tracker**: https://github.com/wexample/python-wex-addon-dev-php/issues
|
|
85
|
+
- **Discussions**: https://github.com/wexample/python-wex-addon-dev-php/discussions
|
|
86
|
+
- **PyPI**: [pypi.org/project/wexample-wex-addon-dev-php](https://pypi.org/project/wexample-wex-addon-dev-php/)
|
|
87
|
+
|
|
@@ -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.
|
|
9
|
+
version = "0.0.20"
|
|
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.
|
|
24
|
-
"wexample-wex-addon-app==0.0.
|
|
25
|
-
"wexample-wex-
|
|
23
|
+
"wexample-filestate-php==0.0.15",
|
|
24
|
+
"wexample-wex-addon-app==0.0.56",
|
|
25
|
+
"wexample-wex-addon-dev-javascript==0.0.58",
|
|
26
26
|
]
|
|
27
27
|
|
|
28
28
|
[project.readme]
|
|
@@ -2,11 +2,22 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
from wexample_filestate.item.file.json_file import JsonFile
|
|
4
4
|
from wexample_helpers.decorator.base_class import base_class
|
|
5
|
+
from wexample_wex_addon_app.item.file.mixin.app_dependencies_config_file_mixin import (
|
|
6
|
+
AppDependenciesConfigFileMixin,
|
|
7
|
+
)
|
|
5
8
|
|
|
6
9
|
|
|
7
10
|
@base_class
|
|
8
|
-
class PhpComposerJsonFile(JsonFile):
|
|
11
|
+
class PhpComposerJsonFile(AppDependenciesConfigFileMixin, JsonFile):
|
|
9
12
|
def add_dependency(
|
|
13
|
+
self,
|
|
14
|
+
# In composer, no operator says ==
|
|
15
|
+
operator: str = "",
|
|
16
|
+
**kwargs,
|
|
17
|
+
) -> bool:
|
|
18
|
+
return super().add_dependency(operator=operator, **kwargs)
|
|
19
|
+
|
|
20
|
+
def add_dependency_from_string(
|
|
10
21
|
self,
|
|
11
22
|
package_name: str,
|
|
12
23
|
version: str,
|
|
@@ -15,14 +26,13 @@ class PhpComposerJsonFile(JsonFile):
|
|
|
15
26
|
group: None | str = None,
|
|
16
27
|
) -> bool:
|
|
17
28
|
"""
|
|
18
|
-
Add or update a Composer dependency.
|
|
29
|
+
Add or update a Composer dependency using raw package name + version.
|
|
19
30
|
Returns True if the dependency list changed.
|
|
20
31
|
"""
|
|
21
32
|
# Composer group
|
|
22
33
|
group_key = "require-dev" if group == "dev" else "require"
|
|
23
34
|
|
|
24
|
-
# Composer
|
|
25
|
-
# So operator is simply prepended if provided.
|
|
35
|
+
# Composer uses simple version constraints (no pip-style operators)
|
|
26
36
|
constraint = f"{operator}{version}".strip()
|
|
27
37
|
|
|
28
38
|
config = self.read_config()
|
|
@@ -33,21 +43,27 @@ class PhpComposerJsonFile(JsonFile):
|
|
|
33
43
|
|
|
34
44
|
old = deps.get(package_name)
|
|
35
45
|
|
|
36
|
-
#
|
|
46
|
+
# No change needed
|
|
37
47
|
if old == constraint:
|
|
38
48
|
return False
|
|
39
49
|
|
|
40
50
|
# Apply change
|
|
41
51
|
deps[package_name] = constraint
|
|
42
52
|
|
|
43
|
-
|
|
44
|
-
config_updated[group_key] = deps
|
|
45
|
-
config.update_nested(data=config_updated)
|
|
46
|
-
|
|
53
|
+
config.update_nested({group_key: deps})
|
|
47
54
|
self.write_config(config)
|
|
48
55
|
|
|
49
56
|
return True
|
|
50
57
|
|
|
58
|
+
def dumps(self, content: dict | None = None) -> str:
|
|
59
|
+
content = content or self.read_parsed()
|
|
60
|
+
|
|
61
|
+
workdir = self.get_parent_item()
|
|
62
|
+
content["name"] = workdir.get_package_name()
|
|
63
|
+
content["version"] = workdir.get_project_version()
|
|
64
|
+
|
|
65
|
+
return super().dumps(content or {})
|
|
66
|
+
|
|
51
67
|
def get_dependencies_versions(
|
|
52
68
|
self, optional: bool = False, group: str = "dev"
|
|
53
69
|
) -> dict[str, str]:
|
|
@@ -57,10 +73,4 @@ class PhpComposerJsonFile(JsonFile):
|
|
|
57
73
|
if not require:
|
|
58
74
|
return {}
|
|
59
75
|
|
|
60
|
-
return require.
|
|
61
|
-
|
|
62
|
-
def dumps(self, content: dict | None = None) -> str:
|
|
63
|
-
content = content or self.read_parsed()
|
|
64
|
-
content["version"] = self.get_parent_item().get_project_version()
|
|
65
|
-
|
|
66
|
-
return super().dumps(content or {})
|
|
76
|
+
return require.get_dict_or_default(default={})
|
|
@@ -4,12 +4,13 @@ from typing import TYPE_CHECKING
|
|
|
4
4
|
|
|
5
5
|
from wexample_helpers.helpers.string import string_to_pascal_case
|
|
6
6
|
from wexample_helpers_git.helpers.git import (
|
|
7
|
-
git_tag_exists,
|
|
8
7
|
git_tag_annotated,
|
|
8
|
+
git_tag_exists,
|
|
9
9
|
)
|
|
10
10
|
from wexample_wex_addon_app.workdir.framework_packages_suite_workdir import (
|
|
11
11
|
FrameworkPackageSuiteWorkdir,
|
|
12
12
|
)
|
|
13
|
+
|
|
13
14
|
from wexample_wex_addon_dev_php.workdir.php_workdir import PhpWorkdir
|
|
14
15
|
|
|
15
16
|
if TYPE_CHECKING:
|
|
@@ -20,20 +21,6 @@ if TYPE_CHECKING:
|
|
|
20
21
|
|
|
21
22
|
|
|
22
23
|
class PhpPackageWorkdir(PhpWorkdir):
|
|
23
|
-
def _get_readme_content(self) -> ReadmeContentConfigValue | None:
|
|
24
|
-
from wexample_wex_addon_dev_php.config_value.php_package_readme_config_value import (
|
|
25
|
-
PhpPackageReadmeContentConfigValue,
|
|
26
|
-
)
|
|
27
|
-
|
|
28
|
-
return PhpPackageReadmeContentConfigValue(workdir=self)
|
|
29
|
-
|
|
30
|
-
def _get_suite_package_workdir_class(self) -> type[FrameworkPackageSuiteWorkdir]:
|
|
31
|
-
from wexample_wex_addon_dev_php.workdir.php_packages_suite_workdir import (
|
|
32
|
-
PhpPackagesSuiteWorkdir,
|
|
33
|
-
)
|
|
34
|
-
|
|
35
|
-
return PhpPackagesSuiteWorkdir
|
|
36
|
-
|
|
37
24
|
def get_package_import_name(self) -> str:
|
|
38
25
|
"""Get the full package import name with vendor prefix."""
|
|
39
26
|
return f"{string_to_pascal_case(self.get_vendor_name())}\\{string_to_pascal_case(self.get_project_name())}"
|
|
@@ -67,22 +54,29 @@ class PhpPackageWorkdir(PhpWorkdir):
|
|
|
67
54
|
|
|
68
55
|
return found
|
|
69
56
|
|
|
57
|
+
def _get_readme_content(self) -> ReadmeContentConfigValue | None:
|
|
58
|
+
from wexample_wex_addon_dev_php.config_value.php_package_readme_config_value import (
|
|
59
|
+
PhpPackageReadmeContentConfigValue,
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
return PhpPackageReadmeContentConfigValue(workdir=self)
|
|
63
|
+
|
|
64
|
+
def _get_suite_package_workdir_class(self) -> type[FrameworkPackageSuiteWorkdir]:
|
|
65
|
+
from wexample_wex_addon_dev_php.workdir.php_packages_suite_workdir import (
|
|
66
|
+
PhpPackagesSuiteWorkdir,
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
return PhpPackagesSuiteWorkdir
|
|
70
|
+
|
|
70
71
|
def _publish(self, force: bool = False) -> None:
|
|
71
72
|
"""Add a Packagist-friendly tag (vX.Y.Z) in addition to default tagging."""
|
|
72
73
|
tag = f"v{self.get_project_version()}"
|
|
73
74
|
cwd = self.get_path()
|
|
74
75
|
|
|
75
|
-
if git_tag_exists(tag, cwd=cwd, inherit_stdio=False)
|
|
76
|
-
self.log(
|
|
77
|
-
f"Tag {tag} already exists, skipping creation (use --force to re-tag)."
|
|
78
|
-
)
|
|
76
|
+
if git_tag_exists(tag, cwd=cwd, inherit_stdio=False):
|
|
77
|
+
self.log(f"Tag {tag} already exists, skipping creation.")
|
|
79
78
|
else:
|
|
80
79
|
git_tag_annotated(tag, f"Release {tag}", cwd=cwd, inherit_stdio=True)
|
|
81
80
|
|
|
82
81
|
# Uses git repo to deploy packages.
|
|
83
82
|
self.push_to_deployment_remote()
|
|
84
|
-
|
|
85
|
-
def get_package_name(self) -> str:
|
|
86
|
-
from wexample_helpers.helpers.string import string_to_kebab_case
|
|
87
|
-
|
|
88
|
-
return f"{string_to_kebab_case(self.get_vendor_name())}/{string_to_kebab_case(self.get_project_name())}"
|
|
@@ -53,6 +53,11 @@ class PhpWorkdir(CodeBaseWorkdir):
|
|
|
53
53
|
|
|
54
54
|
return options
|
|
55
55
|
|
|
56
|
+
def get_package_name(self) -> str:
|
|
57
|
+
from wexample_helpers.helpers.string import string_to_kebab_case
|
|
58
|
+
|
|
59
|
+
return f"{string_to_kebab_case(self.get_vendor_name())}/{string_to_kebab_case(self.get_project_name())}"
|
|
60
|
+
|
|
56
61
|
def prepare_value(self, raw_value: DictConfig | None = None) -> DictConfig:
|
|
57
62
|
from wexample_filestate.const.disk import DiskItemType
|
|
58
63
|
from wexample_helpers.helpers.array import array_dict_get_by
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from wexample_filestate.result.file_state_result import FileStateResult
|
|
4
|
+
from wexample_wex_addon_dev_javascript.workdir.javascript_workdir import (
|
|
5
|
+
JavascriptWorkdir,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
from wexample_wex_addon_dev_php.workdir.php_workdir import PhpWorkdir
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class SymfonyWorkdir(PhpWorkdir):
|
|
12
|
+
def apply(
|
|
13
|
+
self,
|
|
14
|
+
**kwargs,
|
|
15
|
+
) -> FileStateResult:
|
|
16
|
+
result = super().apply(**kwargs)
|
|
17
|
+
|
|
18
|
+
workdir_javascript = JavascriptWorkdir.create_from_path(
|
|
19
|
+
path=self.get_path(), io=self.io
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
return workdir_javascript.apply(result=result, **kwargs)
|
|
23
|
+
|
|
24
|
+
def libraries_sync(self) -> None:
|
|
25
|
+
super().libraries_sync()
|
|
26
|
+
|
|
27
|
+
self.log("Syncing Javascript...")
|
|
28
|
+
|
|
29
|
+
workdir_javascript = JavascriptWorkdir.create_from_path(
|
|
30
|
+
path=self.get_path(), io=self.io
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
workdir_javascript.libraries_sync()
|
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: wexample-wex-addon-dev-php
|
|
3
|
-
Version: 0.0.19
|
|
4
|
-
Summary: Python dev addon for wex
|
|
5
|
-
Author-Email: weeger <contact@wexample.com>
|
|
6
|
-
License: MIT
|
|
7
|
-
Classifier: Programming Language :: Python :: 3
|
|
8
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
9
|
-
Classifier: Operating System :: OS Independent
|
|
10
|
-
Project-URL: homepage, https://github.com/wexample/python-wex-dev-python
|
|
11
|
-
Requires-Python: >=3.10
|
|
12
|
-
Requires-Dist: attrs>=23.1.0
|
|
13
|
-
Requires-Dist: cattrs>=23.1.0
|
|
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
|
-
Provides-Extra: dev
|
|
18
|
-
Requires-Dist: pytest; extra == "dev"
|
|
19
|
-
Requires-Dist: pytest-cov; extra == "dev"
|
|
20
|
-
Description-Content-Type: text/markdown
|
|
21
|
-
|
|
22
|
-
# wexample-wex-addon-dev-php
|
|
23
|
-
|
|
24
|
-
Version: 0.0.19
|
|
25
|
-
|
|
26
|
-
Python dev addon for wex
|
|
27
|
-
|
|
28
|
-
## Table of Contents
|
|
29
|
-
|
|
30
|
-
- [Status Compatibility](#status-compatibility)
|
|
31
|
-
- [Api Reference](#api-reference)
|
|
32
|
-
- [Tests](#tests)
|
|
33
|
-
- [Code Quality](#code-quality)
|
|
34
|
-
- [Versioning](#versioning)
|
|
35
|
-
- [Changelog](#changelog)
|
|
36
|
-
- [Migration Notes](#migration-notes)
|
|
37
|
-
- [Roadmap](#roadmap)
|
|
38
|
-
- [Security](#security)
|
|
39
|
-
- [Privacy](#privacy)
|
|
40
|
-
- [Support](#support)
|
|
41
|
-
- [Contribution Guidelines](#contribution-guidelines)
|
|
42
|
-
- [Maintainers](#maintainers)
|
|
43
|
-
- [License](#license)
|
|
44
|
-
- [Useful Links](#useful-links)
|
|
45
|
-
- [Suite Integration](#suite-integration)
|
|
46
|
-
- [Compatibility Matrix](#compatibility-matrix)
|
|
47
|
-
- [Dependencies](#dependencies)
|
|
48
|
-
- [Suite Signature](#suite-signature)
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
## Status & Compatibility
|
|
52
|
-
|
|
53
|
-
**Maturity**: Production-ready
|
|
54
|
-
|
|
55
|
-
**Python Support**: >=3.10
|
|
56
|
-
|
|
57
|
-
**OS Support**: Linux, macOS, Windows
|
|
58
|
-
|
|
59
|
-
**Status**: Actively maintained
|
|
60
|
-
|
|
61
|
-
## API Reference
|
|
62
|
-
|
|
63
|
-
Full API documentation is available in the source code docstrings.
|
|
64
|
-
|
|
65
|
-
Key modules and classes are documented with type hints for better IDE support.
|
|
66
|
-
|
|
67
|
-
## Tests
|
|
68
|
-
|
|
69
|
-
This project uses `pytest` for testing and `pytest-cov` for code coverage analysis.
|
|
70
|
-
|
|
71
|
-
### Installation
|
|
72
|
-
|
|
73
|
-
First, install the required testing dependencies:
|
|
74
|
-
```bash
|
|
75
|
-
.venv/bin/python -m pip install pytest pytest-cov
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
### Basic Usage
|
|
79
|
-
|
|
80
|
-
Run all tests with coverage:
|
|
81
|
-
```bash
|
|
82
|
-
.venv/bin/python -m pytest --cov --cov-report=html
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
### Common Commands
|
|
86
|
-
```bash
|
|
87
|
-
# Run tests with coverage for a specific module
|
|
88
|
-
.venv/bin/python -m pytest --cov=your_module
|
|
89
|
-
|
|
90
|
-
# Show which lines are not covered
|
|
91
|
-
.venv/bin/python -m pytest --cov=your_module --cov-report=term-missing
|
|
92
|
-
|
|
93
|
-
# Generate an HTML coverage report
|
|
94
|
-
.venv/bin/python -m pytest --cov=your_module --cov-report=html
|
|
95
|
-
|
|
96
|
-
# Combine terminal and HTML reports
|
|
97
|
-
.venv/bin/python -m pytest --cov=your_module --cov-report=term-missing --cov-report=html
|
|
98
|
-
|
|
99
|
-
# Run specific test file with coverage
|
|
100
|
-
.venv/bin/python -m pytest tests/test_file.py --cov=your_module --cov-report=term-missing
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
### Viewing HTML Reports
|
|
104
|
-
|
|
105
|
-
After generating an HTML report, open `htmlcov/index.html` in your browser to view detailed line-by-line coverage information.
|
|
106
|
-
|
|
107
|
-
### Coverage Threshold
|
|
108
|
-
|
|
109
|
-
To enforce a minimum coverage percentage:
|
|
110
|
-
```bash
|
|
111
|
-
.venv/bin/python -m pytest --cov=your_module --cov-fail-under=80
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
This will cause the test suite to fail if coverage drops below 80%.
|
|
115
|
-
|
|
116
|
-
## Code Quality & Typing
|
|
117
|
-
|
|
118
|
-
All the suite packages follow strict quality standards:
|
|
119
|
-
|
|
120
|
-
- **Type hints**: Full type coverage with mypy validation
|
|
121
|
-
- **Code formatting**: Enforced with black and isort
|
|
122
|
-
- **Linting**: Comprehensive checks with custom scripts and tools
|
|
123
|
-
- **Testing**: High test coverage requirements
|
|
124
|
-
|
|
125
|
-
These standards ensure reliability and maintainability across the suite.
|
|
126
|
-
|
|
127
|
-
## Versioning & Compatibility Policy
|
|
128
|
-
|
|
129
|
-
Wexample packages follow **Semantic Versioning** (SemVer):
|
|
130
|
-
|
|
131
|
-
- **MAJOR**: Breaking changes
|
|
132
|
-
- **MINOR**: New features, backward compatible
|
|
133
|
-
- **PATCH**: Bug fixes, backward compatible
|
|
134
|
-
|
|
135
|
-
We maintain backward compatibility within major versions and provide clear migration guides for breaking changes.
|
|
136
|
-
|
|
137
|
-
## Changelog
|
|
138
|
-
|
|
139
|
-
See [CHANGELOG.md](CHANGELOG.md) for detailed version history and release notes.
|
|
140
|
-
|
|
141
|
-
Major changes are documented with migration guides when applicable.
|
|
142
|
-
|
|
143
|
-
## Migration Notes
|
|
144
|
-
|
|
145
|
-
When upgrading between major versions, refer to the migration guides in the documentation.
|
|
146
|
-
|
|
147
|
-
Breaking changes are clearly documented with upgrade paths and examples.
|
|
148
|
-
|
|
149
|
-
## Known Limitations & Roadmap
|
|
150
|
-
|
|
151
|
-
Current limitations and planned features are tracked in the GitHub issues.
|
|
152
|
-
|
|
153
|
-
See the [project roadmap](https://github.com/wexample/python-wex_addon_dev_php/issues) for upcoming features and improvements.
|
|
154
|
-
|
|
155
|
-
## Security Policy
|
|
156
|
-
|
|
157
|
-
### Reporting Vulnerabilities
|
|
158
|
-
|
|
159
|
-
If you discover a security vulnerability, please email contact@wexample.com.
|
|
160
|
-
|
|
161
|
-
**Do not** open public issues for security vulnerabilities.
|
|
162
|
-
|
|
163
|
-
We take security seriously and will respond promptly to verified reports.
|
|
164
|
-
|
|
165
|
-
## Privacy & Telemetry
|
|
166
|
-
|
|
167
|
-
This package does **not** collect any telemetry or usage data.
|
|
168
|
-
|
|
169
|
-
Your privacy is respected — no data is transmitted to external services.
|
|
170
|
-
|
|
171
|
-
## Support Channels
|
|
172
|
-
|
|
173
|
-
- **GitHub Issues**: Bug reports and feature requests
|
|
174
|
-
- **GitHub Discussions**: Questions and community support
|
|
175
|
-
- **Documentation**: Comprehensive guides and API reference
|
|
176
|
-
- **Email**: contact@wexample.com for general inquiries
|
|
177
|
-
|
|
178
|
-
Community support is available through GitHub Discussions.
|
|
179
|
-
|
|
180
|
-
## Contribution Guidelines
|
|
181
|
-
|
|
182
|
-
We welcome contributions to the Wexample suite!
|
|
183
|
-
|
|
184
|
-
### How to Contribute
|
|
185
|
-
|
|
186
|
-
1. **Fork** the repository
|
|
187
|
-
2. **Create** a feature branch
|
|
188
|
-
3. **Make** your changes
|
|
189
|
-
4. **Test** thoroughly
|
|
190
|
-
5. **Submit** a pull request
|
|
191
|
-
|
|
192
|
-
## Maintainers & Authors
|
|
193
|
-
|
|
194
|
-
Maintained by the Wexample team and community contributors.
|
|
195
|
-
|
|
196
|
-
See [CONTRIBUTORS.md](CONTRIBUTORS.md) for the full list of contributors.
|
|
197
|
-
|
|
198
|
-
## License
|
|
199
|
-
|
|
200
|
-
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
201
|
-
|
|
202
|
-
Free to use in both personal and commercial projects.
|
|
203
|
-
|
|
204
|
-
## Useful Links
|
|
205
|
-
|
|
206
|
-
- **Homepage**: https://github.com/wexample/python-wex-addon-dev-php
|
|
207
|
-
- **Documentation**: [docs.wexample.com](https://docs.wexample.com)
|
|
208
|
-
- **Issue Tracker**: https://github.com/wexample/python-wex-addon-dev-php/issues
|
|
209
|
-
- **Discussions**: https://github.com/wexample/python-wex-addon-dev-php/discussions
|
|
210
|
-
- **PyPI**: [pypi.org/project/wexample-wex-addon-dev-php](https://pypi.org/project/wexample-wex-addon-dev-php/)
|
|
211
|
-
|
|
212
|
-
## Integration in the Suite
|
|
213
|
-
|
|
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
|
-
|
|
216
|
-
### Related Packages
|
|
217
|
-
|
|
218
|
-
The suite includes packages for configuration management, file handling, prompts, and more. Each package can be used independently or as part of the integrated suite.
|
|
219
|
-
|
|
220
|
-
Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
|
|
221
|
-
|
|
222
|
-
## Compatibility Matrix
|
|
223
|
-
|
|
224
|
-
This package is part of the Wexample suite and is compatible with other suite packages.
|
|
225
|
-
|
|
226
|
-
Refer to each package's documentation for specific version compatibility requirements.
|
|
227
|
-
|
|
228
|
-
## Dependencies
|
|
229
|
-
|
|
230
|
-
- attrs: >=23.1.0
|
|
231
|
-
- cattrs: >=23.1.0
|
|
232
|
-
- wexample-filestate-php: ==0.0.14
|
|
233
|
-
- wexample-wex-addon-app: ==0.0.55
|
|
234
|
-
- wexample-wex-core: ==6.0.67
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
# About us
|
|
238
|
-
|
|
239
|
-
[Wexample](https://wexample.com) stands as a cornerstone of the digital ecosystem — a collective of seasoned engineers, researchers, and creators driven by a relentless pursuit of technological excellence. More than a media platform, it has grown into a vibrant community where innovation meets craftsmanship, and where every line of code reflects a commitment to clarity, durability, and shared intelligence.
|
|
240
|
-
|
|
241
|
-
This packages suite embodies this spirit. Trusted by professionals and enthusiasts alike, it delivers a consistent, high-quality foundation for modern development — open, elegant, and battle-tested. Its reputation is built on years of collaboration, refinement, and rigorous attention to detail, making it a natural choice for those who demand both robustness and beauty in their tools.
|
|
242
|
-
|
|
243
|
-
Wexample cultivates a culture of mastery. Each package, each contribution carries the mark of a community that values precision, ethics, and innovation — a community proud to shape the future of digital craftsmanship.
|
|
244
|
-
|
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
# wexample-wex-addon-dev-php
|
|
2
|
-
|
|
3
|
-
Version: 0.0.19
|
|
4
|
-
|
|
5
|
-
Python dev addon for wex
|
|
6
|
-
|
|
7
|
-
## Table of Contents
|
|
8
|
-
|
|
9
|
-
- [Status Compatibility](#status-compatibility)
|
|
10
|
-
- [Api Reference](#api-reference)
|
|
11
|
-
- [Tests](#tests)
|
|
12
|
-
- [Code Quality](#code-quality)
|
|
13
|
-
- [Versioning](#versioning)
|
|
14
|
-
- [Changelog](#changelog)
|
|
15
|
-
- [Migration Notes](#migration-notes)
|
|
16
|
-
- [Roadmap](#roadmap)
|
|
17
|
-
- [Security](#security)
|
|
18
|
-
- [Privacy](#privacy)
|
|
19
|
-
- [Support](#support)
|
|
20
|
-
- [Contribution Guidelines](#contribution-guidelines)
|
|
21
|
-
- [Maintainers](#maintainers)
|
|
22
|
-
- [License](#license)
|
|
23
|
-
- [Useful Links](#useful-links)
|
|
24
|
-
- [Suite Integration](#suite-integration)
|
|
25
|
-
- [Compatibility Matrix](#compatibility-matrix)
|
|
26
|
-
- [Dependencies](#dependencies)
|
|
27
|
-
- [Suite Signature](#suite-signature)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
## Status & Compatibility
|
|
31
|
-
|
|
32
|
-
**Maturity**: Production-ready
|
|
33
|
-
|
|
34
|
-
**Python Support**: >=3.10
|
|
35
|
-
|
|
36
|
-
**OS Support**: Linux, macOS, Windows
|
|
37
|
-
|
|
38
|
-
**Status**: Actively maintained
|
|
39
|
-
|
|
40
|
-
## API Reference
|
|
41
|
-
|
|
42
|
-
Full API documentation is available in the source code docstrings.
|
|
43
|
-
|
|
44
|
-
Key modules and classes are documented with type hints for better IDE support.
|
|
45
|
-
|
|
46
|
-
## Tests
|
|
47
|
-
|
|
48
|
-
This project uses `pytest` for testing and `pytest-cov` for code coverage analysis.
|
|
49
|
-
|
|
50
|
-
### Installation
|
|
51
|
-
|
|
52
|
-
First, install the required testing dependencies:
|
|
53
|
-
```bash
|
|
54
|
-
.venv/bin/python -m pip install pytest pytest-cov
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
### Basic Usage
|
|
58
|
-
|
|
59
|
-
Run all tests with coverage:
|
|
60
|
-
```bash
|
|
61
|
-
.venv/bin/python -m pytest --cov --cov-report=html
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
### Common Commands
|
|
65
|
-
```bash
|
|
66
|
-
# Run tests with coverage for a specific module
|
|
67
|
-
.venv/bin/python -m pytest --cov=your_module
|
|
68
|
-
|
|
69
|
-
# Show which lines are not covered
|
|
70
|
-
.venv/bin/python -m pytest --cov=your_module --cov-report=term-missing
|
|
71
|
-
|
|
72
|
-
# Generate an HTML coverage report
|
|
73
|
-
.venv/bin/python -m pytest --cov=your_module --cov-report=html
|
|
74
|
-
|
|
75
|
-
# Combine terminal and HTML reports
|
|
76
|
-
.venv/bin/python -m pytest --cov=your_module --cov-report=term-missing --cov-report=html
|
|
77
|
-
|
|
78
|
-
# Run specific test file with coverage
|
|
79
|
-
.venv/bin/python -m pytest tests/test_file.py --cov=your_module --cov-report=term-missing
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
### Viewing HTML Reports
|
|
83
|
-
|
|
84
|
-
After generating an HTML report, open `htmlcov/index.html` in your browser to view detailed line-by-line coverage information.
|
|
85
|
-
|
|
86
|
-
### Coverage Threshold
|
|
87
|
-
|
|
88
|
-
To enforce a minimum coverage percentage:
|
|
89
|
-
```bash
|
|
90
|
-
.venv/bin/python -m pytest --cov=your_module --cov-fail-under=80
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
This will cause the test suite to fail if coverage drops below 80%.
|
|
94
|
-
|
|
95
|
-
## Code Quality & Typing
|
|
96
|
-
|
|
97
|
-
All the suite packages follow strict quality standards:
|
|
98
|
-
|
|
99
|
-
- **Type hints**: Full type coverage with mypy validation
|
|
100
|
-
- **Code formatting**: Enforced with black and isort
|
|
101
|
-
- **Linting**: Comprehensive checks with custom scripts and tools
|
|
102
|
-
- **Testing**: High test coverage requirements
|
|
103
|
-
|
|
104
|
-
These standards ensure reliability and maintainability across the suite.
|
|
105
|
-
|
|
106
|
-
## Versioning & Compatibility Policy
|
|
107
|
-
|
|
108
|
-
Wexample packages follow **Semantic Versioning** (SemVer):
|
|
109
|
-
|
|
110
|
-
- **MAJOR**: Breaking changes
|
|
111
|
-
- **MINOR**: New features, backward compatible
|
|
112
|
-
- **PATCH**: Bug fixes, backward compatible
|
|
113
|
-
|
|
114
|
-
We maintain backward compatibility within major versions and provide clear migration guides for breaking changes.
|
|
115
|
-
|
|
116
|
-
## Changelog
|
|
117
|
-
|
|
118
|
-
See [CHANGELOG.md](CHANGELOG.md) for detailed version history and release notes.
|
|
119
|
-
|
|
120
|
-
Major changes are documented with migration guides when applicable.
|
|
121
|
-
|
|
122
|
-
## Migration Notes
|
|
123
|
-
|
|
124
|
-
When upgrading between major versions, refer to the migration guides in the documentation.
|
|
125
|
-
|
|
126
|
-
Breaking changes are clearly documented with upgrade paths and examples.
|
|
127
|
-
|
|
128
|
-
## Known Limitations & Roadmap
|
|
129
|
-
|
|
130
|
-
Current limitations and planned features are tracked in the GitHub issues.
|
|
131
|
-
|
|
132
|
-
See the [project roadmap](https://github.com/wexample/python-wex_addon_dev_php/issues) for upcoming features and improvements.
|
|
133
|
-
|
|
134
|
-
## Security Policy
|
|
135
|
-
|
|
136
|
-
### Reporting Vulnerabilities
|
|
137
|
-
|
|
138
|
-
If you discover a security vulnerability, please email contact@wexample.com.
|
|
139
|
-
|
|
140
|
-
**Do not** open public issues for security vulnerabilities.
|
|
141
|
-
|
|
142
|
-
We take security seriously and will respond promptly to verified reports.
|
|
143
|
-
|
|
144
|
-
## Privacy & Telemetry
|
|
145
|
-
|
|
146
|
-
This package does **not** collect any telemetry or usage data.
|
|
147
|
-
|
|
148
|
-
Your privacy is respected — no data is transmitted to external services.
|
|
149
|
-
|
|
150
|
-
## Support Channels
|
|
151
|
-
|
|
152
|
-
- **GitHub Issues**: Bug reports and feature requests
|
|
153
|
-
- **GitHub Discussions**: Questions and community support
|
|
154
|
-
- **Documentation**: Comprehensive guides and API reference
|
|
155
|
-
- **Email**: contact@wexample.com for general inquiries
|
|
156
|
-
|
|
157
|
-
Community support is available through GitHub Discussions.
|
|
158
|
-
|
|
159
|
-
## Contribution Guidelines
|
|
160
|
-
|
|
161
|
-
We welcome contributions to the Wexample suite!
|
|
162
|
-
|
|
163
|
-
### How to Contribute
|
|
164
|
-
|
|
165
|
-
1. **Fork** the repository
|
|
166
|
-
2. **Create** a feature branch
|
|
167
|
-
3. **Make** your changes
|
|
168
|
-
4. **Test** thoroughly
|
|
169
|
-
5. **Submit** a pull request
|
|
170
|
-
|
|
171
|
-
## Maintainers & Authors
|
|
172
|
-
|
|
173
|
-
Maintained by the Wexample team and community contributors.
|
|
174
|
-
|
|
175
|
-
See [CONTRIBUTORS.md](CONTRIBUTORS.md) for the full list of contributors.
|
|
176
|
-
|
|
177
|
-
## License
|
|
178
|
-
|
|
179
|
-
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
180
|
-
|
|
181
|
-
Free to use in both personal and commercial projects.
|
|
182
|
-
|
|
183
|
-
## Useful Links
|
|
184
|
-
|
|
185
|
-
- **Homepage**: https://github.com/wexample/python-wex-addon-dev-php
|
|
186
|
-
- **Documentation**: [docs.wexample.com](https://docs.wexample.com)
|
|
187
|
-
- **Issue Tracker**: https://github.com/wexample/python-wex-addon-dev-php/issues
|
|
188
|
-
- **Discussions**: https://github.com/wexample/python-wex-addon-dev-php/discussions
|
|
189
|
-
- **PyPI**: [pypi.org/project/wexample-wex-addon-dev-php](https://pypi.org/project/wexample-wex-addon-dev-php/)
|
|
190
|
-
|
|
191
|
-
## Integration in the Suite
|
|
192
|
-
|
|
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
|
-
|
|
195
|
-
### Related Packages
|
|
196
|
-
|
|
197
|
-
The suite includes packages for configuration management, file handling, prompts, and more. Each package can be used independently or as part of the integrated suite.
|
|
198
|
-
|
|
199
|
-
Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
|
|
200
|
-
|
|
201
|
-
## Compatibility Matrix
|
|
202
|
-
|
|
203
|
-
This package is part of the Wexample suite and is compatible with other suite packages.
|
|
204
|
-
|
|
205
|
-
Refer to each package's documentation for specific version compatibility requirements.
|
|
206
|
-
|
|
207
|
-
## Dependencies
|
|
208
|
-
|
|
209
|
-
- attrs: >=23.1.0
|
|
210
|
-
- cattrs: >=23.1.0
|
|
211
|
-
- wexample-filestate-php: ==0.0.14
|
|
212
|
-
- wexample-wex-addon-app: ==0.0.55
|
|
213
|
-
- wexample-wex-core: ==6.0.67
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
# About us
|
|
217
|
-
|
|
218
|
-
[Wexample](https://wexample.com) stands as a cornerstone of the digital ecosystem — a collective of seasoned engineers, researchers, and creators driven by a relentless pursuit of technological excellence. More than a media platform, it has grown into a vibrant community where innovation meets craftsmanship, and where every line of code reflects a commitment to clarity, durability, and shared intelligence.
|
|
219
|
-
|
|
220
|
-
This packages suite embodies this spirit. Trusted by professionals and enthusiasts alike, it delivers a consistent, high-quality foundation for modern development — open, elegant, and battle-tested. Its reputation is built on years of collaboration, refinement, and rigorous attention to detail, making it a natural choice for those who demand both robustness and beauty in their tools.
|
|
221
|
-
|
|
222
|
-
Wexample cultivates a culture of mastery. Each package, each contribution carries the mark of a community that values precision, ethics, and innovation — a community proud to shape the future of digital craftsmanship.
|
|
223
|
-
|
wexample_wex_addon_dev_php-0.0.19/src/wexample_wex_addon_dev_php/workdir/php_laravel_workdir.py
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
from typing import TYPE_CHECKING
|
|
4
|
-
|
|
5
|
-
from wexample_wex_addon_dev_php.workdir.php_workdir import PhpWorkdir
|
|
6
|
-
|
|
7
|
-
if TYPE_CHECKING:
|
|
8
|
-
from wexample_config.const.types import DictConfig
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class PhpLaravelWorkdir(PhpWorkdir):
|
|
12
|
-
def prepare_value(self, raw_value: DictConfig | None = None) -> DictConfig:
|
|
13
|
-
from wexample_filestate.const.disk import DiskItemType
|
|
14
|
-
|
|
15
|
-
raw_value = super().prepare_value(raw_value)
|
|
16
|
-
|
|
17
|
-
children = raw_value["children"]
|
|
18
|
-
|
|
19
|
-
children.extend(
|
|
20
|
-
[
|
|
21
|
-
{
|
|
22
|
-
"name": "tests",
|
|
23
|
-
"type": DiskItemType.DIRECTORY,
|
|
24
|
-
"should_exist": True,
|
|
25
|
-
"children": [
|
|
26
|
-
self._create_python_file_children_filter(),
|
|
27
|
-
],
|
|
28
|
-
},
|
|
29
|
-
]
|
|
30
|
-
)
|
|
31
|
-
|
|
32
|
-
return raw_value
|
|
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
|