wexample-wex-addon-dev-python 7.6.0__py3-none-any.whl → 7.8.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_package_workdir.py +21 -7
- wexample_wex_addon_dev_python/workdir/python_workdir.py +1 -1
- {wexample_wex_addon_dev_python-7.6.0.dist-info → wexample_wex_addon_dev_python-7.8.0.dist-info}/METADATA +4 -4
- {wexample_wex_addon_dev_python-7.6.0.dist-info → wexample_wex_addon_dev_python-7.8.0.dist-info}/RECORD +6 -6
- {wexample_wex_addon_dev_python-7.6.0.dist-info → wexample_wex_addon_dev_python-7.8.0.dist-info}/WHEEL +0 -0
- {wexample_wex_addon_dev_python-7.6.0.dist-info → wexample_wex_addon_dev_python-7.8.0.dist-info}/entry_points.txt +0 -0
|
@@ -27,6 +27,7 @@ class PythonPackageWorkdir(PythonWorkdir):
|
|
|
27
27
|
|
|
28
28
|
def check_publish_prerequisites(self) -> None:
|
|
29
29
|
import os
|
|
30
|
+
import pathlib
|
|
30
31
|
import shutil
|
|
31
32
|
|
|
32
33
|
super().check_publish_prerequisites()
|
|
@@ -41,15 +42,22 @@ class PythonPackageWorkdir(PythonWorkdir):
|
|
|
41
42
|
f"Run: sudo rm -rf '{pdm_build_dir}'"
|
|
42
43
|
)
|
|
43
44
|
|
|
45
|
+
# os.environ.get() intentional: PDM_BIN_DIR may not be in every workdir's
|
|
46
|
+
# .wex/local/env.yml — get_env_parameter() raises KeyNotFoundError if absent.
|
|
47
|
+
saved_pdm_dir = os.environ.get("PDM_BIN_DIR")
|
|
48
|
+
if saved_pdm_dir:
|
|
49
|
+
current = os.environ.get("PATH", "")
|
|
50
|
+
if saved_pdm_dir not in current:
|
|
51
|
+
os.environ["PATH"] = f"{saved_pdm_dir}:{current}"
|
|
52
|
+
|
|
44
53
|
if shutil.which("pdm"):
|
|
45
54
|
return
|
|
46
55
|
|
|
47
56
|
self.warning("'pdm' not found in PATH — required to publish Python packages.")
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
)
|
|
57
|
+
|
|
58
|
+
local_bin = pathlib.Path.home() / ".local" / "bin"
|
|
59
|
+
suggestion = str(local_bin) if (local_bin / "pdm").is_file() else None
|
|
60
|
+
|
|
53
61
|
response = self.io.input(
|
|
54
62
|
question="Enter the directory containing pdm (will be prepended to PATH):",
|
|
55
63
|
default_value=suggestion,
|
|
@@ -60,8 +68,8 @@ class PythonPackageWorkdir(PythonWorkdir):
|
|
|
60
68
|
"'pdm' not configured. Install it with: pipx install pdm"
|
|
61
69
|
)
|
|
62
70
|
|
|
63
|
-
os.environ["PATH"] = response
|
|
64
|
-
self._persist_env_value("
|
|
71
|
+
os.environ["PATH"] = f"{response}:{os.environ.get('PATH', '')}"
|
|
72
|
+
self._persist_env_value("PDM_BIN_DIR", response)
|
|
65
73
|
self.info(f"Added {response!r} to PATH — saved to .wex/local/env.yml")
|
|
66
74
|
|
|
67
75
|
if not shutil.which("pdm"):
|
|
@@ -406,6 +414,12 @@ class PythonPackageWorkdir(PythonWorkdir):
|
|
|
406
414
|
# Fallback to parent behaviour
|
|
407
415
|
super()._install_dependencies_in_venv(venv_path=venv_path, env=env, force=force)
|
|
408
416
|
|
|
417
|
+
def _post_publish(self) -> None:
|
|
418
|
+
from wexample_helpers_git.const.common import GIT_BRANCH_MAIN
|
|
419
|
+
|
|
420
|
+
self.merge_to_main()
|
|
421
|
+
self.push_to_deployment_remote(branch_name=GIT_BRANCH_MAIN)
|
|
422
|
+
|
|
409
423
|
def _publish(self, force: bool = False) -> None:
|
|
410
424
|
from wexample_filestate_python.common.pipy_gateway import PipyGateway
|
|
411
425
|
from wexample_helpers.helpers.shell import shell_run
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: wexample-wex-addon-dev-python
|
|
3
|
-
Version: 7.
|
|
3
|
+
Version: 7.8.0
|
|
4
4
|
Summary: Python dev addon for wex
|
|
5
5
|
Author-Email: weeger <contact@wexample.com>
|
|
6
6
|
License: MIT
|
|
@@ -16,7 +16,7 @@ Requires-Dist: networkx
|
|
|
16
16
|
Requires-Dist: pylint
|
|
17
17
|
Requires-Dist: pyright
|
|
18
18
|
Requires-Dist: wexample-filestate-python>=6.4.0
|
|
19
|
-
Requires-Dist: wexample-wex-addon-app>=
|
|
19
|
+
Requires-Dist: wexample-wex-addon-app>=13.0.0
|
|
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
|
# wex_addon_dev_python
|
|
26
26
|
|
|
27
|
-
Version: 7.
|
|
27
|
+
Version: 7.8.0
|
|
28
28
|
|
|
29
29
|
Python dev addon for wex
|
|
30
30
|
|
|
@@ -111,7 +111,7 @@ Visit the [Wexample Suite documentation](https://docs.wexample.com) for the comp
|
|
|
111
111
|
- pylint:
|
|
112
112
|
- pyright:
|
|
113
113
|
- wexample-filestate-python: >=6.4.0
|
|
114
|
-
- wexample-wex-addon-app: >=
|
|
114
|
+
- wexample-wex-addon-app: >=13.0.0
|
|
115
115
|
|
|
116
116
|
## Versioning & Compatibility Policy
|
|
117
117
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
wexample_wex_addon_dev_python-7.
|
|
2
|
-
wexample_wex_addon_dev_python-7.
|
|
3
|
-
wexample_wex_addon_dev_python-7.
|
|
1
|
+
wexample_wex_addon_dev_python-7.8.0.dist-info/METADATA,sha256=pOzFAbqBDaTvx-FAOcder9bLjhUtJFBGo4TjSelrAio,11755
|
|
2
|
+
wexample_wex_addon_dev_python-7.8.0.dist-info/WHEEL,sha256=Z36eTX6lG3PITRleSd5hAZHCcz52yg3c0JQVxKBbLW0,90
|
|
3
|
+
wexample_wex_addon_dev_python-7.8.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
|
|
@@ -60,7 +60,7 @@ wexample_wex_addon_dev_python/workdir/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCe
|
|
|
60
60
|
wexample_wex_addon_dev_python/workdir/__pycache__/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
61
61
|
wexample_wex_addon_dev_python/workdir/mixin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
62
62
|
wexample_wex_addon_dev_python/workdir/mixin/with_profiling_python_workdir_mixin.py,sha256=rWf_AMq4YM_vvKYZiXyhFeAz2xg0KMt_u-1FJACtvjc,3042
|
|
63
|
-
wexample_wex_addon_dev_python/workdir/python_package_workdir.py,sha256=
|
|
63
|
+
wexample_wex_addon_dev_python/workdir/python_package_workdir.py,sha256=MeTw4C6i3ug8g9BB0D1SjW8-VkRFD08TYhrrkW6LFD4,20127
|
|
64
64
|
wexample_wex_addon_dev_python/workdir/python_packages_suite_workdir.py,sha256=ICHHewLpsXiheYzGDEahphBryH98ZVezWzSAy6A5w5I,2874
|
|
65
|
-
wexample_wex_addon_dev_python/workdir/python_workdir.py,sha256=
|
|
66
|
-
wexample_wex_addon_dev_python-7.
|
|
65
|
+
wexample_wex_addon_dev_python/workdir/python_workdir.py,sha256=BCFARcJAAU8pidcB_3m4OIgIC0nmWYvwBW6FBT25HsM,19154
|
|
66
|
+
wexample_wex_addon_dev_python-7.8.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|