wexample-wex-addon-dev-python 0.0.45__py3-none-any.whl → 0.0.48__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/commands/code/check/mypy.py +4 -2
- wexample_wex_addon_dev_python/commands/code/check/pyright.py +4 -1
- wexample_wex_addon_dev_python/commands/code/check.py +2 -4
- wexample_wex_addon_dev_python/commands/code/format/black.py +4 -1
- wexample_wex_addon_dev_python/commands/code/format/isort.py +4 -1
- wexample_wex_addon_dev_python/commands/code/format.py +5 -1
- wexample_wex_addon_dev_python/config_value/python_package_readme_config_value.py +33 -22
- wexample_wex_addon_dev_python/const/package.py +9 -8
- wexample_wex_addon_dev_python/file/python_package_toml_file.py +125 -126
- wexample_wex_addon_dev_python/middleware/each_python_file_middleware.py +16 -18
- wexample_wex_addon_dev_python/python_addon_manager.py +5 -1
- wexample_wex_addon_dev_python/workdir/python_package_workdir.py +108 -100
- wexample_wex_addon_dev_python/workdir/python_packages_suite_workdir.py +49 -56
- wexample_wex_addon_dev_python/workdir/python_workdir.py +93 -73
- {wexample_wex_addon_dev_python-0.0.45.dist-info → wexample_wex_addon_dev_python-0.0.48.dist-info}/METADATA +12 -10
- {wexample_wex_addon_dev_python-0.0.45.dist-info → wexample_wex_addon_dev_python-0.0.48.dist-info}/RECORD +18 -20
- wexample_wex_addon_dev_python/commands/examples/classes/__init__.py +0 -0
- wexample_wex_addon_dev_python/commands/examples/classes/example_pydantic_class_with_public_var_internaly_defined.py +0 -42
- {wexample_wex_addon_dev_python-0.0.45.dist-info → wexample_wex_addon_dev_python-0.0.48.dist-info}/WHEEL +0 -0
- {wexample_wex_addon_dev_python-0.0.45.dist-info → wexample_wex_addon_dev_python-0.0.48.dist-info}/entry_points.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: wexample-wex-addon-dev-python
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.48
|
|
4
4
|
Summary: Python dev addon for wex
|
|
5
5
|
Author-Email: weeger <contact@wexample.com>
|
|
6
6
|
License: MIT
|
|
@@ -9,12 +9,13 @@ Classifier: License :: OSI Approved :: MIT License
|
|
|
9
9
|
Classifier: Operating System :: OS Independent
|
|
10
10
|
Project-URL: homepage, https://github.com/wexample/python-wex-dev-python
|
|
11
11
|
Requires-Python: >=3.10
|
|
12
|
-
Requires-Dist:
|
|
12
|
+
Requires-Dist: attrs>=23.1.0
|
|
13
|
+
Requires-Dist: cattrs>=23.1.0
|
|
13
14
|
Requires-Dist: pylint
|
|
14
15
|
Requires-Dist: pyright
|
|
15
|
-
Requires-Dist: wexample-filestate-python==0.0.
|
|
16
|
-
Requires-Dist: wexample-wex-addon-app==0.0.
|
|
17
|
-
Requires-Dist: wexample-wex-core==6.0.
|
|
16
|
+
Requires-Dist: wexample-filestate-python==0.0.44
|
|
17
|
+
Requires-Dist: wexample-wex-addon-app==0.0.46
|
|
18
|
+
Requires-Dist: wexample-wex-core==6.0.48
|
|
18
19
|
Provides-Extra: dev
|
|
19
20
|
Requires-Dist: pytest; extra == "dev"
|
|
20
21
|
Description-Content-Type: text/markdown
|
|
@@ -23,7 +24,7 @@ Description-Content-Type: text/markdown
|
|
|
23
24
|
|
|
24
25
|
Python dev addon for wex
|
|
25
26
|
|
|
26
|
-
Version: 0.0.
|
|
27
|
+
Version: 0.0.46
|
|
27
28
|
|
|
28
29
|
## Requirements
|
|
29
30
|
|
|
@@ -31,12 +32,13 @@ Version: 0.0.45
|
|
|
31
32
|
|
|
32
33
|
## Dependencies
|
|
33
34
|
|
|
34
|
-
-
|
|
35
|
+
- attrs>=23.1.0
|
|
36
|
+
- cattrs>=23.1.0
|
|
35
37
|
- pylint
|
|
36
38
|
- pyright
|
|
37
|
-
- wexample-filestate-python==0.0.
|
|
38
|
-
- wexample-wex-addon-app==0.0.
|
|
39
|
-
- wexample-wex-core==6.0.
|
|
39
|
+
- wexample-filestate-python==0.0.42
|
|
40
|
+
- wexample-wex-addon-app==0.0.44
|
|
41
|
+
- wexample-wex-core==6.0.46
|
|
40
42
|
|
|
41
43
|
## Installation
|
|
42
44
|
|
|
@@ -1,37 +1,35 @@
|
|
|
1
|
-
wexample_wex_addon_dev_python-0.0.
|
|
2
|
-
wexample_wex_addon_dev_python-0.0.
|
|
3
|
-
wexample_wex_addon_dev_python-0.0.
|
|
1
|
+
wexample_wex_addon_dev_python-0.0.48.dist-info/METADATA,sha256=rxNedffn1fW53JA8RGb4DO6LROMV22nl7FMVRj8TVeA,1446
|
|
2
|
+
wexample_wex_addon_dev_python-0.0.48.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
|
|
3
|
+
wexample_wex_addon_dev_python-0.0.48.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/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
wexample_wex_addon_dev_python/commands/code/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
-
wexample_wex_addon_dev_python/commands/code/check.py,sha256=
|
|
7
|
+
wexample_wex_addon_dev_python/commands/code/check.py,sha256=e0hmRV0ZhTPwyKZ9wTSmayUe8hU1Vv7BA3mgQq1wiso,3323
|
|
8
8
|
wexample_wex_addon_dev_python/commands/code/check/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
-
wexample_wex_addon_dev_python/commands/code/check/mypy.py,sha256=
|
|
9
|
+
wexample_wex_addon_dev_python/commands/code/check/mypy.py,sha256=hZ1taOAofaFgqhtbHLXA14-4cFkVcw6QUi9PmpbEKuk,1401
|
|
10
10
|
wexample_wex_addon_dev_python/commands/code/check/pylint.py,sha256=cSnirIVrMH9-_ETAiIVdjCvHQWcNJzCwwAfvcxNBodM,3328
|
|
11
|
-
wexample_wex_addon_dev_python/commands/code/check/pyright.py,sha256=
|
|
12
|
-
wexample_wex_addon_dev_python/commands/code/format.py,sha256=
|
|
11
|
+
wexample_wex_addon_dev_python/commands/code/check/pyright.py,sha256=jCKZxQ5Ln2Vh1QlhKqz3i0djnQwWbNHzDcttu41jhsI,3619
|
|
12
|
+
wexample_wex_addon_dev_python/commands/code/format.py,sha256=7Xep5RCgbt_JNKM9FROipuEFYfXojJjJDRNRKfqTkoM,2444
|
|
13
13
|
wexample_wex_addon_dev_python/commands/code/format/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
14
|
-
wexample_wex_addon_dev_python/commands/code/format/black.py,sha256=
|
|
15
|
-
wexample_wex_addon_dev_python/commands/code/format/isort.py,sha256=
|
|
14
|
+
wexample_wex_addon_dev_python/commands/code/format/black.py,sha256=wo3BEODFD6BUrmnfheESMyLppLPwtvcgkOVfvHWdAZs,1462
|
|
15
|
+
wexample_wex_addon_dev_python/commands/code/format/isort.py,sha256=pRYYPZWFza6e_HgKYpYplzV5hwJvbM3NNJ_-A3x1yV8,1540
|
|
16
16
|
wexample_wex_addon_dev_python/commands/examples/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
|
-
wexample_wex_addon_dev_python/commands/examples/classes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
18
|
-
wexample_wex_addon_dev_python/commands/examples/classes/example_pydantic_class_with_public_var_internaly_defined.py,sha256=kv_x91CyaZc6wrFXufJ5seJAZ_JshE9SB8Bai8ta8pU,1558
|
|
19
17
|
wexample_wex_addon_dev_python/commands/examples/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
18
|
wexample_wex_addon_dev_python/commands/examples/utils/some_example_type.py,sha256=zusGlLOLkt2EpPFk38FIRA6d_5Q92Y7-TLj8ofHhQk0,121
|
|
21
19
|
wexample_wex_addon_dev_python/commands/examples/validate.py,sha256=jHiWkEtETkVSYJKuvUJRNqd9Ag81z3sPdUbX6FUpEng,664
|
|
22
20
|
wexample_wex_addon_dev_python/commands/release/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
23
21
|
wexample_wex_addon_dev_python/config_value/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
|
-
wexample_wex_addon_dev_python/config_value/python_package_readme_config_value.py,sha256=
|
|
22
|
+
wexample_wex_addon_dev_python/config_value/python_package_readme_config_value.py,sha256=TKMCvIoxs3p9CqswG6UfIanlJYKcpf_82xQigjaLII4,3192
|
|
25
23
|
wexample_wex_addon_dev_python/const/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
|
-
wexample_wex_addon_dev_python/const/package.py,sha256=
|
|
24
|
+
wexample_wex_addon_dev_python/const/package.py,sha256=oRCPhaazJp5TujxF-35rrIYA4FJsqMqCns8lOFKOLeA,451
|
|
27
25
|
wexample_wex_addon_dev_python/file/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
28
|
-
wexample_wex_addon_dev_python/file/python_package_toml_file.py,sha256=
|
|
26
|
+
wexample_wex_addon_dev_python/file/python_package_toml_file.py,sha256=tEU0q76Vw4kgNt7bkit6RjBfxyFmIqmcXTfAdLeHZHI,11998
|
|
29
27
|
wexample_wex_addon_dev_python/middleware/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
|
-
wexample_wex_addon_dev_python/middleware/each_python_file_middleware.py,sha256=
|
|
28
|
+
wexample_wex_addon_dev_python/middleware/each_python_file_middleware.py,sha256=UzNEpedCYf31aNONFl0SuSJnoXRzhJhgEiTCaPark6E,2311
|
|
31
29
|
wexample_wex_addon_dev_python/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
32
|
-
wexample_wex_addon_dev_python/python_addon_manager.py,sha256=
|
|
30
|
+
wexample_wex_addon_dev_python/python_addon_manager.py,sha256=Mmr9F5lOS2gbb8JTB4-vTri4Qn5Cd2Jukjk7uiTr1Hs,582
|
|
33
31
|
wexample_wex_addon_dev_python/workdir/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
34
|
-
wexample_wex_addon_dev_python/workdir/python_package_workdir.py,sha256=
|
|
35
|
-
wexample_wex_addon_dev_python/workdir/python_packages_suite_workdir.py,sha256=
|
|
36
|
-
wexample_wex_addon_dev_python/workdir/python_workdir.py,sha256=
|
|
37
|
-
wexample_wex_addon_dev_python-0.0.
|
|
32
|
+
wexample_wex_addon_dev_python/workdir/python_package_workdir.py,sha256=dAeKcP8xrKKnuAadNh1TeWAbUbPlg0wkV7duX03Lavg,7948
|
|
33
|
+
wexample_wex_addon_dev_python/workdir/python_packages_suite_workdir.py,sha256=9PbH-rbnYsVKCox_MZJk6IkgSwpNLPP1wSQDAyZsj2k,6454
|
|
34
|
+
wexample_wex_addon_dev_python/workdir/python_workdir.py,sha256=urRUL70mUMAIbGo8eO7huiJWrpPAiy8MpPE4cW29ykM,9746
|
|
35
|
+
wexample_wex_addon_dev_python-0.0.48.dist-info/RECORD,,
|
|
File without changes
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
from typing import TYPE_CHECKING, Any
|
|
4
|
-
|
|
5
|
-
from pydantic import BaseModel, PrivateAttr
|
|
6
|
-
|
|
7
|
-
# Stay lazy as most as possible
|
|
8
|
-
if TYPE_CHECKING:
|
|
9
|
-
from wexample_wex_addon_dev_python.commands.examples.utils.some_example_type import (
|
|
10
|
-
SomeExampleType,
|
|
11
|
-
)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class ExamplePydanticClassWithPublicVarInternallyDefined(BaseModel):
|
|
15
|
-
_internal_var: SomeExampleType = PrivateAttr()
|
|
16
|
-
|
|
17
|
-
# model_post_init runs AFTER Pydantic has validated/coerced model fields.
|
|
18
|
-
# Use it to initialize PrivateAttr that may rely on validated state.
|
|
19
|
-
# If you depend on other mixins' __init__ ordering, prefer a custom __init__ or finalize().
|
|
20
|
-
def model_post_init(self, __context: Any) -> None:
|
|
21
|
-
# Lazy import to avoid circular imports; runs after validation
|
|
22
|
-
from wexample_wex_addon_dev_python.commands.examples.utils.some_example_type import (
|
|
23
|
-
SomeExampleType,
|
|
24
|
-
)
|
|
25
|
-
|
|
26
|
-
self._internal_var = SomeExampleType(property="Yes")
|
|
27
|
-
|
|
28
|
-
@property
|
|
29
|
-
def public_var(self) -> SomeExampleType:
|
|
30
|
-
return self._internal_var
|
|
31
|
-
|
|
32
|
-
@public_var.setter
|
|
33
|
-
def public_var(self, value: SomeExampleType) -> None:
|
|
34
|
-
from wexample_wex_addon_dev_python.commands.examples.utils.some_example_type import (
|
|
35
|
-
SomeExampleType,
|
|
36
|
-
)
|
|
37
|
-
|
|
38
|
-
# Stay lazy as most as possible
|
|
39
|
-
# Check value at setting, avoid checking it
|
|
40
|
-
if not isinstance(value, SomeExampleType):
|
|
41
|
-
raise TypeError(f"public_var must be SomeExampleType, got {type(value)!r}")
|
|
42
|
-
self._internal_var = value
|
|
File without changes
|
|
File without changes
|