wexample-wex-addon-dev-python 8.2.1__py3-none-any.whl → 8.5.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/helpers/__init__.py +0 -0
- wexample_wex_addon_dev_python/helpers/pdm.py +0 -0
- wexample_wex_addon_dev_python/resources/.wex.yml +0 -0
- wexample_wex_addon_dev_python/resources/docker/Dockerfile.python-profiling +0 -0
- wexample_wex_addon_dev_python/resources/package_publish_gitlab.yml +0 -0
- wexample_wex_addon_dev_python/services/__init__.py +0 -0
- wexample_wex_addon_dev_python/services/python/__init__.py +0 -0
- wexample_wex_addon_dev_python/services/python/app_service.py +0 -0
- wexample_wex_addon_dev_python/services/python/commands/__init__.py +0 -0
- wexample_wex_addon_dev_python/services/python/commands/service/__init__.py +0 -0
- wexample_wex_addon_dev_python/services/python/commands/service/install.py +0 -0
- wexample_wex_addon_dev_python/services/python/commands/service/setup.py +0 -0
- wexample_wex_addon_dev_python/services/python/docker/.wex.yml +0 -0
- wexample_wex_addon_dev_python/services/python/docker/docker-compose.yml +0 -0
- wexample_wex_addon_dev_python/services/python/samples/__init__.py +0 -0
- wexample_wex_addon_dev_python/services/python/samples/docker/__init__.py +0 -0
- wexample_wex_addon_dev_python/services/python/samples/docker/docker-compose.yml +0 -0
- wexample_wex_addon_dev_python/services/python/samples/docker/entrypoint.sh +0 -0
- wexample_wex_addon_dev_python/services/python/samples/docker/images/Dockerfile.base +0 -0
- wexample_wex_addon_dev_python/services/python/samples/docker/images/Dockerfile.develop +0 -0
- wexample_wex_addon_dev_python/services/python/samples/docker/images/__init__.py +0 -0
- wexample_wex_addon_dev_python/services/python/service.yml +0 -0
- wexample_wex_addon_dev_python/workdir/mixin/__init__.py +0 -0
- wexample_wex_addon_dev_python/workdir/mixin/with_profiling_python_workdir_mixin.py +0 -0
- wexample_wex_addon_dev_python/workdir/python_package_workdir.py +29 -26
- {wexample_wex_addon_dev_python-8.2.1.dist-info → wexample_wex_addon_dev_python-8.5.0.dist-info}/METADATA +158 -3
- {wexample_wex_addon_dev_python-8.2.1.dist-info → wexample_wex_addon_dev_python-8.5.0.dist-info}/RECORD +5 -5
- {wexample_wex_addon_dev_python-8.2.1.dist-info → wexample_wex_addon_dev_python-8.5.0.dist-info}/WHEEL +0 -0
- {wexample_wex_addon_dev_python-8.2.1.dist-info → wexample_wex_addon_dev_python-8.5.0.dist-info}/entry_points.txt +0 -0
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -454,21 +454,23 @@ class PythonPackageWorkdir(PythonWorkdir):
|
|
|
454
454
|
shell_run(publish_cmd, inherit_stdio=True, cwd=self.get_path())
|
|
455
455
|
|
|
456
456
|
def _wait_for_registry(self) -> None:
|
|
457
|
-
import
|
|
457
|
+
import base64
|
|
458
458
|
import urllib.error
|
|
459
459
|
import urllib.request
|
|
460
460
|
|
|
461
|
+
from wexample_helpers.helpers.polling_callback_manager import (
|
|
462
|
+
PollingCallbackManager,
|
|
463
|
+
)
|
|
464
|
+
|
|
461
465
|
repository_url = self.search_app_or_suite_runtime_config(
|
|
462
466
|
"pdm.repository.url", default=None
|
|
463
467
|
).get_str_or_none()
|
|
464
|
-
|
|
465
468
|
if not repository_url:
|
|
466
469
|
repository_url = "https://pypi.org"
|
|
467
470
|
|
|
468
471
|
token = self.search_app_or_suite_runtime_config(
|
|
469
472
|
"pdm.repository.token", default=None
|
|
470
473
|
).get_str_or_none()
|
|
471
|
-
|
|
472
474
|
username = (
|
|
473
475
|
self.search_app_or_suite_runtime_config(
|
|
474
476
|
"pdm.repository.username", default="__token__"
|
|
@@ -478,44 +480,45 @@ class PythonPackageWorkdir(PythonWorkdir):
|
|
|
478
480
|
|
|
479
481
|
package = self.get_package_name()
|
|
480
482
|
version = self.get_setup_version()
|
|
483
|
+
url = f"{repository_url.rstrip('/')}/simple/{package}/"
|
|
481
484
|
|
|
482
|
-
|
|
483
|
-
url = f"{base}/simple/{package}/"
|
|
484
|
-
|
|
485
|
-
max_attempts = 40
|
|
486
|
-
delay = 30.0
|
|
487
|
-
|
|
488
|
-
self.log(f"Waiting for {package}=={version} to appear on registry…")
|
|
489
|
-
|
|
490
|
-
for attempt in range(1, max_attempts + 1):
|
|
485
|
+
def check_available() -> bool | None:
|
|
491
486
|
try:
|
|
492
487
|
req = urllib.request.Request(url)
|
|
493
488
|
if token:
|
|
494
|
-
import base64
|
|
495
|
-
|
|
496
489
|
credentials = base64.b64encode(
|
|
497
490
|
f"{username}:{token}".encode()
|
|
498
491
|
).decode()
|
|
499
492
|
req.add_header("Authorization", f"Basic {credentials}")
|
|
500
493
|
with urllib.request.urlopen(req, timeout=10) as resp:
|
|
501
|
-
if resp.status == 200:
|
|
502
|
-
|
|
503
|
-
if version in content:
|
|
504
|
-
self.success(f"{package}=={version} is available.")
|
|
505
|
-
return
|
|
494
|
+
if resp.status == 200 and version in resp.read().decode():
|
|
495
|
+
return True
|
|
506
496
|
except urllib.error.HTTPError as e:
|
|
507
497
|
if e.code != 404:
|
|
508
498
|
raise
|
|
509
499
|
except Exception:
|
|
510
500
|
pass
|
|
501
|
+
return None
|
|
502
|
+
|
|
503
|
+
max_attempts = 40
|
|
504
|
+
delay_seconds = 30
|
|
511
505
|
|
|
506
|
+
self.log(f"Waiting for {package}=={version} to appear on registry…")
|
|
507
|
+
|
|
508
|
+
def on_retry(attempt, max_a, delay, _exc, _msg) -> None:
|
|
512
509
|
self.log(
|
|
513
|
-
f"Not yet available (attempt {attempt}/{
|
|
514
|
-
f"retrying in {int(delay)}s…"
|
|
510
|
+
f"Not yet available (attempt {attempt}/{max_a}), retrying in {delay}s…"
|
|
515
511
|
)
|
|
516
|
-
time.sleep(delay)
|
|
517
512
|
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
513
|
+
PollingCallbackManager(
|
|
514
|
+
callback=check_available,
|
|
515
|
+
max_attempts=max_attempts,
|
|
516
|
+
delay_seconds_callback=lambda _attempt: delay_seconds,
|
|
517
|
+
on_retry_callback=on_retry,
|
|
518
|
+
timeout_message=(
|
|
519
|
+
f"Timed out waiting for {package}=={version} on registry after "
|
|
520
|
+
f"{max_attempts * delay_seconds // 60} minutes."
|
|
521
|
+
),
|
|
522
|
+
).run()
|
|
523
|
+
|
|
524
|
+
self.success(f"{package}=={version} is available.")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: wexample-wex-addon-dev-python
|
|
3
|
-
Version: 8.
|
|
3
|
+
Version: 8.5.0
|
|
4
4
|
Summary: Python dev addon for wex
|
|
5
5
|
Author-Email: weeger <contact@wexample.com>
|
|
6
6
|
License: MIT
|
|
@@ -15,8 +15,8 @@ Requires-Dist: griffe>=2.0.2
|
|
|
15
15
|
Requires-Dist: networkx
|
|
16
16
|
Requires-Dist: pylint
|
|
17
17
|
Requires-Dist: pyright
|
|
18
|
-
Requires-Dist: wexample-filestate-python>=6.
|
|
19
|
-
Requires-Dist: wexample-wex-addon-app>=
|
|
18
|
+
Requires-Dist: wexample-filestate-python>=6.7.0
|
|
19
|
+
Requires-Dist: wexample-wex-addon-app>=18.0.0
|
|
20
20
|
Provides-Extra: dev
|
|
21
21
|
Requires-Dist: pytest; extra == "dev"
|
|
22
22
|
Requires-Dist: pytest-cov; extra == "dev"
|
|
@@ -24,6 +24,131 @@ Description-Content-Type: text/markdown
|
|
|
24
24
|
|
|
25
25
|
# wex_addon_dev_python
|
|
26
26
|
|
|
27
|
+
Version: 8.5.0
|
|
28
|
+
|
|
29
|
+
Python dev addon for wex
|
|
30
|
+
|
|
31
|
+
## Table of Contents
|
|
32
|
+
|
|
33
|
+
- [Tests](#tests)
|
|
34
|
+
- [Suite Integration](#suite-integration)
|
|
35
|
+
- [Dependencies](#dependencies)
|
|
36
|
+
- [Versioning](#versioning)
|
|
37
|
+
- [License](#license)
|
|
38
|
+
- [Suite Integration](#suite-integration)
|
|
39
|
+
- [Suite Signature](#suite-signature)
|
|
40
|
+
- [Introduction](#introduction)
|
|
41
|
+
- [Roadmap](#roadmap)
|
|
42
|
+
- [Status Compatibility](#status-compatibility)
|
|
43
|
+
- [Useful Links](#useful-links)
|
|
44
|
+
- [Migration Notes](#migration-notes)
|
|
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
|
+
## Integration in the Suite
|
|
96
|
+
|
|
97
|
+
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.
|
|
98
|
+
|
|
99
|
+
### Related Packages
|
|
100
|
+
|
|
101
|
+
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.
|
|
102
|
+
|
|
103
|
+
Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
|
|
104
|
+
|
|
105
|
+
## Dependencies
|
|
106
|
+
|
|
107
|
+
- attrs: >=23.1.0
|
|
108
|
+
- cattrs: >=23.1.0
|
|
109
|
+
- griffe: >=2.0.2
|
|
110
|
+
- networkx:
|
|
111
|
+
- pylint:
|
|
112
|
+
- pyright:
|
|
113
|
+
- wexample-filestate-python: >=6.7.0
|
|
114
|
+
- wexample-wex-addon-app: >=18.0.0
|
|
115
|
+
|
|
116
|
+
## Versioning & Compatibility Policy
|
|
117
|
+
|
|
118
|
+
Wexample packages follow **Semantic Versioning** (SemVer):
|
|
119
|
+
|
|
120
|
+
- **MAJOR**: Breaking changes
|
|
121
|
+
- **MINOR**: New features, backward compatible
|
|
122
|
+
- **PATCH**: Bug fixes, backward compatible
|
|
123
|
+
|
|
124
|
+
We maintain backward compatibility within major versions and provide clear migration guides for breaking changes.
|
|
125
|
+
|
|
126
|
+
## License
|
|
127
|
+
|
|
128
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
129
|
+
|
|
130
|
+
Free to use in both personal and commercial projects.
|
|
131
|
+
|
|
132
|
+
## Integration in the Suite
|
|
133
|
+
|
|
134
|
+
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.
|
|
135
|
+
|
|
136
|
+
### Related Packages
|
|
137
|
+
|
|
138
|
+
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.
|
|
139
|
+
|
|
140
|
+
Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
|
|
141
|
+
|
|
142
|
+
# About us
|
|
143
|
+
|
|
144
|
+
[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.
|
|
145
|
+
|
|
146
|
+
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.
|
|
147
|
+
|
|
148
|
+
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.
|
|
149
|
+
|
|
150
|
+
# wex_addon_dev_python
|
|
151
|
+
|
|
27
152
|
Version: 8.2.1
|
|
28
153
|
|
|
29
154
|
Python dev addon for wex
|
|
@@ -330,3 +455,33 @@ See the [project roadmap](https://github.com/wexample/python-wex_addon_dev_pytho
|
|
|
330
455
|
When upgrading between major versions, refer to the migration guides in the documentation.
|
|
331
456
|
|
|
332
457
|
Breaking changes are clearly documented with upgrade paths and examples.
|
|
458
|
+
|
|
459
|
+
## Known Limitations & Roadmap
|
|
460
|
+
|
|
461
|
+
Current limitations and planned features are tracked in the GitHub issues.
|
|
462
|
+
|
|
463
|
+
See the [project roadmap](https://github.com/wexample/python-wex_addon_dev_python/issues) for upcoming features and improvements.
|
|
464
|
+
|
|
465
|
+
## Status & Compatibility
|
|
466
|
+
|
|
467
|
+
**Maturity**: Production-ready
|
|
468
|
+
|
|
469
|
+
**Python Support**: >=3.10
|
|
470
|
+
|
|
471
|
+
**OS Support**: Linux, macOS, Windows
|
|
472
|
+
|
|
473
|
+
**Status**: Actively maintained
|
|
474
|
+
|
|
475
|
+
## Useful Links
|
|
476
|
+
|
|
477
|
+
- **Homepage**: https://github.com/wexample/python-wex-addon-dev-python
|
|
478
|
+
- **Documentation**: [docs.wexample.com](https://docs.wexample.com)
|
|
479
|
+
- **Issue Tracker**: https://github.com/wexample/python-wex-addon-dev-python/issues
|
|
480
|
+
- **Discussions**: https://github.com/wexample/python-wex-addon-dev-python/discussions
|
|
481
|
+
- **PyPI**: [pypi.org/project/wex_addon_dev_python](https://pypi.org/project/wex_addon_dev_python/)
|
|
482
|
+
|
|
483
|
+
## Migration Notes
|
|
484
|
+
|
|
485
|
+
When upgrading between major versions, refer to the migration guides in the documentation.
|
|
486
|
+
|
|
487
|
+
Breaking changes are clearly documented with upgrade paths and examples.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
wexample_wex_addon_dev_python-8.
|
|
2
|
-
wexample_wex_addon_dev_python-8.
|
|
3
|
-
wexample_wex_addon_dev_python-8.
|
|
1
|
+
wexample_wex_addon_dev_python-8.5.0.dist-info/METADATA,sha256=fJpOykjuKxT-PLTnXKx-Ehjx1-8ptJVvGTkDDj3q5XY,17250
|
|
2
|
+
wexample_wex_addon_dev_python-8.5.0.dist-info/WHEEL,sha256=Z36eTX6lG3PITRleSd5hAZHCcz52yg3c0JQVxKBbLW0,90
|
|
3
|
+
wexample_wex_addon_dev_python-8.5.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
|
|
@@ -62,7 +62,7 @@ wexample_wex_addon_dev_python/workdir/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCe
|
|
|
62
62
|
wexample_wex_addon_dev_python/workdir/__pycache__/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
63
63
|
wexample_wex_addon_dev_python/workdir/mixin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
64
64
|
wexample_wex_addon_dev_python/workdir/mixin/with_profiling_python_workdir_mixin.py,sha256=rWf_AMq4YM_vvKYZiXyhFeAz2xg0KMt_u-1FJACtvjc,3042
|
|
65
|
-
wexample_wex_addon_dev_python/workdir/python_package_workdir.py,sha256=
|
|
65
|
+
wexample_wex_addon_dev_python/workdir/python_package_workdir.py,sha256=WQnVSSOixv_fl124DX0jswGPTJ3xMi4QpGPskVafyUc,19092
|
|
66
66
|
wexample_wex_addon_dev_python/workdir/python_packages_suite_workdir.py,sha256=ICHHewLpsXiheYzGDEahphBryH98ZVezWzSAy6A5w5I,2874
|
|
67
67
|
wexample_wex_addon_dev_python/workdir/python_workdir.py,sha256=hBlqRfJ1eRvUzGFasftnn0SxGw0_Yyoe7AhBDLWntl4,20261
|
|
68
|
-
wexample_wex_addon_dev_python-8.
|
|
68
|
+
wexample_wex_addon_dev_python-8.5.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|