pybiolib 1.2.883__py3-none-any.whl → 1.2.888__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.
@@ -196,7 +196,10 @@ def push_application(
196
196
  parsed_uri = parse_app_uri(app_uri)
197
197
  app_name = parsed_uri['app_name']
198
198
 
199
- app_uri_to_fetch = f"@{parsed_uri['resource_name_prefix']}/{parsed_uri['account_handle_normalized']}/{app_name}"
199
+ app_uri_prefix = (
200
+ f"@{parsed_uri['resource_name_prefix']}/" if parsed_uri['resource_name_prefix'] != 'biolib.com' else ''
201
+ )
202
+ app_uri_to_fetch = f"{app_uri_prefix}{parsed_uri['account_handle_normalized']}/{app_name}"
200
203
 
201
204
  version = parsed_uri['version']
202
205
  semantic_version = f"{version['major']}.{version['minor']}.{version['patch']}" if version else None
@@ -205,14 +208,14 @@ def push_application(
205
208
 
206
209
  api_client = BiolibApiClient.get()
207
210
  if not api_client.is_signed_in:
208
- github_ref = os.getenv('GITHUB_REF')
209
- if github_ref and not api_client.resource_deploy_key:
211
+ github_repository = os.getenv('GITHUB_REPOSITORY')
212
+ if github_repository and not api_client.resource_deploy_key:
213
+ github_secrets_url = f'https://github.com/{github_repository}/settings/secrets/actions/new'
210
214
  raise AuthenticationError(
211
215
  'You must be authenticated to push an application.\n'
212
216
  'Please set the environment variable "BIOLIB_TOKEN=[your_deploy_token]"\n'
213
217
  f'You can get a deploy key at: {api_client.base_url}/{app_uri_to_fetch}/settings/keys/\n'
214
- 'Then add it to your GitHub repository at: '
215
- 'Settings -> Secrets and variables -> Actions -> Repository secrets'
218
+ f'Then add it to your GitHub repository at: {github_secrets_url}'
216
219
  )
217
220
  else:
218
221
  raise AuthenticationError(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pybiolib
3
- Version: 1.2.883
3
+ Version: 1.2.888
4
4
  Summary: BioLib Python Client
5
5
  License: MIT
6
6
  Keywords: biolib
@@ -22,7 +22,7 @@ biolib/_internal/llm_instructions/.github/instructions/style-react-ts.instructio
22
22
  biolib/_internal/llm_instructions/.github/prompts/biolib_app_inputs.prompt.md,sha256=SMzXZImdID0yKjhE1fG54VrHdD8IVuwRxRKsMF-KjWs,697
23
23
  biolib/_internal/llm_instructions/.github/prompts/biolib_run_apps.prompt.md,sha256=-t1bmGr3zEFa6lKHaLcI98yq4Sg1TCMW8xbelNSHaOA,696
24
24
  biolib/_internal/llm_instructions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
- biolib/_internal/push_application.py,sha256=OwabiLPK8P_py3GavIzhYqcQL7hZ6XPKDrhSJUSxeRs,18023
25
+ biolib/_internal/push_application.py,sha256=2XbQM2BWIuXX_zKIPPlbsEhtIoF_wBgbn2PtVnwqjUA,18203
26
26
  biolib/_internal/runtime.py,sha256=BiHl4klUHr36MCpqKaUso4idHeBZfPAahLYRQrabFqA,486
27
27
  biolib/_internal/templates/__init__.py,sha256=NVbhLUMC8HITzkLvP88Qu7FHaL-SvQord-DX3gh1Ykk,24
28
28
  biolib/_internal/templates/init_template/.biolib/config.yml,sha256=y4ndTgbFvUE1UiGcIOqogT2Wm8jahGffeyU5rlCEltQ,427
@@ -141,8 +141,8 @@ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3
141
141
  biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
142
142
  biolib/utils/seq_util.py,sha256=Ozk0blGtPur_D9MwShD02r_mphyQmgZkx-lOHOwnlIM,6730
143
143
  biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
144
- pybiolib-1.2.883.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
145
- pybiolib-1.2.883.dist-info/METADATA,sha256=SpFwDiscPum6qx9WgKbEzFGSBnMntarbRXNVGXSW0I8,1570
146
- pybiolib-1.2.883.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
147
- pybiolib-1.2.883.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
148
- pybiolib-1.2.883.dist-info/RECORD,,
144
+ pybiolib-1.2.888.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
145
+ pybiolib-1.2.888.dist-info/METADATA,sha256=d8BcaYijJJYC_RoL6MBx00unC4RItgvRhhT-skOVXXo,1570
146
+ pybiolib-1.2.888.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
147
+ pybiolib-1.2.888.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
148
+ pybiolib-1.2.888.dist-info/RECORD,,