simplex 1.2.8__py3-none-any.whl → 1.2.9__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 simplex might be problematic. Click here for more details.
- simplex/deploy/push.py +10 -1
- simplex/simplex.py +0 -1
- {simplex-1.2.8.dist-info → simplex-1.2.9.dist-info}/METADATA +1 -1
- simplex-1.2.9.dist-info/RECORD +11 -0
- simplex-1.2.8.dist-info/RECORD +0 -11
- {simplex-1.2.8.dist-info → simplex-1.2.9.dist-info}/LICENSE +0 -0
- {simplex-1.2.8.dist-info → simplex-1.2.9.dist-info}/WHEEL +0 -0
- {simplex-1.2.8.dist-info → simplex-1.2.9.dist-info}/entry_points.txt +0 -0
- {simplex-1.2.8.dist-info → simplex-1.2.9.dist-info}/top_level.txt +0 -0
simplex/deploy/push.py
CHANGED
|
@@ -7,7 +7,6 @@ from dotenv import load_dotenv
|
|
|
7
7
|
import requests
|
|
8
8
|
from typing import Optional
|
|
9
9
|
from datetime import datetime, timedelta
|
|
10
|
-
load_dotenv() # This loads the .env file
|
|
11
10
|
|
|
12
11
|
S3_URL = "https://u3mvtbirxf.us-east-1.awsapprunner.com"
|
|
13
12
|
JOB_URL = "https://simplex--job-scheduler-app-handler.modal.run"
|
|
@@ -41,6 +40,11 @@ def create_archive(directory: str, config: dict) -> str:
|
|
|
41
40
|
|
|
42
41
|
def push_directory(directory: str):
|
|
43
42
|
"""Main function to handle parsing yaml and creating zip archive"""
|
|
43
|
+
# Load .env file from the target directory
|
|
44
|
+
env_path = Path(directory) / '.env'
|
|
45
|
+
if env_path.exists():
|
|
46
|
+
load_dotenv(env_path)
|
|
47
|
+
|
|
44
48
|
config = read_config(directory)
|
|
45
49
|
archive_path = create_archive(directory, config)
|
|
46
50
|
|
|
@@ -185,6 +189,11 @@ def create_job_immediately(project_name: str, s3_uri: str):
|
|
|
185
189
|
|
|
186
190
|
def run_directory(directory: str):
|
|
187
191
|
"""Run a directory immediately"""
|
|
192
|
+
# Load .env file from the target directory
|
|
193
|
+
env_path = Path(directory) / '.env'
|
|
194
|
+
if env_path.exists():
|
|
195
|
+
load_dotenv(env_path)
|
|
196
|
+
|
|
188
197
|
config = read_config(directory)
|
|
189
198
|
archive_path = create_archive(directory, config)
|
|
190
199
|
|
simplex/simplex.py
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
simplex/__init__.py,sha256=1mbM4XUk0FNW161WOkM4ayC1s_QSsaBEls6PZ0iBScY,74
|
|
2
|
+
simplex/cli.py,sha256=PkHt3sBKYfu0Smil4aCMoZUD-JbPw8xsBewpFcBYDKM,675
|
|
3
|
+
simplex/simplex.py,sha256=wXys677gzVGlsPPdILNJi03mjNKo6fOfyGntD4Pa3Gg,8624
|
|
4
|
+
simplex/deploy/__init__.py,sha256=_JQ81F_Nu7hSAfMA691gzs6a4-8oZ-buJ9h3Au12BKw,96
|
|
5
|
+
simplex/deploy/push.py,sha256=Xie_ip4hOBvEIS-pVDDDzHKZrqhkutMoe3cWsuoRLV0,6381
|
|
6
|
+
simplex-1.2.9.dist-info/LICENSE,sha256=Xh0SJjYZfNI71pCNMB40aKlBLLuOB0blx5xkTtufFNQ,1075
|
|
7
|
+
simplex-1.2.9.dist-info/METADATA,sha256=sr1n-BsKrTuABQWyLG3kA-K3x61APsMtolDkGW6ohEM,1349
|
|
8
|
+
simplex-1.2.9.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
9
|
+
simplex-1.2.9.dist-info/entry_points.txt,sha256=3veL2w3c5vxb3dm8I_M8Fs-370n1ZnvD8uu1nSsL7z8,45
|
|
10
|
+
simplex-1.2.9.dist-info/top_level.txt,sha256=cbMH1bYpN0A3gP-ecibPRHasHoqB-01T_2BUFS8p0CE,8
|
|
11
|
+
simplex-1.2.9.dist-info/RECORD,,
|
simplex-1.2.8.dist-info/RECORD
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
simplex/__init__.py,sha256=1mbM4XUk0FNW161WOkM4ayC1s_QSsaBEls6PZ0iBScY,74
|
|
2
|
-
simplex/cli.py,sha256=PkHt3sBKYfu0Smil4aCMoZUD-JbPw8xsBewpFcBYDKM,675
|
|
3
|
-
simplex/simplex.py,sha256=h50tySi2tn2iXgYDTtoUZN3j6ewh_-iWZKCRq431Cfk,8644
|
|
4
|
-
simplex/deploy/__init__.py,sha256=_JQ81F_Nu7hSAfMA691gzs6a4-8oZ-buJ9h3Au12BKw,96
|
|
5
|
-
simplex/deploy/push.py,sha256=hRAbtFZaECKnBljaOLQ5nzJ6hk7tZgc1c7QdgxKQFoY,6123
|
|
6
|
-
simplex-1.2.8.dist-info/LICENSE,sha256=Xh0SJjYZfNI71pCNMB40aKlBLLuOB0blx5xkTtufFNQ,1075
|
|
7
|
-
simplex-1.2.8.dist-info/METADATA,sha256=0AEZyu6qUVG9kKDji_K3azu4qoIIQRGQYtdJiZS_FJI,1349
|
|
8
|
-
simplex-1.2.8.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
9
|
-
simplex-1.2.8.dist-info/entry_points.txt,sha256=3veL2w3c5vxb3dm8I_M8Fs-370n1ZnvD8uu1nSsL7z8,45
|
|
10
|
-
simplex-1.2.8.dist-info/top_level.txt,sha256=cbMH1bYpN0A3gP-ecibPRHasHoqB-01T_2BUFS8p0CE,8
|
|
11
|
-
simplex-1.2.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|