bisos.capability 0.24__tar.gz → 0.26__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.
- {bisos_capability-0.24 → bisos_capability-0.26}/PKG-INFO +11 -1
- {bisos_capability-0.24 → bisos_capability-0.26}/README.rst +10 -0
- {bisos_capability-0.24 → bisos_capability-0.26}/_description.org +8 -0
- {bisos_capability-0.24 → bisos_capability-0.26}/bisos/capability/cbmProc_seedInfo.py +5 -3
- {bisos_capability-0.24 → bisos_capability-0.26}/bisos/capability/sysCbmManage_csu.py +21 -3
- {bisos_capability-0.24 → bisos_capability-0.26}/bisos.capability.egg-info/PKG-INFO +11 -1
- {bisos_capability-0.24 → bisos_capability-0.26}/setup.py +2 -2
- {bisos_capability-0.24 → bisos_capability-0.26}/bin/capMaterializationDispatch.cs +0 -0
- {bisos_capability-0.24 → bisos_capability-0.26}/bin/cba-sysd.cs +0 -0
- {bisos_capability-0.24 → bisos_capability-0.26}/bin/cbm-materialize-cbs.cs +0 -0
- {bisos_capability-0.24 → bisos_capability-0.26}/bin/cbmProc-seed.cs +0 -0
- {bisos_capability-0.24 → bisos_capability-0.26}/bin/sysCbmManage.cs +0 -0
- {bisos_capability-0.24 → bisos_capability-0.26}/bisos/__init__.py +0 -0
- {bisos_capability-0.24 → bisos_capability-0.26}/bisos/capability/__init__.py +0 -0
- {bisos_capability-0.24 → bisos_capability-0.26}/bisos/capability/cba_assemble.py +0 -0
- {bisos_capability-0.24 → bisos_capability-0.26}/bisos/capability/cba_csu.py +0 -0
- {bisos_capability-0.24 → bisos_capability-0.26}/bisos/capability/cba_seed.py +0 -0
- {bisos_capability-0.24 → bisos_capability-0.26}/bisos/capability/cba_sysd_csu.py +0 -0
- {bisos_capability-0.24 → bisos_capability-0.26}/bisos/capability/cba_sysd_seed.py +0 -0
- {bisos_capability-0.24 → bisos_capability-0.26}/bisos/capability/cbmProc_csu.py +0 -0
- {bisos_capability-0.24 → bisos_capability-0.26}/bisos/capability/cbmProc_seed.py +0 -0
- {bisos_capability-0.24 → bisos_capability-0.26}/bisos/capability/cbm_csu.py +0 -0
- {bisos_capability-0.24 → bisos_capability-0.26}/bisos/capability/materializationDispatch_csu.py +0 -0
- {bisos_capability-0.24 → bisos_capability-0.26}/bisos.capability.egg-info/SOURCES.txt +0 -0
- {bisos_capability-0.24 → bisos_capability-0.26}/bisos.capability.egg-info/dependency_links.txt +0 -0
- {bisos_capability-0.24 → bisos_capability-0.26}/bisos.capability.egg-info/not-zip-safe +0 -0
- {bisos_capability-0.24 → bisos_capability-0.26}/bisos.capability.egg-info/requires.txt +0 -0
- {bisos_capability-0.24 → bisos_capability-0.26}/bisos.capability.egg-info/top_level.txt +0 -0
- {bisos_capability-0.24 → bisos_capability-0.26}/lh-agpl3-LICENSE.txt +0 -0
- {bisos_capability-0.24 → bisos_capability-0.26}/pyproject.toml +0 -0
- {bisos_capability-0.24 → bisos_capability-0.26}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: bisos.capability
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.26
|
|
4
4
|
Summary: bisos.capability: BISOS Capabilities Bundles -- Abstraction, Specification and Materialization
|
|
5
5
|
Author: Mohsen Banan
|
|
6
6
|
Author-email: libre@mohsen.1.banan.byname.net
|
|
@@ -115,6 +115,16 @@ CBM machinery (additive, non-invasive to the above):
|
|
|
115
115
|
- ``cbmProc_csu.py`` — ``cbm_*`` Cmnd classes + ``_dispatchCbs()``
|
|
116
116
|
helper
|
|
117
117
|
- ``bin/cbmProc-seed.cs`` — the CBM-aware seed CSXU
|
|
118
|
+
- ``sysCbmManage_csu.py``, ``bin/sysCbmManage.cs`` —
|
|
119
|
+
``fullyMaterialize``: ``cbm_status`` then ``cbm_materialize`` over
|
|
120
|
+
the platform's tree — ``collective/hereWeb``, then the ``pals`` realm
|
|
121
|
+
(``sys/cbm/pals/<palsBxo>/<cbm>/``, planted by bisos.pals's
|
|
122
|
+
``palsOfSys.cs``) when it has a ``ftoBranchProc.spcs``
|
|
123
|
+
|
|
124
|
+
An explicit ``cbsSpec`` path is used as planted, not resolved: a CBS
|
|
125
|
+
that is a symlink to a generic, spread-planted file (a PALS site's
|
|
126
|
+
``cbm/pals-cbs.spcs``) runs by its own path, which is how it finds its
|
|
127
|
+
parameters.
|
|
118
128
|
|
|
119
129
|
Canonical exemplar
|
|
120
130
|
------------------
|
|
@@ -79,6 +79,16 @@ CBM machinery (additive, non-invasive to the above):
|
|
|
79
79
|
- ``cbmProc_csu.py`` — ``cbm_*`` Cmnd classes + ``_dispatchCbs()``
|
|
80
80
|
helper
|
|
81
81
|
- ``bin/cbmProc-seed.cs`` — the CBM-aware seed CSXU
|
|
82
|
+
- ``sysCbmManage_csu.py``, ``bin/sysCbmManage.cs`` —
|
|
83
|
+
``fullyMaterialize``: ``cbm_status`` then ``cbm_materialize`` over
|
|
84
|
+
the platform's tree — ``collective/hereWeb``, then the ``pals`` realm
|
|
85
|
+
(``sys/cbm/pals/<palsBxo>/<cbm>/``, planted by bisos.pals's
|
|
86
|
+
``palsOfSys.cs``) when it has a ``ftoBranchProc.spcs``
|
|
87
|
+
|
|
88
|
+
An explicit ``cbsSpec`` path is used as planted, not resolved: a CBS
|
|
89
|
+
that is a symlink to a generic, spread-planted file (a PALS site's
|
|
90
|
+
``cbm/pals-cbs.spcs``) runs by its own path, which is how it finds its
|
|
91
|
+
parameters.
|
|
82
92
|
|
|
83
93
|
Canonical exemplar
|
|
84
94
|
------------------
|
|
@@ -71,6 +71,14 @@ CBM machinery (additive, non-invasive to the above):
|
|
|
71
71
|
- =cbmProc_seed.py= --- atexit registrar for =cbmProc-seed.cs=
|
|
72
72
|
- =cbmProc_csu.py= --- =cbm_*= Cmnd classes + =_dispatchCbs()= helper
|
|
73
73
|
- =bin/cbmProc-seed.cs= --- the CBM-aware seed CSXU
|
|
74
|
+
- =sysCbmManage_csu.py=, =bin/sysCbmManage.cs= --- =fullyMaterialize=: =cbm_status= then
|
|
75
|
+
=cbm_materialize= over the platform's tree --- =collective/hereWeb=, then the =pals= realm
|
|
76
|
+
(=sys/cbm/pals/<palsBxo>/<cbm>/=, planted by bisos.pals's =palsOfSys.cs=) when it has a
|
|
77
|
+
=ftoBranchProc.spcs=
|
|
78
|
+
|
|
79
|
+
An explicit =cbsSpec= path is used as planted, not resolved: a CBS that is a symlink to a generic,
|
|
80
|
+
spread-planted file (a PALS site's =cbm/pals-cbs.spcs=) runs by its own path, which is how it finds its
|
|
81
|
+
parameters.
|
|
74
82
|
|
|
75
83
|
** Canonical exemplar
|
|
76
84
|
|
|
@@ -170,8 +170,10 @@ def resolveCbsSpec(cbsSpec: str | None = None) -> pathlib.Path:
|
|
|
170
170
|
|
|
171
171
|
if '/' in cbsSpec or cbsSpec.startswith('~'):
|
|
172
172
|
# Explicit path form (absolute or relative-with-slash or ~).
|
|
173
|
-
# Expand ~ and
|
|
174
|
-
|
|
173
|
+
# Expand ~ and make absolute, but do NOT follow symlinks: a spread-planted CBS (e.g. a PALS's
|
|
174
|
+
# cbm/pals-cbs.spcs -> bisos.pals's generic one) takes its parameters from where it is planted,
|
|
175
|
+
# so it must run by the path it is planted at. Require it to exist.
|
|
176
|
+
resolved = pathlib.Path(cbsSpec).expanduser().absolute()
|
|
175
177
|
if not resolved.exists():
|
|
176
178
|
raise ValueError(
|
|
177
179
|
f"cbsSpec {cbsSpec!r} resolved to {resolved} which does not exist."
|
|
@@ -185,7 +187,7 @@ def resolveCbsSpec(cbsSpec: str | None = None) -> pathlib.Path:
|
|
|
185
187
|
f"cbsSpec {cbsSpec!r} not found on PATH. Either add its directory "
|
|
186
188
|
f"to PATH or use an absolute path in setup(cbsSpec=...)."
|
|
187
189
|
)
|
|
188
|
-
return pathlib.Path(onPath).
|
|
190
|
+
return pathlib.Path(onPath).absolute() # not resolved: see the explicit-path form above
|
|
189
191
|
|
|
190
192
|
|
|
191
193
|
###############################################################################
|
|
@@ -81,6 +81,7 @@ from bisos.common import csParam
|
|
|
81
81
|
import collections
|
|
82
82
|
####+END:
|
|
83
83
|
|
|
84
|
+
import os
|
|
84
85
|
import subprocess
|
|
85
86
|
# import time
|
|
86
87
|
|
|
@@ -218,18 +219,35 @@ This pattern is called listOfArgs subject to Action.
|
|
|
218
219
|
:
|
|
219
220
|
#+end_org """)
|
|
220
221
|
|
|
221
|
-
|
|
222
|
+
# NOTYET Problem, When it walk down to hereWeb -- it does not respect orderedBranches
|
|
223
|
+
# walkRoot = "/bisos/platform/sys/cbm/collective"
|
|
224
|
+
|
|
225
|
+
# Short Term Workaround
|
|
226
|
+
walkRoot = "/bisos/platform/sys/cbm/collective/hereWeb"
|
|
227
|
+
|
|
228
|
+
if b.subProc.WOpW(invedBy=self, cd=walkRoot, log=1).bash(
|
|
222
229
|
f"""echo Capability Materialization Started in $(pwd) at $(date)""",
|
|
223
230
|
).isProblematic(): return(b_io.eh.badOutcome(cmndOutcome))
|
|
224
231
|
|
|
225
|
-
if b.subProc.WOpW(invedBy=self, cd=
|
|
232
|
+
if b.subProc.WOpW(invedBy=self, cd=walkRoot, log=1).bash(
|
|
226
233
|
f"""ftoBranchProc.spcs -i fto_forwardToLeaves --cmndName='cbm_status'""",
|
|
227
234
|
).isProblematic(): return(b_io.eh.badOutcome(cmndOutcome))
|
|
228
235
|
|
|
229
|
-
if b.subProc.WOpW(invedBy=self, cd=
|
|
236
|
+
if b.subProc.WOpW(invedBy=self, cd=walkRoot, log=1).bash(
|
|
230
237
|
f"""ftoBranchProc.spcs -i fto_forwardToLeaves --cmndName='cbm_materialize'""",
|
|
231
238
|
).isProblematic(): return(b_io.eh.badOutcome(cmndOutcome))
|
|
232
239
|
|
|
240
|
+
# Then the pals realm: the CBM leaves bisos.pals plants from each PALS-BXO's declarations
|
|
241
|
+
# (palsOfSys.cs -i palsLeavesPlant). After collective/hereWeb, which brings nginx and Node; so
|
|
242
|
+
# platform.here's snapshot, taken last in hereWeb, shows the pals leaves' previous outcome.
|
|
243
|
+
# ./ftoBranchProc.spcs: this realm's own branch file, not one found on PATH.
|
|
244
|
+
palsRoot = "/bisos/platform/sys/cbm/pals"
|
|
245
|
+
if os.path.isfile(os.path.join(palsRoot, "ftoBranchProc.spcs")):
|
|
246
|
+
for cmndName in ('cbm_status', 'cbm_materialize'):
|
|
247
|
+
if b.subProc.WOpW(invedBy=self, cd=palsRoot, log=1).bash(
|
|
248
|
+
f"""./ftoBranchProc.spcs -i fto_forwardToLeaves --cmndName='{cmndName}'""",
|
|
249
|
+
).isProblematic(): return(b_io.eh.badOutcome(cmndOutcome))
|
|
250
|
+
|
|
233
251
|
return cmndOutcome.set(
|
|
234
252
|
opError=b.op.OpError.Success,
|
|
235
253
|
opResults=None,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: bisos.capability
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.26
|
|
4
4
|
Summary: bisos.capability: BISOS Capabilities Bundles -- Abstraction, Specification and Materialization
|
|
5
5
|
Author: Mohsen Banan
|
|
6
6
|
Author-email: libre@mohsen.1.banan.byname.net
|
|
@@ -115,6 +115,16 @@ CBM machinery (additive, non-invasive to the above):
|
|
|
115
115
|
- ``cbmProc_csu.py`` — ``cbm_*`` Cmnd classes + ``_dispatchCbs()``
|
|
116
116
|
helper
|
|
117
117
|
- ``bin/cbmProc-seed.cs`` — the CBM-aware seed CSXU
|
|
118
|
+
- ``sysCbmManage_csu.py``, ``bin/sysCbmManage.cs`` —
|
|
119
|
+
``fullyMaterialize``: ``cbm_status`` then ``cbm_materialize`` over
|
|
120
|
+
the platform's tree — ``collective/hereWeb``, then the ``pals`` realm
|
|
121
|
+
(``sys/cbm/pals/<palsBxo>/<cbm>/``, planted by bisos.pals's
|
|
122
|
+
``palsOfSys.cs``) when it has a ``ftoBranchProc.spcs``
|
|
123
|
+
|
|
124
|
+
An explicit ``cbsSpec`` path is used as planted, not resolved: a CBS
|
|
125
|
+
that is a symlink to a generic, spread-planted file (a PALS site's
|
|
126
|
+
``cbm/pals-cbs.spcs``) runs by its own path, which is how it finds its
|
|
127
|
+
parameters.
|
|
118
128
|
|
|
119
129
|
Canonical exemplar
|
|
120
130
|
------------------
|
|
@@ -43,9 +43,9 @@ def longDescription():
|
|
|
43
43
|
# b:py3:pypi:setup/version Arguments :forSys t :forPyPi t :constant "666"
|
|
44
44
|
####+BEGIN: b:py3:pypi:setup/version :comment "Auto Detected"
|
|
45
45
|
|
|
46
|
-
# ./pypiUploadVer EXISTED -- forPypiVersion=0.
|
|
46
|
+
# ./pypiUploadVer EXISTED -- forPypiVersion=0.26 -- forLocalVersion=0.1 -- constant=NA
|
|
47
47
|
def pkgVersion():
|
|
48
|
-
return '0.
|
|
48
|
+
return '0.26'
|
|
49
49
|
|
|
50
50
|
####+END:
|
|
51
51
|
|
|
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
|
{bisos_capability-0.24 → bisos_capability-0.26}/bisos/capability/materializationDispatch_csu.py
RENAMED
|
File without changes
|
|
File without changes
|
{bisos_capability-0.24 → bisos_capability-0.26}/bisos.capability.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|