simo 2.3.1__py3-none-any.whl → 2.3.3__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.
Potentially problematic release.
This version of simo might be problematic. Click here for more details.
- simo/core/management/commands/on_http_start.py +1 -2
- simo/core/management/update.py +0 -19
- {simo-2.3.1.dist-info → simo-2.3.3.dist-info}/METADATA +2 -2
- {simo-2.3.1.dist-info → simo-2.3.3.dist-info}/RECORD +8 -8
- {simo-2.3.1.dist-info → simo-2.3.3.dist-info}/LICENSE.md +0 -0
- {simo-2.3.1.dist-info → simo-2.3.3.dist-info}/WHEEL +0 -0
- {simo-2.3.1.dist-info → simo-2.3.3.dist-info}/entry_points.txt +0 -0
- {simo-2.3.1.dist-info → simo-2.3.3.dist-info}/top_level.txt +0 -0
|
@@ -74,11 +74,10 @@ def update_auto_update():
|
|
|
74
74
|
cron.write()
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
|
|
79
77
|
class Command(BaseCommand):
|
|
80
78
|
|
|
81
79
|
def handle(self, *args, **options):
|
|
82
80
|
prepare_mosquitto()
|
|
83
81
|
from simo.core.tasks import maybe_update_to_latest
|
|
84
82
|
maybe_update_to_latest.delay()
|
|
83
|
+
update_auto_update()
|
simo/core/management/update.py
CHANGED
|
@@ -8,23 +8,6 @@ import pkg_resources
|
|
|
8
8
|
HUB_DIR = '/etc/SIMO/hub'
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
def install_dependencies():
|
|
12
|
-
|
|
13
|
-
status = subprocess.call(
|
|
14
|
-
'apt install postgresql libpq-dev postgresql-client '
|
|
15
|
-
'postgresql-client-common python3-pip redis-server supervisor '
|
|
16
|
-
'mosquitto libopenjp2-7 libtiff5 pkg-config libcairo2-dev '
|
|
17
|
-
'libgirepository1.0-dev libcairo2 libudev-dev gdal-bin net-tools '
|
|
18
|
-
'nginx postgis openvpn ffmpeg libsm6 libxext6 ssh keychain -y',
|
|
19
|
-
shell=True
|
|
20
|
-
)
|
|
21
|
-
if status != 0:
|
|
22
|
-
print("Unable install required packages.")
|
|
23
|
-
return
|
|
24
|
-
|
|
25
|
-
return True
|
|
26
|
-
|
|
27
|
-
|
|
28
11
|
def perform_update():
|
|
29
12
|
|
|
30
13
|
proc = subprocess.Popen(
|
|
@@ -35,8 +18,6 @@ def perform_update():
|
|
|
35
18
|
if proc.returncode:
|
|
36
19
|
raise Exception(err.decode())
|
|
37
20
|
|
|
38
|
-
install_dependencies()
|
|
39
|
-
|
|
40
21
|
proc = subprocess.Popen(
|
|
41
22
|
[os.path.join(HUB_DIR, 'manage.py'), 'migrate'],
|
|
42
23
|
cwd=HUB_DIR,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: simo
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.3
|
|
4
4
|
Summary: Smart Home on Steroids!
|
|
5
5
|
Author-email: Simanas Venčkauskas <simanas@simo.io>
|
|
6
6
|
Project-URL: Homepage, https://simo.io
|
|
@@ -33,7 +33,7 @@ Requires-Dist: itsdangerous ==2.0.1
|
|
|
33
33
|
Requires-Dist: redis ==3.5.3
|
|
34
34
|
Requires-Dist: django-redis ==4.12.1
|
|
35
35
|
Requires-Dist: webservices ==0.7
|
|
36
|
-
Requires-Dist: numpy
|
|
36
|
+
Requires-Dist: numpy >=1.24.4
|
|
37
37
|
Requires-Dist: geopy ==2.2.0
|
|
38
38
|
Requires-Dist: requests ==2.26.0
|
|
39
39
|
Requires-Dist: suntime ==1.2.5
|
|
@@ -127,7 +127,7 @@ simo/core/drf_braces/tests/serializers/test_enforce_validation_serializer.py,sha
|
|
|
127
127
|
simo/core/drf_braces/tests/serializers/test_form_serializer.py,sha256=IE2xQ1SzhSsOy2BFsBYw_Po-ujKBgIuNoTRxCzhyilE,12995
|
|
128
128
|
simo/core/drf_braces/tests/serializers/test_swapping.py,sha256=o-B5YV5HDxHCVrXYGODeF7lB3rPDGtafNgClx97d6w4,1220
|
|
129
129
|
simo/core/management/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
130
|
-
simo/core/management/update.py,sha256=
|
|
130
|
+
simo/core/management/update.py,sha256=Fj7-Zm4kvngPAE2NaUG21GOQfg86lKVtW79ZRH2sZD8,1795
|
|
131
131
|
simo/core/management/__pycache__/__init__.cpython-38.pyc,sha256=Ptf1WzljXMt3wP1tzOy6q3JfLERYDs66wSHBVdrzjHg,169
|
|
132
132
|
simo/core/management/_hub_template/hub/asgi.py,sha256=ElN_fdeSkf0Ysa7pS9rJVmZ1HmLhFxb8jFaMLqe1220,126
|
|
133
133
|
simo/core/management/_hub_template/hub/celeryc.py,sha256=3ksDXftIZKJ4Cq9WNKJERdZdQlDEnjTQXycweRFmsSQ,27
|
|
@@ -139,7 +139,7 @@ simo/core/management/_hub_template/hub/urls.py,sha256=Ydm-1BkYAzWeEF-MKSDIFf-7aE
|
|
|
139
139
|
simo/core/management/_hub_template/hub/wsgi.py,sha256=Lo-huLHnMDTxSmMBOodVFMWBls9poddrV2KRzXU0xGo,280
|
|
140
140
|
simo/core/management/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
141
141
|
simo/core/management/commands/gateways_manager.py,sha256=a_JmUG1SPJhbhPh5QdViCT5DL0YvKQH-KsO8ptLhB34,6970
|
|
142
|
-
simo/core/management/commands/on_http_start.py,sha256=
|
|
142
|
+
simo/core/management/commands/on_http_start.py,sha256=A2V40pyGY7AfONhtnxiGATOkqd0i9FUvRRxkwyAJF9k,2252
|
|
143
143
|
simo/core/management/commands/run_gateway.py,sha256=bp0FQQoBeOSoxjHCCMicDL1fxPZZGyLgnq2QKht3bJo,645
|
|
144
144
|
simo/core/management/commands/__pycache__/__init__.cpython-38.pyc,sha256=WKpfZZpAB9D7U4X6oWQIrU_H-6rUmq8Gl9fj9XaY2fw,178
|
|
145
145
|
simo/core/management/commands/__pycache__/gateways_manager.cpython-38.pyc,sha256=pgEJdchhOcqKCpjdRMeF0_QKJfMmfSkl_W4TUwcgS9o,6031
|
|
@@ -10507,9 +10507,9 @@ simo/users/templates/invitations/expired_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCe
|
|
|
10507
10507
|
simo/users/templates/invitations/expired_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10508
10508
|
simo/users/templates/invitations/taken_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10509
10509
|
simo/users/templates/invitations/taken_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10510
|
-
simo-2.3.
|
|
10511
|
-
simo-2.3.
|
|
10512
|
-
simo-2.3.
|
|
10513
|
-
simo-2.3.
|
|
10514
|
-
simo-2.3.
|
|
10515
|
-
simo-2.3.
|
|
10510
|
+
simo-2.3.3.dist-info/LICENSE.md,sha256=M7wm1EmMGDtwPRdg7kW4d00h1uAXjKOT3HFScYQMeiE,34916
|
|
10511
|
+
simo-2.3.3.dist-info/METADATA,sha256=-X4gtBxN4Ya3_BaNUHV-0rHkW9fxwsMxiLC8le6PaSw,1878
|
|
10512
|
+
simo-2.3.3.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
10513
|
+
simo-2.3.3.dist-info/entry_points.txt,sha256=S9PwnUYmTSW7681GKDCxUbL0leRJIaRk6fDQIKgbZBA,135
|
|
10514
|
+
simo-2.3.3.dist-info/top_level.txt,sha256=GmS1hrAbpVqn9OWZh6UX82eIOdRLgYA82RG9fe8v4Rs,5
|
|
10515
|
+
simo-2.3.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|