pybiolib 1.2.1168__py3-none-any.whl → 1.2.1173__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.
- biolib/_internal/push_application.py +10 -4
- {pybiolib-1.2.1168.dist-info → pybiolib-1.2.1173.dist-info}/METADATA +1 -1
- {pybiolib-1.2.1168.dist-info → pybiolib-1.2.1173.dist-info}/RECORD +6 -6
- {pybiolib-1.2.1168.dist-info → pybiolib-1.2.1173.dist-info}/LICENSE +0 -0
- {pybiolib-1.2.1168.dist-info → pybiolib-1.2.1173.dist-info}/WHEEL +0 -0
- {pybiolib-1.2.1168.dist-info → pybiolib-1.2.1173.dist-info}/entry_points.txt +0 -0
@@ -240,17 +240,23 @@ def push_application(
|
|
240
240
|
with open(config_yml_path) as config_yml_file:
|
241
241
|
config = yaml.safe_load(config_yml_file.read())
|
242
242
|
|
243
|
-
app_data = config.get('app_data')
|
243
|
+
app_data = config.get('app_data') or config.get('assets')
|
244
244
|
if app_data:
|
245
|
+
if config.get('app_data') and config.get('assets'):
|
246
|
+
raise BioLibError(
|
247
|
+
'In .biolib/config.yml you cannot specify both "app_data" and "assets" fields. Please use only one.'
|
248
|
+
)
|
249
|
+
|
250
|
+
field_name = 'app_data' if 'app_data' in config else 'assets'
|
245
251
|
if not isinstance(app_data, str):
|
246
252
|
raise BioLibError(
|
247
|
-
f'In .biolib/config.yml the value of "
|
253
|
+
f'In .biolib/config.yml the value of "{field_name}" must be a string but got {type(app_data)}'
|
248
254
|
)
|
249
255
|
|
250
256
|
app_data_path = app_path_absolute.joinpath(app_data).resolve()
|
251
257
|
if not app_data_path.is_dir():
|
252
258
|
raise BioLibError(
|
253
|
-
'In .biolib/config.yml the value of "
|
259
|
+
f'In .biolib/config.yml the value of "{field_name}" must be a path to a directory '
|
254
260
|
'in the application directory'
|
255
261
|
)
|
256
262
|
|
@@ -321,7 +327,7 @@ def push_application(
|
|
321
327
|
app_response = BiolibAppApi.get_by_uri(app_uri_to_fetch)
|
322
328
|
app = app_response['app']
|
323
329
|
|
324
|
-
if app_data and not app['allow_client_side_execution']:
|
330
|
+
if app_data and not app['allow_client_side_execution'] and 'app_data' in config:
|
325
331
|
raise BioLibError(
|
326
332
|
'To push a version with app_data the app must be set to "Allow Client-Side Source Code Access"'
|
327
333
|
)
|
@@ -16,7 +16,7 @@ biolib/_internal/lfs/__init__.py,sha256=gSWo_xg61UniYgD7yNYxeT4I9uaXBCBSi3_nmZjn
|
|
16
16
|
biolib/_internal/lfs/cache.py,sha256=pQS2np21rdJ6I3DpoOutnzPHpLOZgUIS8TMltUJk_k4,2226
|
17
17
|
biolib/_internal/libs/__init__.py,sha256=Jdf4tNPqe_oIIf6zYml6TiqhL_02Vyqwge6IELrAFhw,98
|
18
18
|
biolib/_internal/libs/fusepy/__init__.py,sha256=AWDzNFS-XV_5yKb0Qx7kggIhPzq1nj_BZS5y2Nso08k,41944
|
19
|
-
biolib/_internal/push_application.py,sha256=
|
19
|
+
biolib/_internal/push_application.py,sha256=xno0SGnSESdlAAjsl6HOw8Y1KQgGhKbCWVQa5zHHq_k,18657
|
20
20
|
biolib/_internal/runtime.py,sha256=BiHl4klUHr36MCpqKaUso4idHeBZfPAahLYRQrabFqA,486
|
21
21
|
biolib/_internal/string_utils.py,sha256=N7J7oGu6_yA_z0pOiKqxEh__lRdiDLh6kigeDkQEZ5g,265
|
22
22
|
biolib/_internal/templates/__init__.py,sha256=NVbhLUMC8HITzkLvP88Qu7FHaL-SvQord-DX3gh1Ykk,24
|
@@ -157,8 +157,8 @@ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3
|
|
157
157
|
biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
|
158
158
|
biolib/utils/seq_util.py,sha256=Ozk0blGtPur_D9MwShD02r_mphyQmgZkx-lOHOwnlIM,6730
|
159
159
|
biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
|
160
|
-
pybiolib-1.2.
|
161
|
-
pybiolib-1.2.
|
162
|
-
pybiolib-1.2.
|
163
|
-
pybiolib-1.2.
|
164
|
-
pybiolib-1.2.
|
160
|
+
pybiolib-1.2.1173.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
|
161
|
+
pybiolib-1.2.1173.dist-info/METADATA,sha256=cwQwfXVcc6Vj5QDe7PwHWDTxWmbzL4r_ypSq57QLa-g,1571
|
162
|
+
pybiolib-1.2.1173.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
163
|
+
pybiolib-1.2.1173.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
|
164
|
+
pybiolib-1.2.1173.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|