ebs-linuxnode-core 3.3.3__tar.gz → 3.3.5__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.
- {ebs-linuxnode-core-3.3.3/ebs_linuxnode_core.egg-info → ebs-linuxnode-core-3.3.5}/PKG-INFO +1 -1
- {ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/ebs/linuxnode/core/config.py +11 -4
- ebs-linuxnode-core-3.3.5/ebs/linuxnode/db/__init__.py +0 -0
- {ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5/ebs_linuxnode_core.egg-info}/PKG-INFO +1 -1
- {ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/ebs_linuxnode_core.egg-info/scm_version.json +2 -2
- ebs-linuxnode-core-3.3.3/ebs/linuxnode/core/__init__.py +0 -10
- {ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/.gitignore +0 -0
- {ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/ebs/__init__.py +0 -0
- {ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/ebs/linuxnode/__init__.py +0 -0
- {ebs-linuxnode-core-3.3.3/ebs/linuxnode/db → ebs-linuxnode-core-3.3.5/ebs/linuxnode/core}/__init__.py +0 -0
- {ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/ebs/linuxnode/core/background.py +0 -0
- {ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/ebs/linuxnode/core/basemixin.py +0 -0
- {ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/ebs/linuxnode/core/basenode.py +0 -0
- {ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/ebs/linuxnode/core/busy.py +0 -0
- {ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/ebs/linuxnode/core/constants.py +0 -0
- {ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/ebs/linuxnode/core/http.py +0 -0
- {ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/ebs/linuxnode/core/log.py +0 -0
- {ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/ebs/linuxnode/core/nodeid.py +0 -0
- {ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/ebs/linuxnode/core/resources.py +0 -0
- {ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/ebs/linuxnode/core/shell.py +0 -0
- {ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/ebs/linuxnode/core/tempfs.py +0 -0
- {ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/ebs/linuxnode/db/sequence.py +0 -0
- {ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/ebs_linuxnode_core.egg-info/SOURCES.txt +0 -0
- {ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/ebs_linuxnode_core.egg-info/dependency_links.txt +0 -0
- {ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/ebs_linuxnode_core.egg-info/requires.txt +0 -0
- {ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/ebs_linuxnode_core.egg-info/scm_file_list.json +0 -0
- {ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/ebs_linuxnode_core.egg-info/top_level.txt +0 -0
- {ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/example.py +0 -0
- {ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/setup.cfg +0 -0
- {ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/setup.py +0 -0
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
import os
|
|
11
11
|
import shutil
|
|
12
|
-
import
|
|
12
|
+
from importlib.metadata import version, PackageNotFoundError
|
|
13
13
|
|
|
14
14
|
from pathlib import Path
|
|
15
15
|
from six.moves.configparser import ConfigParser
|
|
@@ -23,6 +23,13 @@ ItemSpec = namedtuple('ItemSpec', ["item_type", "fallback", "read_only", "masked
|
|
|
23
23
|
ElementSpec = namedtuple('ElementSpec', ['section', 'item', 'item_spec'], defaults=[ItemSpec()])
|
|
24
24
|
|
|
25
25
|
|
|
26
|
+
def get_package_version(package_name):
|
|
27
|
+
try:
|
|
28
|
+
return version(package_name)
|
|
29
|
+
except PackageNotFoundError:
|
|
30
|
+
return None
|
|
31
|
+
|
|
32
|
+
|
|
26
33
|
class IoTNodeConfig(object):
|
|
27
34
|
def __init__(self, appname=None, packagename=None):
|
|
28
35
|
self._elements = {}
|
|
@@ -88,13 +95,13 @@ class IoTNodeConfig(object):
|
|
|
88
95
|
|
|
89
96
|
@property
|
|
90
97
|
def linuxnode_core_version(self):
|
|
91
|
-
return
|
|
98
|
+
return get_package_version("ebs-linuxnode-core")
|
|
92
99
|
|
|
93
100
|
@property
|
|
94
101
|
def app_version(self):
|
|
95
102
|
if not self._packagename:
|
|
96
|
-
return
|
|
97
|
-
return
|
|
103
|
+
return None
|
|
104
|
+
return get_package_version(self._packagename)
|
|
98
105
|
|
|
99
106
|
def _write_config(self):
|
|
100
107
|
with open(self._config_file, 'w') as configfile:
|
|
File without changes
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
__author__ = 'Chintalagiri Shashank <shashank.chintalagiri@gmail.com>'
|
|
3
|
-
|
|
4
|
-
from pkg_resources import get_distribution, DistributionNotFound
|
|
5
|
-
try:
|
|
6
|
-
__version__ = get_distribution('ebs-linuxnode-core').version
|
|
7
|
-
except DistributionNotFound:
|
|
8
|
-
# package is not installed
|
|
9
|
-
from setuptools_scm import get_version
|
|
10
|
-
__version__ = get_version(root='../../../', relative_to=__file__)
|
|
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
|
|
File without changes
|
{ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/ebs_linuxnode_core.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/ebs_linuxnode_core.egg-info/requires.txt
RENAMED
|
File without changes
|
{ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/ebs_linuxnode_core.egg-info/scm_file_list.json
RENAMED
|
File without changes
|
{ebs-linuxnode-core-3.3.3 → ebs-linuxnode-core-3.3.5}/ebs_linuxnode_core.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|