lamindb_setup 1.18.0__tar.gz → 1.18.2__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.18.0 → lamindb_setup-1.18.2}/.github/workflows/build.yml +1 -1
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/PKG-INFO +1 -1
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/docs/hub-cloud/02-connect-local-instance.ipynb +2 -2
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/docs/hub-cloud/03-add-managed-storage.ipynb +12 -1
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/docs/hub-prod/test-import-schema.ipynb +3 -3
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/__init__.py +1 -1
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/core/_settings_load.py +1 -1
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/core/django.py +21 -0
- lamindb_setup-1.18.2/lamindb_setup/core/lamin.db.gz +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/io.py +2 -2
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/noxfile.py +9 -8
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/hub-cloud/test_edge_request.py +1 -1
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/hub-local/conftest.py +5 -6
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/hub-local/test_update_schema_in_hub.py +5 -5
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/storage/conftest.py +1 -1
- lamindb_setup-1.18.0/lamindb_setup/core/lamin.db.gz +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/.github/workflows/doc-changes.yml +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/.gitignore +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/.pre-commit-config.yaml +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/LICENSE +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/README.md +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/docs/changelog.md +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/docs/hub-cloud/01-init-local-instance.ipynb +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/docs/hub-cloud/04-test-bionty.ipynb +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/docs/hub-cloud/05-init-hosted-instance.ipynb +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/docs/hub-cloud/06-connect-hosted-instance.ipynb +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/docs/hub-cloud/07-keep-artifacts-local.ipynb +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/docs/hub-cloud/08-test-multi-session.ipynb +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/docs/hub-cloud/09-test-migrate.ipynb +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/docs/hub-cloud/test_notebooks.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/docs/hub-prod/test-cache-management.ipynb +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/docs/hub-prod/test-cloud-sync.ipynb +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/docs/hub-prod/test-connect-anonymously.ipynb +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/docs/hub-prod/test-empty-init.ipynb +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/docs/hub-prod/test-init-load-local-anonymously.ipynb +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/docs/hub-prod/test-invalid-schema.ipynb +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/docs/hub-prod/test-sqlite-lock.ipynb +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/docs/hub-prod/test_notebooks2.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/docs/index.md +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/docs/notebooks.md +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/docs/reference.md +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/_cache.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/_check.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/_check_setup.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/_connect_instance.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/_delete.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/_disconnect.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/_django.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/_entry_points.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/_init_instance.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/_migrate.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/_register_instance.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/_schema.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/_schema_metadata.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/_set_managed_storage.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/_setup_user.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/_silence_loggers.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/core/__init__.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/core/_aws_options.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/core/_aws_storage.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/core/_clone.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/core/_deprecated.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/core/_docs.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/core/_hub_client.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/core/_hub_core.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/core/_hub_crud.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/core/_hub_utils.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/core/_private_django_api.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/core/_settings.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/core/_settings_instance.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/core/_settings_save.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/core/_settings_storage.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/core/_settings_store.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/core/_settings_user.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/core/_setup_bionty_sources.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/core/cloud_sqlite_locker.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/core/exceptions.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/core/hashing.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/core/types.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/core/upath.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/errors.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/py.typed +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/lamindb_setup/types.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/pyproject.toml +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/connectivity/conftest.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/connectivity/test_proxies_certificates.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/hub-cloud/scripts/script-init-pass-user-no-writes.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/hub-cloud/scripts/script-to-fail-managed-storage.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/hub-cloud/test_connect_instance.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/hub-cloud/test_delete_instance.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/hub-cloud/test_fail_managed_storage.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/hub-cloud/test_init_instance.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/hub-cloud/test_init_pass_user_no_writes.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/hub-cloud/test_login.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/hub-cloud/test_set_storage.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/hub-local/README.md +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/hub-local/scripts/script-connect-fine-grained-access.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/hub-local/test_all.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/hub-prod/conftest.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/hub-prod/test_aws_options_manager.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/hub-prod/test_django.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/hub-prod/test_global_settings.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/hub-prod/test_migrate.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/hub-prod/test_switch_and_fallback_env.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/hub-prod/test_upath.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/storage/test_db_import_export.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/storage/test_entry_point.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/storage/test_hashing.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/storage/test_storage_access.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/storage/test_storage_basis.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/storage/test_storage_settings.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/storage/test_storage_stats.py +0 -0
- {lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/storage/test_to_url.py +0 -0
|
@@ -137,7 +137,7 @@ jobs:
|
|
|
137
137
|
touch .env.local
|
|
138
138
|
echo "AWS_ACCESS_KEY_ID_HOSTED_S3=${{ secrets.AWS_ACCESS_KEY_ID }}" >> .env.local
|
|
139
139
|
echo "AWS_SECRET_ACCESS_KEY_HOSTED_S3=${{ secrets.AWS_SECRET_ACCESS_KEY }}" >> .env.local
|
|
140
|
-
working-directory: laminhub/backend/central/supabase
|
|
140
|
+
working-directory: laminhub/backend/services/central/supabase
|
|
141
141
|
- uses: actions/setup-python@v6
|
|
142
142
|
with:
|
|
143
143
|
python-version: "3.11" # we need to run everything for coverage on 3.11
|
{lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/docs/hub-cloud/02-connect-local-instance.ipynb
RENAMED
|
@@ -94,10 +94,10 @@
|
|
|
94
94
|
"metadata": {},
|
|
95
95
|
"outputs": [],
|
|
96
96
|
"source": [
|
|
97
|
-
"#
|
|
97
|
+
"# pertdb is not in the (schema) modules of mydata\n",
|
|
98
98
|
"with pytest.raises(ModuleWasntConfigured):\n",
|
|
99
99
|
" # _check_instance_setup is called inside\n",
|
|
100
|
-
" import
|
|
100
|
+
" import pertdb"
|
|
101
101
|
]
|
|
102
102
|
},
|
|
103
103
|
{
|
|
@@ -48,11 +48,22 @@
|
|
|
48
48
|
{
|
|
49
49
|
"cell_type": "code",
|
|
50
50
|
"execution_count": null,
|
|
51
|
-
"id": "
|
|
51
|
+
"id": "cc2ba3c0",
|
|
52
52
|
"metadata": {},
|
|
53
53
|
"outputs": [],
|
|
54
54
|
"source": [
|
|
55
55
|
"import os\n",
|
|
56
|
+
"\n",
|
|
57
|
+
"os.environ[\"LAMINHUB_ID\"] = \"00000000-0000-0000-0000-000000000000\""
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"cell_type": "code",
|
|
62
|
+
"execution_count": null,
|
|
63
|
+
"id": "33c2bb76-d61f-4866-87e2-780e61600022",
|
|
64
|
+
"metadata": {},
|
|
65
|
+
"outputs": [],
|
|
66
|
+
"source": [
|
|
56
67
|
"import laminci\n",
|
|
57
68
|
"import pytest\n",
|
|
58
69
|
"from pathlib import Path\n",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"outputs": [],
|
|
29
29
|
"source": [
|
|
30
|
-
"!lamin init --storage test-implicit-load --modules
|
|
30
|
+
"!lamin init --storage test-implicit-load --modules pertdb,bionty"
|
|
31
31
|
]
|
|
32
32
|
},
|
|
33
33
|
{
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"metadata": {},
|
|
50
50
|
"outputs": [],
|
|
51
51
|
"source": [
|
|
52
|
-
"import
|
|
52
|
+
"import pertdb"
|
|
53
53
|
]
|
|
54
54
|
},
|
|
55
55
|
{
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"metadata": {},
|
|
70
70
|
"outputs": [],
|
|
71
71
|
"source": [
|
|
72
|
-
"
|
|
72
|
+
"pertdb.Compound"
|
|
73
73
|
]
|
|
74
74
|
},
|
|
75
75
|
{
|
|
@@ -49,7 +49,7 @@ def load_cache_path_from_settings(storage_settings: Path | None = None) -> Path
|
|
|
49
49
|
|
|
50
50
|
def find_module_candidates():
|
|
51
51
|
"""Find all local packages that depend on lamindb."""
|
|
52
|
-
candidates = ["bionty", "
|
|
52
|
+
candidates = ["bionty", "pertdb"]
|
|
53
53
|
return [c for c in candidates if find_spec(c) is not None]
|
|
54
54
|
|
|
55
55
|
|
|
@@ -276,6 +276,27 @@ def setup_django(
|
|
|
276
276
|
],
|
|
277
277
|
STATIC_URL="static/",
|
|
278
278
|
)
|
|
279
|
+
if logger._verbosity == 5: # debug-level verbosity
|
|
280
|
+
kwargs.update(
|
|
281
|
+
{
|
|
282
|
+
"DEBUG": True,
|
|
283
|
+
"LOGGING": {
|
|
284
|
+
"version": 1,
|
|
285
|
+
"handlers": {
|
|
286
|
+
"console": {
|
|
287
|
+
"level": "DEBUG",
|
|
288
|
+
"class": "logging.StreamHandler",
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"loggers": {
|
|
292
|
+
"django.db.backends": {
|
|
293
|
+
"level": "DEBUG",
|
|
294
|
+
"handlers": ["console"],
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
},
|
|
298
|
+
}
|
|
299
|
+
)
|
|
279
300
|
settings.configure(**kwargs)
|
|
280
301
|
# this isn't needed the first time django.setup() is called, but for unknown reason it's needed the second time
|
|
281
302
|
# the first time, it already defaults to true
|
|
Binary file
|
|
@@ -156,7 +156,7 @@ def export_db(
|
|
|
156
156
|
Ensure that you connect to postgres instances using `use_root_db_user=True`.
|
|
157
157
|
|
|
158
158
|
Args:
|
|
159
|
-
module_names: Module names to export (e.g., ["lamindb", "bionty", "
|
|
159
|
+
module_names: Module names to export (e.g., ["lamindb", "bionty", "pertdb"]).
|
|
160
160
|
Defaults to "lamindb" if not provided.
|
|
161
161
|
output_dir: Directory path for exported parquet files.
|
|
162
162
|
max_workers: Number of parallel processes.
|
|
@@ -345,7 +345,7 @@ def import_db(
|
|
|
345
345
|
|
|
346
346
|
Args:
|
|
347
347
|
input_dir: Directory containing parquet files to import.
|
|
348
|
-
module_names: Module names to import (e.g., ["lamindb", "bionty", "
|
|
348
|
+
module_names: Module names to import (e.g., ["lamindb", "bionty", "pertdb"]).
|
|
349
349
|
if_exists: How to behave if table exists: 'fail', 'replace', or 'append'.
|
|
350
350
|
If set to 'replace', existing data is deleted and new data is imported. All PKs and indices are not guaranteed to be preserved which can lead to write errors.
|
|
351
351
|
If set to 'append', new data is added to existing data without clearing the table. All PKs and indices are preserved allowing write operations but database size will greatly increase.
|
|
@@ -27,7 +27,7 @@ def lint(session: nox.Session) -> None:
|
|
|
27
27
|
["hub-local", "hub-prod", "hub-cloud", "storage", "connectivity", "docs"],
|
|
28
28
|
)
|
|
29
29
|
def install(session: nox.Session, group: str) -> None:
|
|
30
|
-
no_deps_packages = "git+https://github.com/laminlabs/lamindb git+https://github.com/laminlabs/
|
|
30
|
+
no_deps_packages = "git+https://github.com/laminlabs/lamindb git+https://github.com/laminlabs/pertdb git+https://github.com/laminlabs/lamin-cli"
|
|
31
31
|
modules_deps = f"""uv pip install --system --no-deps {no_deps_packages}
|
|
32
32
|
uv pip install --system git+https://github.com/laminlabs/bionty
|
|
33
33
|
"""
|
|
@@ -37,9 +37,10 @@ uv pip install --system git+https://github.com/laminlabs/bionty
|
|
|
37
37
|
+ "uv pip install --system sentry_sdk line_profiler wheel==0.45.1 flit"
|
|
38
38
|
+ "\nuv pip install --system ./laminhub/backend --no-build-isolation"
|
|
39
39
|
+ "\nuv pip install --system ./laminhub/backend/utils"
|
|
40
|
-
+ "\nuv pip install --system ./laminhub/backend/central"
|
|
41
|
-
+ "\nuv pip install --system ./laminhub/backend/
|
|
42
|
-
+ "\nuv pip install --system ./laminhub/backend/aws"
|
|
40
|
+
+ "\nuv pip install --system ./laminhub/backend/services/central"
|
|
41
|
+
+ "\nuv pip install --system ./laminhub/backend/services/instancedb"
|
|
42
|
+
+ "\nuv pip install --system ./laminhub/backend/services/aws"
|
|
43
|
+
+ "\nuv pip install --system --no-deps ./laminhub/backend/services/instancedb/hubmodule"
|
|
43
44
|
)
|
|
44
45
|
elif group == "docs":
|
|
45
46
|
cmds = modules_deps.strip()
|
|
@@ -62,10 +63,10 @@ uv pip install --system git+https://github.com/laminlabs/bionty
|
|
|
62
63
|
cmds += "\nuv pip install --system sentry_sdk line_profiler wheel==0.45.1 flit"
|
|
63
64
|
cmds += "\nuv pip install --system -e ./laminhub/backend --no-build-isolation"
|
|
64
65
|
cmds += "\nuv pip install --system -e ./laminhub/backend/utils"
|
|
65
|
-
cmds += "\nuv pip install --system -e ./laminhub/backend/central"
|
|
66
|
-
cmds += "\nuv pip install --system -e ./laminhub/backend/
|
|
67
|
-
cmds += "\nuv pip install --system -e ./laminhub/backend/aws"
|
|
68
|
-
cmds += "\nuv pip install --system --no-deps -e ./laminhub/backend/
|
|
66
|
+
cmds += "\nuv pip install --system -e ./laminhub/backend/services/central"
|
|
67
|
+
cmds += "\nuv pip install --system -e ./laminhub/backend/services/instancedb"
|
|
68
|
+
cmds += "\nuv pip install --system -e ./laminhub/backend/services/aws"
|
|
69
|
+
cmds += "\nuv pip install --system --no-deps -e ./laminhub/backend/services/instancedb/hubmodule"
|
|
69
70
|
# check that just installing psycopg (psycopg3) doesn't break fine-grained access
|
|
70
71
|
cmds += "\nuv pip install --system psycopg[binary]"
|
|
71
72
|
# force new supabase
|
|
@@ -43,7 +43,7 @@ def test_edge_request():
|
|
|
43
43
|
assert instance["owner"] == "laminlabs"
|
|
44
44
|
assert instance["name"] == "lamindata"
|
|
45
45
|
assert instance["api_url"] == "https://aws.us-east-1.lamin.ai/api"
|
|
46
|
-
assert instance["schema_str"].startswith("bionty,
|
|
46
|
+
assert instance["schema_str"].startswith("bionty,pertdb")
|
|
47
47
|
assert "schema_id" in instance
|
|
48
48
|
# check that schema_id is well-formed UUID
|
|
49
49
|
# if not, throws ValueError
|
|
@@ -9,6 +9,7 @@ from lamincentral.client import SupabaseClientWrapper, connect_central
|
|
|
9
9
|
from lamincentral.dev._local_supabase import (
|
|
10
10
|
_remove_lamin_local_settings,
|
|
11
11
|
_SupabaseLocalResources,
|
|
12
|
+
start_supabase,
|
|
12
13
|
)
|
|
13
14
|
from lamindb_setup.core._hub_client import (
|
|
14
15
|
connect_hub_with_auth,
|
|
@@ -27,7 +28,7 @@ from lamindb_setup.core._settings_save import save_user_settings
|
|
|
27
28
|
from lamindb_setup.core._settings_storage import base62
|
|
28
29
|
from lamindb_setup.core._settings_storage import init_storage as init_storage_base
|
|
29
30
|
from lamindb_setup.core._settings_user import UserSettings
|
|
30
|
-
from laminhub_rest.dev import
|
|
31
|
+
from laminhub_rest.dev._seed import LocalSeed
|
|
31
32
|
from laminhub_rest.test.instance import create_instance
|
|
32
33
|
from supabase_auth.errors import AuthApiError
|
|
33
34
|
|
|
@@ -42,11 +43,9 @@ def pytest_configure():
|
|
|
42
43
|
os.environ["LAMIN_TEST_INSTANCE_SCHEMA_STR"] = "bionty"
|
|
43
44
|
# Disable redis, it is not deployed here
|
|
44
45
|
os.environ["EXTERNAL_CACHE_DISABLED"] = "true"
|
|
45
|
-
_remove_lamin_local_settings()
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
supabase_resources.migrate()
|
|
49
|
-
seed_local_test()
|
|
46
|
+
# _remove_lamin_local_settings()
|
|
47
|
+
start_supabase()
|
|
48
|
+
LocalSeed.populate()
|
|
50
49
|
# reset user
|
|
51
50
|
del os.environ["LAMIN_API_KEY"]
|
|
52
51
|
ln_setup.settings._user_settings = None
|
|
@@ -7,7 +7,7 @@ from lamindb_setup._schema_metadata import _dict_to_uuid, update_schema_in_hub
|
|
|
7
7
|
def setup_instance():
|
|
8
8
|
ln_setup.init(
|
|
9
9
|
storage="./test_storage",
|
|
10
|
-
modules="bionty,
|
|
10
|
+
modules="bionty,pertdb",
|
|
11
11
|
db="postgresql://postgres:postgres@127.0.0.1:54322/postgres",
|
|
12
12
|
name="test-update-modules",
|
|
13
13
|
)
|
|
@@ -34,12 +34,12 @@ def test_update_schema_in_hub(setup_instance):
|
|
|
34
34
|
assert module_set_info[1]["id"] == 0
|
|
35
35
|
assert module_set_info[1]["name"] == "core"
|
|
36
36
|
assert module_set_info[2]["id"] == 0
|
|
37
|
-
assert module_set_info[2]["name"] == "
|
|
37
|
+
assert module_set_info[2]["name"] == "pertdb"
|
|
38
38
|
|
|
39
39
|
assert len(schema["schema_json"].keys()) == 3
|
|
40
40
|
assert "core" in schema["schema_json"]
|
|
41
41
|
assert "bionty" in schema["schema_json"]
|
|
42
|
-
assert "
|
|
42
|
+
assert "pertdb" in schema["schema_json"]
|
|
43
43
|
|
|
44
44
|
assert not schema["schema_json"]["core"]["artifact"]["is_link_table"]
|
|
45
45
|
assert not schema["schema_json"]["core"]["artifact"]["is_auto_created"]
|
|
@@ -149,7 +149,7 @@ def test_update_schema_in_hub(setup_instance):
|
|
|
149
149
|
"related_schema_name": "bionty",
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
assert schema["schema_json"]["
|
|
152
|
+
assert schema["schema_json"]["pertdb"]["compound"]["fields"]["artifacts"] == {
|
|
153
153
|
"type": "ManyToManyField",
|
|
154
154
|
"column_name": None,
|
|
155
155
|
"through": {
|
|
@@ -159,7 +159,7 @@ def test_update_schema_in_hub(setup_instance):
|
|
|
159
159
|
},
|
|
160
160
|
"field_name": "artifacts",
|
|
161
161
|
"model_name": "compound",
|
|
162
|
-
"schema_name": "
|
|
162
|
+
"schema_name": "pertdb",
|
|
163
163
|
"is_link_table": False,
|
|
164
164
|
"is_primary_key": False,
|
|
165
165
|
"is_editable": False,
|
|
Binary file
|
|
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.18.0 → lamindb_setup-1.18.2}/docs/hub-cloud/06-connect-hosted-instance.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
|
{lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/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
|
{lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/connectivity/test_proxies_certificates.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/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
|
{lamindb_setup-1.18.0 → lamindb_setup-1.18.2}/tests/hub-prod/test_switch_and_fallback_env.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
|