nshutils 0.19.0__py3-none-any.whl → 0.19.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.
nshutils/__init__.py
CHANGED
@@ -13,3 +13,17 @@ from .snoop import snoop as snoop
|
|
13
13
|
from .typecheck import tassert as tassert
|
14
14
|
from .typecheck import typecheck_modules as typecheck_modules
|
15
15
|
from .typecheck import typecheck_this_module as typecheck_this_module
|
16
|
+
|
17
|
+
try:
|
18
|
+
from importlib.metadata import PackageNotFoundError, version
|
19
|
+
except ImportError:
|
20
|
+
# For Python <3.8
|
21
|
+
from importlib_metadata import ( # pyright: ignore[reportMissingImports]
|
22
|
+
PackageNotFoundError,
|
23
|
+
version,
|
24
|
+
)
|
25
|
+
|
26
|
+
try:
|
27
|
+
__version__ = version(__name__)
|
28
|
+
except PackageNotFoundError:
|
29
|
+
__version__ = "unknown"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
nshutils/__init__.py,sha256=
|
1
|
+
nshutils/__init__.py,sha256=9RJO-Bt7uN-KHf7Yi9G7s_5AL8n-dwF2SClNMNQpiQE,985
|
2
2
|
nshutils/actsave/__init__.py,sha256=hAVsog9d1g3_rQN1TRslrl6sK1PhCGbjy8PPUAmJI58,203
|
3
3
|
nshutils/actsave/_loader.py,sha256=mof3HezUNvLliz7macstX6ewXW05L0Mtv3zJyrbmImg,4640
|
4
4
|
nshutils/actsave/_saver.py,sha256=Kor7PEk__noRDEAfCZ_I4vxql5UfWSIQIQ1OmW2RRTI,10290
|
@@ -7,6 +7,6 @@ nshutils/display.py,sha256=Ge63yllx7gi-MKL3mKQeQ5doql_nj56-o5aoTVmusDg,1473
|
|
7
7
|
nshutils/logging.py,sha256=-6IB0GTDDS8ue1H2tzkv_OLf4bZVN1ywL08TlDZWbtQ,3737
|
8
8
|
nshutils/snoop.py,sha256=7d7_Q5sJmINL1J29wcnxEvpV95zvZYNoVn5frCq-rww,7393
|
9
9
|
nshutils/typecheck.py,sha256=UOUYfa72wTmc-a7VQw52tKFb4U10xq1qcZuEWc2sAd8,5588
|
10
|
-
nshutils-0.19.
|
11
|
-
nshutils-0.19.
|
12
|
-
nshutils-0.19.
|
10
|
+
nshutils-0.19.1.dist-info/METADATA,sha256=nxPB1rd9Lv_CnL03BAMWGvBnRXYZ4VLsFTYpyAlhSAY,4168
|
11
|
+
nshutils-0.19.1.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
12
|
+
nshutils-0.19.1.dist-info/RECORD,,
|