lamindb_setup 1.0.2__tar.gz → 1.0.3__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.
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/PKG-INFO +1 -1
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/__init__.py +1 -1
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/_connect_instance.py +18 -19
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/.github/workflows/build.yml +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/.github/workflows/doc-changes.yml +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/.gitignore +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/.pre-commit-config.yaml +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/LICENSE +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/README.md +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/docs/changelog.md +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/docs/hub-cloud/01-init-local-instance.ipynb +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/docs/hub-cloud/02-connect-local-instance.ipynb +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/docs/hub-cloud/03-add-managed-storage.ipynb +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/docs/hub-cloud/04-test-bionty.ipynb +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/docs/hub-cloud/05-init-hosted-instance.ipynb +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/docs/hub-cloud/06-connect-hosted-instance.ipynb +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/docs/hub-cloud/07-keep-artifacts-local.ipynb +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/docs/hub-cloud/08-test-multi-session.ipynb +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/docs/hub-cloud/test_notebooks.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/docs/hub-prod/test-cache-management.ipynb +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/docs/hub-prod/test-cloud-sync.ipynb +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/docs/hub-prod/test-connect-anonymously.ipynb +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/docs/hub-prod/test-empty-init.ipynb +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/docs/hub-prod/test-import-schema.ipynb +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/docs/hub-prod/test-init-load-local-anonymously.ipynb +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/docs/hub-prod/test-insufficient-user-info.ipynb +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/docs/hub-prod/test-invalid-schema.ipynb +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/docs/hub-prod/test-sqlite-lock.ipynb +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/docs/hub-prod/test_notebooks2.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/docs/index.md +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/docs/notebooks.md +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/docs/reference.md +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/_cache.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/_check.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/_check_setup.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/_close.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/_delete.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/_django.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/_entry_points.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/_exportdb.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/_importdb.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/_init_instance.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/_migrate.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/_register_instance.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/_schema.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/_schema_metadata.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/_set_managed_storage.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/_setup_user.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/_silence_loggers.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/core/__init__.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/core/_aws_credentials.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/core/_aws_storage.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/core/_deprecated.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/core/_docs.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/core/_hub_client.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/core/_hub_core.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/core/_hub_crud.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/core/_hub_utils.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/core/_private_django_api.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/core/_settings.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/core/_settings_instance.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/core/_settings_load.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/core/_settings_save.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/core/_settings_storage.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/core/_settings_store.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/core/_settings_user.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/core/_setup_bionty_sources.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/core/cloud_sqlite_locker.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/core/django.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/core/exceptions.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/core/hashing.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/core/types.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/lamindb_setup/core/upath.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/noxfile.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/pyproject.toml +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/tests/hub-cloud/scripts/script-init-pass-user-no-writes.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/tests/hub-cloud/scripts/script-to-fail-managed-storage.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/tests/hub-cloud/test_connect_instance.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/tests/hub-cloud/test_delete_instance.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/tests/hub-cloud/test_edge_request.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/tests/hub-cloud/test_fail_managed_storage.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/tests/hub-cloud/test_init_instance.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/tests/hub-cloud/test_init_pass_user_no_writes.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/tests/hub-cloud/test_login.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/tests/hub-cloud/test_migrate.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/tests/hub-cloud/test_set_storage.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/tests/hub-local/conftest.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/tests/hub-local/test_all.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/tests/hub-local/test_update_schema_in_hub.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/tests/hub-prod/conftest.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/tests/hub-prod/test_aws_credentials_manager.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/tests/hub-prod/test_django.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/tests/hub-prod/test_global_settings.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/tests/hub-prod/test_switch_and_fallback_env.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/tests/hub-prod/test_upath.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/tests/storage/test_entry_point.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/tests/storage/test_hashing.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/tests/storage/test_storage_access.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/tests/storage/test_storage_basis.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/tests/storage/test_storage_stats.py +0 -0
- {lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/tests/storage/test_to_url.py +0 -0
|
@@ -339,25 +339,6 @@ def migrate_lnschema_core(
|
|
|
339
339
|
"""Migrate lnschema_core tables to lamindb tables."""
|
|
340
340
|
from urllib.parse import urlparse
|
|
341
341
|
|
|
342
|
-
if isettings.is_on_hub:
|
|
343
|
-
from lamindb_setup.core._hub_client import call_with_fallback_auth
|
|
344
|
-
from lamindb_setup.core._hub_crud import (
|
|
345
|
-
select_collaborator,
|
|
346
|
-
)
|
|
347
|
-
|
|
348
|
-
# double check that user is an admin, otherwise will fail below
|
|
349
|
-
# due to insufficient SQL permissions with cryptic error
|
|
350
|
-
collaborator = call_with_fallback_auth(
|
|
351
|
-
select_collaborator,
|
|
352
|
-
instance_id=settings.instance._id,
|
|
353
|
-
account_id=settings.user._uuid,
|
|
354
|
-
)
|
|
355
|
-
if collaborator is None or collaborator["role"] != "admin":
|
|
356
|
-
raise SystemExit(
|
|
357
|
-
"❌ Only admins can deploy migrations, please ensure that you're an"
|
|
358
|
-
f" admin: https://lamin.ai/{settings.instance.slug}/settings"
|
|
359
|
-
)
|
|
360
|
-
|
|
361
342
|
parsed_uri = urlparse(isettings.db)
|
|
362
343
|
db_type = parsed_uri.scheme
|
|
363
344
|
|
|
@@ -413,6 +394,24 @@ def migrate_lnschema_core(
|
|
|
413
394
|
if response != "y":
|
|
414
395
|
print("Aborted.")
|
|
415
396
|
quit()
|
|
397
|
+
if isettings.is_on_hub:
|
|
398
|
+
from lamindb_setup.core._hub_client import call_with_fallback_auth
|
|
399
|
+
from lamindb_setup.core._hub_crud import (
|
|
400
|
+
select_collaborator,
|
|
401
|
+
)
|
|
402
|
+
|
|
403
|
+
# double check that user is an admin, otherwise will fail below
|
|
404
|
+
# due to insufficient SQL permissions with cryptic error
|
|
405
|
+
collaborator = call_with_fallback_auth(
|
|
406
|
+
select_collaborator,
|
|
407
|
+
instance_id=settings.instance._id,
|
|
408
|
+
account_id=settings.user._uuid,
|
|
409
|
+
)
|
|
410
|
+
if collaborator is None or collaborator["role"] != "admin":
|
|
411
|
+
raise SystemExit(
|
|
412
|
+
"❌ Only admins can deploy migrations, please ensure that you're an"
|
|
413
|
+
f" admin: https://lamin.ai/{settings.instance.slug}/settings"
|
|
414
|
+
)
|
|
416
415
|
for table in tables_to_rename:
|
|
417
416
|
if db_type == "sqlite":
|
|
418
417
|
cur.execute(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/docs/hub-prod/test-init-load-local-anonymously.ipynb
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lamindb_setup-1.0.2 → lamindb_setup-1.0.3}/tests/hub-cloud/test_init_pass_user_no_writes.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|