wexample-wex-addon-dev-php 0.0.8__tar.gz → 0.0.16__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 (14) hide show
  1. {wexample_wex_addon_dev_php-0.0.8 → wexample_wex_addon_dev_php-0.0.16}/PKG-INFO +53 -4
  2. {wexample_wex_addon_dev_php-0.0.8 → wexample_wex_addon_dev_php-0.0.16}/README.md +50 -1
  3. {wexample_wex_addon_dev_php-0.0.8 → wexample_wex_addon_dev_php-0.0.16}/pyproject.toml +37 -8
  4. {wexample_wex_addon_dev_php-0.0.8 → wexample_wex_addon_dev_php-0.0.16}/src/wexample_wex_addon_dev_php/__init__.py +0 -0
  5. {wexample_wex_addon_dev_php-0.0.8 → wexample_wex_addon_dev_php-0.0.16}/src/wexample_wex_addon_dev_php/__pycache__/__init__.py +0 -0
  6. {wexample_wex_addon_dev_php-0.0.8 → wexample_wex_addon_dev_php-0.0.16}/src/wexample_wex_addon_dev_php/file/__init__.py +0 -0
  7. {wexample_wex_addon_dev_php-0.0.8 → wexample_wex_addon_dev_php-0.0.16}/src/wexample_wex_addon_dev_php/php_addon_manager.py +0 -0
  8. {wexample_wex_addon_dev_php-0.0.8 → wexample_wex_addon_dev_php-0.0.16}/src/wexample_wex_addon_dev_php/py.typed +0 -0
  9. {wexample_wex_addon_dev_php-0.0.8 → wexample_wex_addon_dev_php-0.0.16}/src/wexample_wex_addon_dev_php/workdir/__init__.py +0 -0
  10. {wexample_wex_addon_dev_php-0.0.8 → wexample_wex_addon_dev_php-0.0.16}/src/wexample_wex_addon_dev_php/workdir/php_laravel_workdir.py +0 -0
  11. {wexample_wex_addon_dev_php-0.0.8 → wexample_wex_addon_dev_php-0.0.16}/src/wexample_wex_addon_dev_php/workdir/php_package_workdir.py +0 -0
  12. {wexample_wex_addon_dev_php-0.0.8 → wexample_wex_addon_dev_php-0.0.16}/src/wexample_wex_addon_dev_php/workdir/php_packages_suite_workdir.py +0 -0
  13. {wexample_wex_addon_dev_php-0.0.8 → wexample_wex_addon_dev_php-0.0.16}/src/wexample_wex_addon_dev_php/workdir/php_symfony_workdir.py +0 -0
  14. {wexample_wex_addon_dev_php-0.0.8 → wexample_wex_addon_dev_php-0.0.16}/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.8
3
+ Version: 0.0.16
4
4
  Summary: Python dev addon for wex
5
5
  Author-Email: weeger <contact@wexample.com>
6
6
  License: MIT
@@ -11,8 +11,8 @@ 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-wex-addon-app==0.0.47
15
- Requires-Dist: wexample-wex-core==6.0.49
14
+ Requires-Dist: wexample-wex-addon-app==0.0.51
15
+ Requires-Dist: wexample-wex-core==6.0.63
16
16
  Provides-Extra: dev
17
17
  Requires-Dist: pytest; extra == "dev"
18
18
  Requires-Dist: pytest-cov; extra == "dev"
@@ -21,10 +21,59 @@ Description-Content-Type: text/markdown
21
21
 
22
22
  # wexample-wex-addon-dev-php
23
23
 
24
- Version: 0.0.8
24
+ Version: 0.0.16
25
25
 
26
26
  Python dev addon for wex
27
27
 
28
+ ## Tests
29
+
30
+ This project uses `pytest` for testing and `pytest-cov` for code coverage analysis.
31
+
32
+ ### Installation
33
+
34
+ First, install the required testing dependencies:
35
+ ```bash
36
+ .venv/bin/python -m pip install pytest pytest-cov
37
+ ```
38
+
39
+ ### Basic Usage
40
+
41
+ Run all tests with coverage:
42
+ ```bash
43
+ .venv/bin/python -m pytest --cov --cov-report=html
44
+ ```
45
+
46
+ ### Common Commands
47
+ ```bash
48
+ # Run tests with coverage for a specific module
49
+ .venv/bin/python -m pytest --cov=your_module
50
+
51
+ # Show which lines are not covered
52
+ .venv/bin/python -m pytest --cov=your_module --cov-report=term-missing
53
+
54
+ # Generate an HTML coverage report
55
+ .venv/bin/python -m pytest --cov=your_module --cov-report=html
56
+
57
+ # Combine terminal and HTML reports
58
+ .venv/bin/python -m pytest --cov=your_module --cov-report=term-missing --cov-report=html
59
+
60
+ # Run specific test file with coverage
61
+ .venv/bin/python -m pytest tests/test_file.py --cov=your_module --cov-report=term-missing
62
+ ```
63
+
64
+ ### Viewing HTML Reports
65
+
66
+ After generating an HTML report, open `htmlcov/index.html` in your browser to view detailed line-by-line coverage information.
67
+
68
+ ### Coverage Threshold
69
+
70
+ To enforce a minimum coverage percentage:
71
+ ```bash
72
+ .venv/bin/python -m pytest --cov=your_module --cov-fail-under=80
73
+ ```
74
+
75
+ This will cause the test suite to fail if coverage drops below 80%.
76
+
28
77
  ## Code Quality & Typing
29
78
 
30
79
  All the suite packages follow strict quality standards:
@@ -1,9 +1,58 @@
1
1
  # wexample-wex-addon-dev-php
2
2
 
3
- Version: 0.0.8
3
+ Version: 0.0.16
4
4
 
5
5
  Python dev addon for wex
6
6
 
7
+ ## Tests
8
+
9
+ This project uses `pytest` for testing and `pytest-cov` for code coverage analysis.
10
+
11
+ ### Installation
12
+
13
+ First, install the required testing dependencies:
14
+ ```bash
15
+ .venv/bin/python -m pip install pytest pytest-cov
16
+ ```
17
+
18
+ ### Basic Usage
19
+
20
+ Run all tests with coverage:
21
+ ```bash
22
+ .venv/bin/python -m pytest --cov --cov-report=html
23
+ ```
24
+
25
+ ### Common Commands
26
+ ```bash
27
+ # Run tests with coverage for a specific module
28
+ .venv/bin/python -m pytest --cov=your_module
29
+
30
+ # Show which lines are not covered
31
+ .venv/bin/python -m pytest --cov=your_module --cov-report=term-missing
32
+
33
+ # Generate an HTML coverage report
34
+ .venv/bin/python -m pytest --cov=your_module --cov-report=html
35
+
36
+ # Combine terminal and HTML reports
37
+ .venv/bin/python -m pytest --cov=your_module --cov-report=term-missing --cov-report=html
38
+
39
+ # Run specific test file with coverage
40
+ .venv/bin/python -m pytest tests/test_file.py --cov=your_module --cov-report=term-missing
41
+ ```
42
+
43
+ ### Viewing HTML Reports
44
+
45
+ After generating an HTML report, open `htmlcov/index.html` in your browser to view detailed line-by-line coverage information.
46
+
47
+ ### Coverage Threshold
48
+
49
+ To enforce a minimum coverage percentage:
50
+ ```bash
51
+ .venv/bin/python -m pytest --cov=your_module --cov-fail-under=80
52
+ ```
53
+
54
+ This will cause the test suite to fail if coverage drops below 80%.
55
+
7
56
  ## Code Quality & Typing
8
57
 
9
58
  All the suite packages follow strict quality standards:
@@ -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.8"
9
+ version = "0.0.16"
10
10
  description = "Python dev addon for wex"
11
11
  authors = [
12
12
  { name = "weeger", email = "contact@wexample.com" },
@@ -20,8 +20,8 @@ classifiers = [
20
20
  dependencies = [
21
21
  "attrs>=23.1.0",
22
22
  "cattrs>=23.1.0",
23
- "wexample-wex-addon-app==0.0.47",
24
- "wexample-wex-core==6.0.49",
23
+ "wexample-wex-addon-app==0.0.51",
24
+ "wexample-wex-core==6.0.63",
25
25
  ]
26
26
 
27
27
  [project.readme]
@@ -41,6 +41,14 @@ dev = [
41
41
  "wexample-filestate-php==0.0.1",
42
42
  ]
43
43
 
44
+ [tool.setuptools.packages.find]
45
+ include = [
46
+ "*",
47
+ ]
48
+ exclude = [
49
+ "wexample_wex_addon_dev_php.testing*",
50
+ ]
51
+
44
52
  [tool.pdm]
45
53
  distribution = true
46
54
 
@@ -50,10 +58,31 @@ packages = [
50
58
  { include = "wexample_wex_addon_dev_php", from = "src" },
51
59
  ]
52
60
 
53
- [tool.setuptools.packages.find]
54
- include = [
55
- "*",
61
+ [tool.pytest.ini_options]
62
+ testpaths = [
63
+ "tests",
56
64
  ]
57
- exclude = [
58
- "wexample_wex_addon_dev_php.testing*",
65
+ pythonpath = [
66
+ "src",
67
+ ]
68
+
69
+ [tool.coverage.run]
70
+ source = [
71
+ "wexample_wex_addon_dev_php",
72
+ ]
73
+ omit = [
74
+ "*/tests/*",
75
+ "*/.venv/*",
76
+ "*/venv/*",
77
+ ]
78
+
79
+ [tool.coverage.report]
80
+ exclude_lines = [
81
+ "pragma: no cover",
82
+ "def __repr__",
83
+ "raise AssertionError",
84
+ "raise NotImplementedError",
85
+ "if __name__ == .__main__.:",
86
+ "if TYPE_CHECKING:",
87
+ "@abstractmethod",
59
88
  ]