plantstar-shared 2.0.3.0.2.18__tar.gz → 2.0.3.0.2.20__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.
- {plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/PKG-INFO +1 -1
- {plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/plantstar_shared/syscon_json.py +7 -4
- {plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/plantstar_shared.egg-info/PKG-INFO +1 -1
- {plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/setup.py +1 -1
- {plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/README.md +0 -0
- {plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/plantstar_shared/DataCollectionModuleProcessNames.py +0 -0
- {plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/plantstar_shared/HuskyInterfacePacketTypes.py +0 -0
- {plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/plantstar_shared/MockRawDataProcessor.py +0 -0
- {plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/plantstar_shared/RawDataProcessorInterfaceActions.py +0 -0
- {plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/plantstar_shared/SysconType.py +0 -0
- {plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/plantstar_shared/__init__.py +0 -0
- {plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/plantstar_shared/add_size_onto_string_and_return.py +0 -0
- {plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/plantstar_shared/api_types.py +0 -0
- {plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/plantstar_shared/convert_bytes_to_object.py +0 -0
- {plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/plantstar_shared/convert_object_to_bytes.py +0 -0
- {plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/plantstar_shared/errors.py +0 -0
- {plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/plantstar_shared/global_definitions.py +0 -0
- {plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/plantstar_shared/is_valid_signed_string.py +0 -0
- {plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/plantstar_shared/obtain_raw_data_processor_function_for_action_name.py +0 -0
- {plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/plantstar_shared/syscon_image_field.py +0 -0
- {plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/plantstar_shared/tcp_socket_utils.py +0 -0
- {plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/plantstar_shared.egg-info/SOURCES.txt +0 -0
- {plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/plantstar_shared.egg-info/dependency_links.txt +0 -0
- {plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/plantstar_shared.egg-info/requires.txt +0 -0
- {plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/plantstar_shared.egg-info/top_level.txt +0 -0
- {plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/setup.cfg +0 -0
{plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/plantstar_shared/syscon_json.py
RENAMED
@@ -91,10 +91,13 @@ class SysconDecoder(json.JSONDecoder):
|
|
91
91
|
if dictionary["tzinfo"] is None or dictionary["tzinfo"] in ["None", "tzlocal()", "tzutc()"]:
|
92
92
|
dictionary["tzinfo"] = "UTC"
|
93
93
|
else:
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
94
|
+
if type_name == "datetime":
|
95
|
+
tzinfo_to_localize = pytz.timezone(dictionary["tzinfo"])
|
96
|
+
dictionary.pop('tzinfo')
|
97
|
+
localized_datetime = tzinfo_to_localize.localize(datetime.datetime(**dictionary))
|
98
|
+
return localized_datetime
|
99
|
+
|
100
|
+
dictionary["tzinfo"] = pytz.timezone(dictionary["tzinfo"])
|
98
101
|
|
99
102
|
if type_name == "datetime":
|
100
103
|
return datetime.datetime(**dictionary)
|
@@ -7,7 +7,7 @@ setuptools.setup(
|
|
7
7
|
name="plantstar-shared",
|
8
8
|
# MAJOR_MILESTONE_VERSION.MINOR_MILESTONE_VERSION.MAJOR_VERSION.MINOR_VERSION.HOTFIX_VERSION.SUBVERSION
|
9
9
|
# The main version should stay as v2.0.3.0.x until we have passed that in the plantstar_apu/plantstar_dcm projects
|
10
|
-
version="2.0.3.0.2.
|
10
|
+
version="2.0.3.0.2.20",
|
11
11
|
author="SYSCON International",
|
12
12
|
author_email="dev@syscon-intl.com",
|
13
13
|
description="Shared code used in plantstar_apu and plantstar_dcm",
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/plantstar_shared/SysconType.py
RENAMED
File without changes
|
{plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/plantstar_shared/__init__.py
RENAMED
File without changes
|
File without changes
|
{plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/plantstar_shared/api_types.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{plantstar_shared-2.0.3.0.2.18 → plantstar_shared-2.0.3.0.2.20}/plantstar_shared/tcp_socket_utils.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|