|
43 | 43 | from __future__ import annotations |
44 | 44 |
|
45 | 45 | import importlib |
46 | | -import shutil |
47 | 46 | from abc import ABC, abstractmethod |
48 | 47 | from collections.abc import Callable |
49 | 48 | from pathlib import Path |
@@ -272,28 +271,4 @@ def create_bridge(self, **kwargs) -> PlatformBridge: |
272 | 271 | pass |
273 | 272 |
|
274 | 273 |
|
275 | | -def copy_dataset(dest_dir: Path): |
276 | | - header("Copying dataset resources") |
277 | | - click.secho( |
278 | | - "WARNING: This call is deprecated, and the server should not need this anymore.", |
279 | | - fg="yellow", |
280 | | - ) |
281 | | - db_dir = TEST_SERVER_DIR.parent / "dataset" / "server" / "dbs" / "3.2" |
282 | | - blob_dir = TEST_SERVER_DIR.parent / "dataset" / "server" / "blobs" |
283 | | - |
284 | | - dest_db_dir = dest_dir / "dbs" |
285 | | - shutil.rmtree(dest_db_dir, ignore_errors=True) |
286 | | - dest_db_dir.mkdir(0o755) |
287 | | - for db in db_dir.glob("*.zip"): |
288 | | - click.echo(f"Copying {db} -> {dest_db_dir / db.name}") |
289 | | - shutil.copy2(db, dest_db_dir) |
290 | | - |
291 | | - dest_blob_dir = dest_dir / "blobs" |
292 | | - shutil.rmtree(dest_blob_dir, ignore_errors=True) |
293 | | - dest_blob_dir.mkdir(0o755) |
294 | | - for blob in blob_dir.iterdir(): |
295 | | - click.echo(f"Copying {blob} -> {dest_blob_dir / blob.name}") |
296 | | - shutil.copy2(blob, dest_blob_dir) |
297 | | - |
298 | | - |
299 | 274 | assert __name__ != "__main__", "This module is not meant to be run directly" |
0 commit comments