wexample-wex-addon-dev-python 0.0.62__py3-none-any.whl → 0.0.63__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.
@@ -8,9 +8,6 @@ from wexample_wex_addon_app.const.path import APP_PATH_README
8
8
 
9
9
  if TYPE_CHECKING:
10
10
  from tomlkit import TOMLDocument
11
- from wexample_wex_addon_app.workdir.code_base_workdir import (
12
- CodeBaseWorkdir,
13
- )
14
11
 
15
12
 
16
13
  @base_class
@@ -62,10 +59,10 @@ class PythonPyprojectTomlFile(TomlFile):
62
59
 
63
60
  content = content or self.read_parsed()
64
61
 
65
- package = self.find_package_workdir()
66
- import_name = package.get_package_import_name() if package else None
67
- project_name = package.get_package_name() if package else None
68
- project_version = package.get_project_version() if package else None
62
+ workdir = self.get_parent_item()
63
+ import_name = workdir.get_package_import_name()
64
+ project_name = workdir.get_package_name()
65
+ project_version = workdir.get_project_version()
69
66
 
70
67
  self._enforce_build_system(content)
71
68
  self._enforce_pdm_build(content, import_name)
@@ -80,11 +77,6 @@ class PythonPyprojectTomlFile(TomlFile):
80
77
 
81
78
  return result
82
79
 
83
- def find_package_workdir(self) -> CodeBaseWorkdir | None:
84
- from wexample_wex_addon_app.workdir.code_base_workdir import CodeBaseWorkdir
85
-
86
- return self.find_closest(CodeBaseWorkdir)
87
-
88
80
  def get_dependencies_versions(
89
81
  self, optional: bool = False, group: str = "dev"
90
82
  ) -> dict[str, str]:
@@ -198,34 +190,28 @@ class PythonPyprojectTomlFile(TomlFile):
198
190
  project_tbl["requires-python"] = ">=3.10"
199
191
 
200
192
  # Add description if available
201
- package = self.find_package_workdir()
202
- if package:
203
- description = package.get_config().search("global.description")
204
- if not description.is_none():
205
- project_tbl["description"] = description.get_str()
193
+ workdir = self.get_parent_item()
194
+ description = workdir.get_config().search("global.description")
195
+ if not description.is_none():
196
+ project_tbl["description"] = description.get_str()
206
197
 
207
198
  # Add authors if available
208
- if package:
209
- from tomlkit import array, inline_table
199
+ from tomlkit import array, inline_table
210
200
 
211
- author_name = package.search_in_package_or_suite_config(
212
- "global.authors.name"
213
- )
214
- author_email = package.search_in_package_or_suite_config(
215
- "global.authors.email"
216
- )
201
+ author_name = workdir.search_in_package_or_suite_config("global.authors.name")
202
+ author_email = workdir.search_in_package_or_suite_config("global.authors.email")
217
203
 
218
- if not author_name.is_none() or not author_email.is_none():
219
- authors_arr = array()
220
- author_tbl = inline_table()
204
+ if not author_name.is_none() or not author_email.is_none():
205
+ authors_arr = array()
206
+ author_tbl = inline_table()
221
207
 
222
- if not author_name.is_none():
223
- author_tbl["name"] = author_name.get_str()
224
- if not author_email.is_none():
225
- author_tbl["email"] = author_email.get_str()
208
+ if not author_name.is_none():
209
+ author_tbl["name"] = author_name.get_str()
210
+ if not author_email.is_none():
211
+ author_tbl["email"] = author_email.get_str()
226
212
 
227
- authors_arr.append(author_tbl)
228
- project_tbl["authors"] = authors_arr
213
+ authors_arr.append(author_tbl)
214
+ project_tbl["authors"] = authors_arr
229
215
 
230
216
  # Add classifiers (standard Python package metadata)
231
217
  project_tbl["classifiers"] = [
@@ -235,14 +221,11 @@ class PythonPyprojectTomlFile(TomlFile):
235
221
  ]
236
222
 
237
223
  # Add README if it exists
238
- if package:
239
- pass
240
-
241
- readme_file = package.find_by_name(APP_PATH_README)
242
- if readme_file:
243
- readme_tbl, _ = toml_ensure_table(project_tbl, ["readme"])
244
- readme_tbl["file"] = str(APP_PATH_README)
245
- readme_tbl["content-type"] = "text/markdown"
224
+ readme_file = workdir.find_by_name(APP_PATH_README)
225
+ if readme_file:
226
+ readme_tbl, _ = toml_ensure_table(project_tbl, ["readme"])
227
+ readme_tbl["file"] = str(APP_PATH_README)
228
+ readme_tbl["content-type"] = "text/markdown"
246
229
 
247
230
  # Add MIT license
248
231
  license_tbl, _ = toml_ensure_table(project_tbl, ["license"])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wexample-wex-addon-dev-python
3
- Version: 0.0.62
3
+ Version: 0.0.63
4
4
  Summary: Python dev addon for wex
5
5
  Author-Email: weeger <contact@wexample.com>
6
6
  License: MIT
@@ -14,9 +14,9 @@ Requires-Dist: cattrs>=23.1.0
14
14
  Requires-Dist: networkx
15
15
  Requires-Dist: pylint
16
16
  Requires-Dist: pyright
17
- Requires-Dist: wexample-filestate-python==0.0.57
18
- Requires-Dist: wexample-wex-addon-app==0.0.54
19
- Requires-Dist: wexample-wex-core==6.0.66
17
+ Requires-Dist: wexample-filestate-python==0.0.58
18
+ Requires-Dist: wexample-wex-addon-app==0.0.55
19
+ Requires-Dist: wexample-wex-core==6.0.67
20
20
  Provides-Extra: dev
21
21
  Requires-Dist: pytest; extra == "dev"
22
22
  Requires-Dist: pytest-cov; extra == "dev"
@@ -24,7 +24,7 @@ Description-Content-Type: text/markdown
24
24
 
25
25
  # wexample-wex-addon-dev-python
26
26
 
27
- Version: 0.0.62
27
+ Version: 0.0.63
28
28
 
29
29
  Python dev addon for wex
30
30
 
@@ -214,7 +214,7 @@ Free to use in both personal and commercial projects.
214
214
 
215
215
  ## Integration in the Suite
216
216
 
217
- This package is part of the **Wexample Suite** — a collection of high-quality Python packages designed to work seamlessly together.
217
+ 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.
218
218
 
219
219
  ### Related Packages
220
220
 
@@ -235,9 +235,9 @@ Refer to each package's documentation for specific version compatibility require
235
235
  - networkx:
236
236
  - pylint:
237
237
  - pyright:
238
- - wexample-filestate-python: ==0.0.57
239
- - wexample-wex-addon-app: ==0.0.54
240
- - wexample-wex-core: ==6.0.66
238
+ - wexample-filestate-python: ==0.0.58
239
+ - wexample-wex-addon-app: ==0.0.55
240
+ - wexample-wex-core: ==6.0.67
241
241
 
242
242
 
243
243
  # About us
@@ -1,6 +1,6 @@
1
- wexample_wex_addon_dev_python-0.0.62.dist-info/METADATA,sha256=wfg0YuX89h46KwubjV5ys0GaCD4PuplKcQeBaALDRLM,8086
2
- wexample_wex_addon_dev_python-0.0.62.dist-info/WHEEL,sha256=tsUv_t7BDeJeRHaSrczbGeuK-TtDpGsWi_JfpzD255I,90
3
- wexample_wex_addon_dev_python-0.0.62.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
1
+ wexample_wex_addon_dev_python-0.0.63.dist-info/METADATA,sha256=PLQFvaRQQdEWjXJqFeaka-gjx7ip9AJwkVG1yVnEqJM,8124
2
+ wexample_wex_addon_dev_python-0.0.63.dist-info/WHEEL,sha256=tsUv_t7BDeJeRHaSrczbGeuK-TtDpGsWi_JfpzD255I,90
3
+ wexample_wex_addon_dev_python-0.0.63.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
@@ -29,7 +29,7 @@ wexample_wex_addon_dev_python/const/python.py,sha256=jxdPt5CnD0dcp4SmobEc_c7XcCk
29
29
  wexample_wex_addon_dev_python/file/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
30
  wexample_wex_addon_dev_python/file/__pycache__/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
31
  wexample_wex_addon_dev_python/file/python_app_iml_file.py,sha256=l6YHEILxSGFjOvYWY20zIyAODjOIfuyHsuCfSMw0jVE,1201
32
- wexample_wex_addon_dev_python/file/python_pyproject_toml_file.py,sha256=EGWwBy5W7zNf8-q7XqXHKV8Qb6FVFoW3qm6Rtwcn4NY,15911
32
+ wexample_wex_addon_dev_python/file/python_pyproject_toml_file.py,sha256=GM89r1ZwN88MUMysItqlIrPCN-r-Rc9hvahRMjA2Ny0,15323
33
33
  wexample_wex_addon_dev_python/middleware/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
34
  wexample_wex_addon_dev_python/middleware/__pycache__/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
35
  wexample_wex_addon_dev_python/middleware/each_python_file_middleware.py,sha256=UzNEpedCYf31aNONFl0SuSJnoXRzhJhgEiTCaPark6E,2311
@@ -43,4 +43,4 @@ wexample_wex_addon_dev_python/workdir/__pycache__/__init__.py,sha256=47DEQpj8HBS
43
43
  wexample_wex_addon_dev_python/workdir/python_package_workdir.py,sha256=djUfgI1MCn9KOgYCYiwFIpZaGQ28spaiOz6t8gL6FoA,11780
44
44
  wexample_wex_addon_dev_python/workdir/python_packages_suite_workdir.py,sha256=ICHHewLpsXiheYzGDEahphBryH98ZVezWzSAy6A5w5I,2874
45
45
  wexample_wex_addon_dev_python/workdir/python_workdir.py,sha256=ERpSw5qti1NmHiufOix6bS5lW2vIvclr82SKwlWOhKk,19681
46
- wexample_wex_addon_dev_python-0.0.62.dist-info/RECORD,,
46
+ wexample_wex_addon_dev_python-0.0.63.dist-info/RECORD,,