pyhostvm 0.44.1__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.
pyhostvm/__init__.py
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"""pyhostvm, the name of pykeelhost before KeelHost (ymwang78/KeelHost#49): forwards to pykeelhost.
|
|
2
|
+
|
|
3
|
+
`import pyhostvm.tj010_start` and `from pyhostvm import tj010_start` give pykeelhost's module, the
|
|
4
|
+
very same object. importlib.util.find_spec("pyhostvm.tj010_start") finds it without importing it,
|
|
5
|
+
with pykeelhost's file as its origin, so that the files next to it (tj010.ptl) are found too.
|
|
6
|
+
"""
|
|
7
|
+
import importlib
|
|
8
|
+
import importlib.abc
|
|
9
|
+
import importlib.util
|
|
10
|
+
import sys
|
|
11
|
+
|
|
12
|
+
import pykeelhost
|
|
13
|
+
from pykeelhost import * # noqa: F401,F403
|
|
14
|
+
|
|
15
|
+
__version__ = pykeelhost.__version__
|
|
16
|
+
|
|
17
|
+
_OLD = __name__ + "."
|
|
18
|
+
_NEW = "pykeelhost."
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class _Forwarder(importlib.abc.MetaPathFinder, importlib.abc.Loader):
|
|
22
|
+
"""pyhostvm.<x> is pykeelhost.<x>."""
|
|
23
|
+
|
|
24
|
+
def find_spec(self, fullname, path=None, target=None):
|
|
25
|
+
if not fullname.startswith(_OLD):
|
|
26
|
+
return None
|
|
27
|
+
real = importlib.util.find_spec(_NEW + fullname[len(_OLD):])
|
|
28
|
+
if real is None:
|
|
29
|
+
return None
|
|
30
|
+
return importlib.util.spec_from_loader(fullname, self, origin=real.origin)
|
|
31
|
+
|
|
32
|
+
def create_module(self, spec):
|
|
33
|
+
return importlib.import_module(_NEW + spec.name[len(_OLD):])
|
|
34
|
+
|
|
35
|
+
def exec_module(self, module):
|
|
36
|
+
pass # pykeelhost's import ran it
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
if not any(isinstance(finder, _Forwarder) for finder in sys.meta_path):
|
|
40
|
+
sys.meta_path.insert(0, _Forwarder())
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pyhostvm
|
|
3
|
+
Version: 0.44.1
|
|
4
|
+
Summary: pyhostvm is now pykeelhost: this package installs pykeelhost and forwards to it
|
|
5
|
+
Author: Yongming Wang
|
|
6
|
+
Author-email: wangym@gmail.com
|
|
7
|
+
License: MIT
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
10
|
+
Classifier: Development Status :: 7 - Inactive
|
|
11
|
+
Requires-Python: >=3.8
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
Requires-Dist: pykeelhost==0.44.1
|
|
14
|
+
Dynamic: author
|
|
15
|
+
Dynamic: author-email
|
|
16
|
+
Dynamic: classifier
|
|
17
|
+
Dynamic: description
|
|
18
|
+
Dynamic: description-content-type
|
|
19
|
+
Dynamic: license
|
|
20
|
+
Dynamic: requires-dist
|
|
21
|
+
Dynamic: requires-python
|
|
22
|
+
Dynamic: summary
|
|
23
|
+
|
|
24
|
+
* pyhostvm is now pykeelhost
|
|
25
|
+
|
|
26
|
+
HostVM is now KeelHost (ymwang78/KeelHost#49), and its Python support library pykeelhost. This
|
|
27
|
+
package only installs pykeelhost and forwards to it: `import pyhostvm` and
|
|
28
|
+
`from pyhostvm import tj010_start` give pykeelhost's modules. It is kept for one major version;
|
|
29
|
+
new code imports pykeelhost.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
pyhostvm/__init__.py,sha256=1Tk7xERw4QHu7MY9m_MiBmJsqQT4AbdGWLpEdrjfb_A,1353
|
|
2
|
+
pyhostvm-0.44.1.dist-info/METADATA,sha256=LXOW62lDsA4T8zJkYBeUscE-h1UekmkBnOnlI2R7Pi4,977
|
|
3
|
+
pyhostvm-0.44.1.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
4
|
+
pyhostvm-0.44.1.dist-info/top_level.txt,sha256=ezoe9Mak4XeZpyEctSnFWH2aC13pUdF0EpAKuaZsUxk,9
|
|
5
|
+
pyhostvm-0.44.1.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pyhostvm
|