wexample-wex-addon-dev-flutter 0.0.56__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_flutter-0.0.56/PKG-INFO +244 -0
- wexample_wex_addon_dev_flutter-0.0.56/README.md +223 -0
- wexample_wex_addon_dev_flutter-0.0.56/pyproject.toml +88 -0
- wexample_wex_addon_dev_flutter-0.0.56/src/wexample_wex_addon_dev_flutter/__init__.py +0 -0
- wexample_wex_addon_dev_flutter-0.0.56/src/wexample_wex_addon_dev_flutter/__pycache__/__init__.py +0 -0
- wexample_wex_addon_dev_flutter-0.0.56/src/wexample_wex_addon_dev_flutter/config_value/__init__.py +1 -0
- wexample_wex_addon_dev_flutter-0.0.56/src/wexample_wex_addon_dev_flutter/config_value/flutter_package_readme_config_value.py +14 -0
- wexample_wex_addon_dev_flutter-0.0.56/src/wexample_wex_addon_dev_flutter/file/__init__.py +1 -0
- wexample_wex_addon_dev_flutter-0.0.56/src/wexample_wex_addon_dev_flutter/file/flutter_pubspec_yaml_file.py +26 -0
- wexample_wex_addon_dev_flutter-0.0.56/src/wexample_wex_addon_dev_flutter/flutter_addon_manager.py +7 -0
- wexample_wex_addon_dev_flutter-0.0.56/src/wexample_wex_addon_dev_flutter/py.typed +0 -0
- wexample_wex_addon_dev_flutter-0.0.56/src/wexample_wex_addon_dev_flutter/workdir/__init__.py +1 -0
- wexample_wex_addon_dev_flutter-0.0.56/src/wexample_wex_addon_dev_flutter/workdir/flutter_package_workdir.py +29 -0
- wexample_wex_addon_dev_flutter-0.0.56/src/wexample_wex_addon_dev_flutter/workdir/flutter_packages_suite_workdir.py +27 -0
- wexample_wex_addon_dev_flutter-0.0.56/src/wexample_wex_addon_dev_flutter/workdir/flutter_workdir.py +132 -0
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: wexample-wex-addon-dev-flutter
|
|
3
|
+
Version: 0.0.56
|
|
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-flutter==0.0.13
|
|
15
|
+
Requires-Dist: wexample-wex-addon-app==0.0.54
|
|
16
|
+
Requires-Dist: wexample-wex-core==6.0.66
|
|
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-flutter
|
|
23
|
+
|
|
24
|
+
Version: 0.0.56
|
|
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_flutter/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-flutter
|
|
207
|
+
- **Documentation**: [docs.wexample.com](https://docs.wexample.com)
|
|
208
|
+
- **Issue Tracker**: https://github.com/wexample/python-wex-addon-dev-flutter/issues
|
|
209
|
+
- **Discussions**: https://github.com/wexample/python-wex-addon-dev-flutter/discussions
|
|
210
|
+
- **PyPI**: [pypi.org/project/wexample-wex-addon-dev-flutter](https://pypi.org/project/wexample-wex-addon-dev-flutter/)
|
|
211
|
+
|
|
212
|
+
## Integration in the Suite
|
|
213
|
+
|
|
214
|
+
This package is part of the **Wexample Suite** — a collection of high-quality Python packages designed to work seamlessly together.
|
|
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-flutter: ==0.0.13
|
|
233
|
+
- wexample-wex-addon-app: ==0.0.54
|
|
234
|
+
- wexample-wex-core: ==6.0.66
|
|
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
|
+
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
# wexample-wex-addon-dev-flutter
|
|
2
|
+
|
|
3
|
+
Version: 0.0.56
|
|
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_flutter/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-flutter
|
|
186
|
+
- **Documentation**: [docs.wexample.com](https://docs.wexample.com)
|
|
187
|
+
- **Issue Tracker**: https://github.com/wexample/python-wex-addon-dev-flutter/issues
|
|
188
|
+
- **Discussions**: https://github.com/wexample/python-wex-addon-dev-flutter/discussions
|
|
189
|
+
- **PyPI**: [pypi.org/project/wexample-wex-addon-dev-flutter](https://pypi.org/project/wexample-wex-addon-dev-flutter/)
|
|
190
|
+
|
|
191
|
+
## Integration in the Suite
|
|
192
|
+
|
|
193
|
+
This package is part of the **Wexample Suite** — a collection of high-quality Python packages designed to work seamlessly together.
|
|
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-flutter: ==0.0.13
|
|
212
|
+
- wexample-wex-addon-app: ==0.0.54
|
|
213
|
+
- wexample-wex-core: ==6.0.66
|
|
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
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = [
|
|
3
|
+
"pdm-backend",
|
|
4
|
+
]
|
|
5
|
+
build-backend = "pdm.backend"
|
|
6
|
+
|
|
7
|
+
[project]
|
|
8
|
+
name = "wexample-wex-addon-dev-flutter"
|
|
9
|
+
version = "0.0.56"
|
|
10
|
+
description = "Python dev addon for wex"
|
|
11
|
+
authors = [
|
|
12
|
+
{ name = "weeger", email = "contact@wexample.com" },
|
|
13
|
+
]
|
|
14
|
+
requires-python = ">=3.10"
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Programming Language :: Python :: 3",
|
|
17
|
+
"License :: OSI Approved :: MIT License",
|
|
18
|
+
"Operating System :: OS Independent",
|
|
19
|
+
]
|
|
20
|
+
dependencies = [
|
|
21
|
+
"attrs>=23.1.0",
|
|
22
|
+
"cattrs>=23.1.0",
|
|
23
|
+
"wexample-filestate-flutter==0.0.13",
|
|
24
|
+
"wexample-wex-addon-app==0.0.54",
|
|
25
|
+
"wexample-wex-core==6.0.66",
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
[project.readme]
|
|
29
|
+
file = "README.md"
|
|
30
|
+
content-type = "text/markdown"
|
|
31
|
+
|
|
32
|
+
[project.license]
|
|
33
|
+
text = "MIT"
|
|
34
|
+
|
|
35
|
+
[project.urls]
|
|
36
|
+
homepage = "https://github.com/wexample/python-wex-dev-python"
|
|
37
|
+
|
|
38
|
+
[project.optional-dependencies]
|
|
39
|
+
dev = [
|
|
40
|
+
"pytest",
|
|
41
|
+
"pytest-cov",
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
[tool.setuptools.packages.find]
|
|
45
|
+
include = [
|
|
46
|
+
"*",
|
|
47
|
+
]
|
|
48
|
+
exclude = [
|
|
49
|
+
"wexample_wex_addon_dev_flutter.testing*",
|
|
50
|
+
]
|
|
51
|
+
|
|
52
|
+
[tool.pdm]
|
|
53
|
+
distribution = true
|
|
54
|
+
|
|
55
|
+
[tool.pdm.build]
|
|
56
|
+
package-dir = "src"
|
|
57
|
+
packages = [
|
|
58
|
+
{ include = "wexample_wex_addon_dev_flutter", from = "src" },
|
|
59
|
+
]
|
|
60
|
+
|
|
61
|
+
[tool.pytest.ini_options]
|
|
62
|
+
testpaths = [
|
|
63
|
+
"tests",
|
|
64
|
+
]
|
|
65
|
+
pythonpath = [
|
|
66
|
+
"src",
|
|
67
|
+
]
|
|
68
|
+
|
|
69
|
+
[tool.coverage.run]
|
|
70
|
+
source = [
|
|
71
|
+
"wexample_wex_addon_dev_flutter",
|
|
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",
|
|
88
|
+
]
|
|
File without changes
|
wexample_wex_addon_dev_flutter-0.0.56/src/wexample_wex_addon_dev_flutter/__pycache__/__init__.py
ADDED
|
File without changes
|
wexample_wex_addon_dev_flutter-0.0.56/src/wexample_wex_addon_dev_flutter/config_value/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from wexample_helpers.decorator.base_class import base_class
|
|
4
|
+
from wexample_wex_addon_app.config_value.app_readme_config_value import (
|
|
5
|
+
AppReadmeConfigValue,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@base_class
|
|
10
|
+
class FlutterPackageReadmeContentConfigValue(AppReadmeConfigValue):
|
|
11
|
+
"""README generation for Flutter packages."""
|
|
12
|
+
|
|
13
|
+
def _get_app_description(self) -> str:
|
|
14
|
+
return self.workdir.get_app_config().get("description", "")
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from wexample_filestate.item.file.yaml_file import YamlFile
|
|
4
|
+
from wexample_helpers.decorator.base_class import base_class
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
@base_class
|
|
8
|
+
class FlutterPubspecYamlFile(YamlFile):
|
|
9
|
+
def get_dependencies_versions(
|
|
10
|
+
self, optional: bool = False, group: str = "dev"
|
|
11
|
+
) -> dict[str, str]:
|
|
12
|
+
config = self.read_config()
|
|
13
|
+
|
|
14
|
+
dependencies = config.search(path="dependencies").get_dict_or_default(
|
|
15
|
+
default={}
|
|
16
|
+
)
|
|
17
|
+
dev_dependencies = config.search(path="dev_dependencies").get_dict_or_default(
|
|
18
|
+
default={}
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
merged = dict(dependencies)
|
|
22
|
+
|
|
23
|
+
if group == "dev":
|
|
24
|
+
merged.update(dev_dependencies)
|
|
25
|
+
|
|
26
|
+
return merged
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from wexample_wex_addon_dev_flutter.workdir.flutter_workdir import FlutterWorkdir
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
from wexample_filestate.config_value.readme_content_config_value import (
|
|
9
|
+
ReadmeContentConfigValue,
|
|
10
|
+
)
|
|
11
|
+
from wexample_wex_addon_app.workdir.framework_packages_suite_workdir import (
|
|
12
|
+
FrameworkPackageSuiteWorkdir,
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class FlutterPackageWorkdir(FlutterWorkdir):
|
|
17
|
+
def _get_readme_content(self) -> ReadmeContentConfigValue | None:
|
|
18
|
+
from wexample_wex_addon_dev_flutter.config_value.flutter_package_readme_config_value import (
|
|
19
|
+
FlutterPackageReadmeContentConfigValue,
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
return FlutterPackageReadmeContentConfigValue(workdir=self)
|
|
23
|
+
|
|
24
|
+
def _get_suite_package_workdir_class(self) -> type[FrameworkPackageSuiteWorkdir]:
|
|
25
|
+
from wexample_wex_addon_dev_flutter.workdir.flutter_packages_suite_workdir import (
|
|
26
|
+
FlutterPackagesSuiteWorkdir,
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
return FlutterPackagesSuiteWorkdir
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from wexample_wex_addon_app.workdir.framework_packages_suite_workdir import (
|
|
6
|
+
FrameworkPackageSuiteWorkdir,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from pathlib import Path
|
|
11
|
+
|
|
12
|
+
from wexample_wex_addon_app.workdir.code_base_workdir import CodeBaseWorkdir
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class FlutterPackagesSuiteWorkdir(FrameworkPackageSuiteWorkdir):
|
|
16
|
+
def _child_is_package_directory(self, entry: Path) -> bool:
|
|
17
|
+
return entry.is_dir() and (entry / "pubspec.yaml").is_file()
|
|
18
|
+
|
|
19
|
+
def _get_children_package_directory_name(self) -> str:
|
|
20
|
+
return "flutter"
|
|
21
|
+
|
|
22
|
+
def _get_children_package_workdir_class(self) -> type[CodeBaseWorkdir]:
|
|
23
|
+
from wexample_wex_addon_dev_flutter.workdir.flutter_package_workdir import (
|
|
24
|
+
FlutterPackageWorkdir,
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
return FlutterPackageWorkdir
|
wexample_wex_addon_dev_flutter-0.0.56/src/wexample_wex_addon_dev_flutter/workdir/flutter_workdir.py
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from wexample_config.options_provider.abstract_options_provider import (
|
|
6
|
+
AbstractOptionsProvider,
|
|
7
|
+
)
|
|
8
|
+
from wexample_wex_addon_app.workdir.code_base_workdir import CodeBaseWorkdir
|
|
9
|
+
|
|
10
|
+
if TYPE_CHECKING:
|
|
11
|
+
from wexample_config.const.types import DictConfig
|
|
12
|
+
from wexample_filestate.option.children_file_factory_option import (
|
|
13
|
+
ChildrenFileFactoryOption,
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
from wexample_wex_addon_dev_flutter.file.flutter_pubspec_yaml_file import (
|
|
17
|
+
FlutterPubspecYamlFile,
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class FlutterWorkdir(CodeBaseWorkdir):
|
|
22
|
+
def get_app_config_file(self, reload: bool = True) -> FlutterPubspecYamlFile:
|
|
23
|
+
from wexample_wex_addon_dev_flutter.file.flutter_pubspec_yaml_file import (
|
|
24
|
+
FlutterPubspecYamlFile,
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
config_file = self.find_by_type(FlutterPubspecYamlFile)
|
|
28
|
+
# Read once to populate content with file source.
|
|
29
|
+
config_file.read_text(reload=reload)
|
|
30
|
+
return config_file
|
|
31
|
+
|
|
32
|
+
def get_dependencies_versions(self) -> dict[str, str]:
|
|
33
|
+
return self.get_app_config_file().get_dependencies_versions()
|
|
34
|
+
|
|
35
|
+
def get_main_code_file_extension(self) -> str:
|
|
36
|
+
return "dart"
|
|
37
|
+
|
|
38
|
+
def get_options_providers(self) -> list[type[AbstractOptionsProvider]]:
|
|
39
|
+
from wexample_filestate_flutter.options_provider.flutter_options_provider import (
|
|
40
|
+
FlutterOptionsProvider,
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
options = super().get_options_providers()
|
|
44
|
+
|
|
45
|
+
options.extend(
|
|
46
|
+
[
|
|
47
|
+
FlutterOptionsProvider,
|
|
48
|
+
]
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
return options
|
|
52
|
+
|
|
53
|
+
def prepare_value(self, raw_value: DictConfig | None = None) -> DictConfig:
|
|
54
|
+
from wexample_filestate.const.disk import DiskItemType
|
|
55
|
+
from wexample_helpers.helpers.array import array_dict_get_by
|
|
56
|
+
|
|
57
|
+
from wexample_wex_addon_dev_flutter.file.flutter_pubspec_yaml_file import (
|
|
58
|
+
FlutterPubspecYamlFile,
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
raw_value = super().prepare_value(raw_value=raw_value)
|
|
62
|
+
|
|
63
|
+
children = raw_value["children"]
|
|
64
|
+
|
|
65
|
+
children.append(
|
|
66
|
+
{
|
|
67
|
+
"class": FlutterPubspecYamlFile,
|
|
68
|
+
"name": "pubspec.yaml",
|
|
69
|
+
"type": DiskItemType.FILE,
|
|
70
|
+
"should_exist": True,
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
# Add common Flutter ignores
|
|
75
|
+
array_dict_get_by("name", ".gitignore", children).setdefault(
|
|
76
|
+
"should_contain_lines", []
|
|
77
|
+
).extend(
|
|
78
|
+
[
|
|
79
|
+
".dart_tool/",
|
|
80
|
+
"build/",
|
|
81
|
+
".packages",
|
|
82
|
+
".flutter-plugins",
|
|
83
|
+
".flutter-plugins-dependencies",
|
|
84
|
+
".flutter-plugins-android",
|
|
85
|
+
".flutter-plugins-ios",
|
|
86
|
+
]
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
children.extend(
|
|
90
|
+
[
|
|
91
|
+
{
|
|
92
|
+
"name": "lib",
|
|
93
|
+
"type": DiskItemType.DIRECTORY,
|
|
94
|
+
"should_exist": True,
|
|
95
|
+
"children": [
|
|
96
|
+
self._create_flutter_file_children_filter(),
|
|
97
|
+
],
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "test",
|
|
101
|
+
"type": DiskItemType.DIRECTORY,
|
|
102
|
+
"should_exist": True,
|
|
103
|
+
"children": [
|
|
104
|
+
self._create_flutter_file_children_filter(),
|
|
105
|
+
],
|
|
106
|
+
},
|
|
107
|
+
]
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
return raw_value
|
|
111
|
+
|
|
112
|
+
def _create_flutter_file_children_filter(self) -> ChildrenFileFactoryOption:
|
|
113
|
+
from wexample_filestate.const.disk import DiskItemType
|
|
114
|
+
from wexample_filestate.option.children_filter_option import (
|
|
115
|
+
ChildrenFilterOption,
|
|
116
|
+
)
|
|
117
|
+
from wexample_filestate_flutter.file.flutter_file import FlutterFile
|
|
118
|
+
from wexample_filestate_flutter.option.flutter.dart_format_option import (
|
|
119
|
+
DartFormatOption,
|
|
120
|
+
)
|
|
121
|
+
|
|
122
|
+
return ChildrenFilterOption(
|
|
123
|
+
pattern={
|
|
124
|
+
"class": FlutterFile,
|
|
125
|
+
"type": DiskItemType.FILE,
|
|
126
|
+
"flutter": [
|
|
127
|
+
DartFormatOption.get_name(),
|
|
128
|
+
],
|
|
129
|
+
},
|
|
130
|
+
name_pattern=r"^.*\.dart$",
|
|
131
|
+
recursive=True,
|
|
132
|
+
)
|