wexample-wex-addon-dev-python 9.0.0__py3-none-any.whl → 10.0.0__py3-none-any.whl
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_python/workdir/python_workdir.py +5 -20
- {wexample_wex_addon_dev_python-9.0.0.dist-info → wexample_wex_addon_dev_python-10.0.0.dist-info}/METADATA +4 -4
- {wexample_wex_addon_dev_python-9.0.0.dist-info → wexample_wex_addon_dev_python-10.0.0.dist-info}/RECORD +5 -5
- {wexample_wex_addon_dev_python-9.0.0.dist-info → wexample_wex_addon_dev_python-10.0.0.dist-info}/WHEEL +0 -0
- {wexample_wex_addon_dev_python-9.0.0.dist-info → wexample_wex_addon_dev_python-10.0.0.dist-info}/entry_points.txt +0 -0
|
@@ -156,21 +156,6 @@ class PythonWorkdir(
|
|
|
156
156
|
return self.get_path() / ".venv"
|
|
157
157
|
return Path(venv_path_config.get_str())
|
|
158
158
|
|
|
159
|
-
def has_coverage_changes_since_last_report(self) -> bool:
|
|
160
|
-
"""Return True if coverage has changed since last saved report."""
|
|
161
|
-
last_report = (
|
|
162
|
-
self.app_workdir.get_config()
|
|
163
|
-
.search("test.coverage.last_report")
|
|
164
|
-
.get_dict_or_default()
|
|
165
|
-
)
|
|
166
|
-
|
|
167
|
-
if not last_report:
|
|
168
|
-
return True
|
|
169
|
-
|
|
170
|
-
current_coverage = self._run_coverage()
|
|
171
|
-
|
|
172
|
-
return current_coverage != last_report.get("percent")
|
|
173
|
-
|
|
174
159
|
def has_tests(self) -> bool:
|
|
175
160
|
# The tests/ directory itself is filestate-managed scaffolding and
|
|
176
161
|
# exists for every Python package; only actual test files count.
|
|
@@ -328,10 +313,11 @@ class PythonWorkdir(
|
|
|
328
313
|
|
|
329
314
|
from wexample_helpers_git.helpers.git import git_get_current_commit_hash
|
|
330
315
|
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
"test
|
|
316
|
+
# Derived state, not configuration: lives in .wex/local/ (untracked)
|
|
317
|
+
# so test runs never dirty the repository.
|
|
318
|
+
self.set_local_data_value(
|
|
319
|
+
"test",
|
|
320
|
+
"coverage_last_report",
|
|
335
321
|
{
|
|
336
322
|
"commit_hash": git_get_current_commit_hash(cwd=self.get_path()),
|
|
337
323
|
"covered": totals.get("covered_lines", 0),
|
|
@@ -341,7 +327,6 @@ class PythonWorkdir(
|
|
|
341
327
|
"total": totals.get("num_statements", 0),
|
|
342
328
|
},
|
|
343
329
|
)
|
|
344
|
-
config_file.write_config()
|
|
345
330
|
|
|
346
331
|
if format == PYTHON_PYTEST_COV_FORMAT_HTML:
|
|
347
332
|
report_path = self.get_path() / PYTHON_PYTEST_COV_REPORT_DIR / "index.html"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: wexample-wex-addon-dev-python
|
|
3
|
-
Version:
|
|
3
|
+
Version: 10.0.0
|
|
4
4
|
Summary: Python dev addon for wex
|
|
5
5
|
Author-Email: weeger <contact@wexample.com>
|
|
6
6
|
License: MIT
|
|
@@ -18,7 +18,7 @@ Requires-Dist: pyright
|
|
|
18
18
|
Requires-Dist: wexample-api>=6.3.0
|
|
19
19
|
Requires-Dist: wexample-filestate-python>=6.8.0
|
|
20
20
|
Requires-Dist: wexample-wex-addon-ai>=9.0.0
|
|
21
|
-
Requires-Dist: wexample-wex-addon-app>=25.
|
|
21
|
+
Requires-Dist: wexample-wex-addon-app>=25.1.0
|
|
22
22
|
Provides-Extra: dev
|
|
23
23
|
Requires-Dist: pytest; extra == "dev"
|
|
24
24
|
Requires-Dist: pytest-cov; extra == "dev"
|
|
@@ -26,7 +26,7 @@ Description-Content-Type: text/markdown
|
|
|
26
26
|
|
|
27
27
|
# wex_addon_dev_python
|
|
28
28
|
|
|
29
|
-
Version:
|
|
29
|
+
Version: 10.0.0
|
|
30
30
|
|
|
31
31
|
Python dev addon for wex
|
|
32
32
|
|
|
@@ -115,7 +115,7 @@ Visit the [Wexample Suite documentation](https://docs.wexample.com) for the comp
|
|
|
115
115
|
- wexample-api: >=6.3.0
|
|
116
116
|
- wexample-filestate-python: >=6.8.0
|
|
117
117
|
- wexample-wex-addon-ai: >=9.0.0
|
|
118
|
-
- wexample-wex-addon-app: >=25.
|
|
118
|
+
- wexample-wex-addon-app: >=25.1.0
|
|
119
119
|
|
|
120
120
|
## Versioning & Compatibility Policy
|
|
121
121
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
wexample_wex_addon_dev_python-
|
|
2
|
-
wexample_wex_addon_dev_python-
|
|
3
|
-
wexample_wex_addon_dev_python-
|
|
1
|
+
wexample_wex_addon_dev_python-10.0.0.dist-info/METADATA,sha256=RfAh79kMik7DdealOQZlOD5MKdQFDKHsNPcrdgnXHjI,17388
|
|
2
|
+
wexample_wex_addon_dev_python-10.0.0.dist-info/WHEEL,sha256=VP-D4TPS230sME9Z3vb3INXvo1yt0924YRm5AOsk_dE,90
|
|
3
|
+
wexample_wex_addon_dev_python-10.0.0.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
|
4
4
|
wexample_wex_addon_dev_python/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
wexample_wex_addon_dev_python/__pycache__/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
wexample_wex_addon_dev_python/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -67,5 +67,5 @@ wexample_wex_addon_dev_python/workdir/mixin/__init__.py,sha256=47DEQpj8HBSa-_TIm
|
|
|
67
67
|
wexample_wex_addon_dev_python/workdir/mixin/with_profiling_python_workdir_mixin.py,sha256=yPj84DyNJ_cFSawcOUDMBzKBlEohy2NQdt3FM5Nmw4o,3115
|
|
68
68
|
wexample_wex_addon_dev_python/workdir/python_package_workdir.py,sha256=3m3ySOt25eBgqIkuE4AwaA_9W0mfRco13AgN-phPuSM,18656
|
|
69
69
|
wexample_wex_addon_dev_python/workdir/python_packages_suite_workdir.py,sha256=_meFBFBxUyxjgeGJHx06o7cynEoUHifVn5eJbwqK3mw,2947
|
|
70
|
-
wexample_wex_addon_dev_python/workdir/python_workdir.py,sha256=
|
|
71
|
-
wexample_wex_addon_dev_python-
|
|
70
|
+
wexample_wex_addon_dev_python/workdir/python_workdir.py,sha256=Q4x_mqSC3h03j03Mzv8vKp4HK0ckpGTxZ7Icca5yzJo,22245
|
|
71
|
+
wexample_wex_addon_dev_python-10.0.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|