mirror of
https://github.com/thingsboard/thingsboard-gateway
synced 2025-10-26 22:31:42 +08:00
5
setup.py
5
setup.py
@@ -17,13 +17,12 @@
|
||||
from setuptools import setup
|
||||
from os import path
|
||||
|
||||
from thingsboard_gateway.gateway.constants import VERSION
|
||||
|
||||
|
||||
this_directory = path.abspath(path.dirname(__file__))
|
||||
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
|
||||
long_description = f.read()
|
||||
|
||||
VERSION = "3.2"
|
||||
|
||||
setup(
|
||||
version=VERSION,
|
||||
name="thingsboard-gateway",
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
VERSION = "3.2"
|
||||
|
||||
# Service constants
|
||||
|
||||
|
||||
@@ -23,10 +23,8 @@ from pkg_resources import get_distribution
|
||||
from requests import ConnectionError, post
|
||||
from simplejson import loads
|
||||
|
||||
from thingsboard_gateway.gateway.constants import VERSION
|
||||
from thingsboard_gateway.tb_utility.tb_utility import TBUtility
|
||||
|
||||
|
||||
log = getLogger("service")
|
||||
|
||||
UPDATE_SERVICE_BASE_URL = "https://updates.thingsboard.io"
|
||||
@@ -40,7 +38,7 @@ class TBUpdater(Thread):
|
||||
self.__version = {"current_version": get_distribution('thingsboard_gateway').version,
|
||||
"latest_version": get_distribution('thingsboard_gateway').version}
|
||||
except DistributionNotFound:
|
||||
self.__version = {"current_version": f"v{VERSION}", "latest_version": f"v{VERSION}"}
|
||||
self.__version = {"current_version": "0", "latest_version": "0"}
|
||||
|
||||
self.__instance_id = str(uuid1())
|
||||
self.__platform = system()
|
||||
|
||||
Reference in New Issue
Block a user