dayhoff-tools 1.2.3__py3-none-any.whl → 1.2.5__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.
@@ -282,6 +282,27 @@ def add_to_warehouse(
282
282
  # Change the working directory to the warehouse folder
283
283
  os.chdir("warehouse")
284
284
 
285
+ # Configure DVC cache for Lightning Studio if needed
286
+ if os.path.exists("/teamspace/studios/this_studio"):
287
+ studio_cache_dir = "/teamspace/studios/this_studio/.dvc_cache"
288
+ os.makedirs(studio_cache_dir, exist_ok=True)
289
+ try:
290
+ result = subprocess.run(
291
+ ["dvc", "cache", "dir"], capture_output=True, text=True, check=True
292
+ )
293
+ current_cache = result.stdout.strip()
294
+ if current_cache != studio_cache_dir:
295
+ subprocess.run(
296
+ ["dvc", "cache", "dir", studio_cache_dir, "--local"], check=True
297
+ )
298
+ print(
299
+ f"✅ Configured warehouse DVC cache for Lightning Studio: {studio_cache_dir}"
300
+ )
301
+ except subprocess.CalledProcessError:
302
+ subprocess.run(
303
+ ["dvc", "cache", "dir", studio_cache_dir, "--local"], check=True
304
+ )
305
+
285
306
  # Add and push the data file
286
307
  subprocess.run(["dvc", "add", warehouse_path], check=True)
287
308
 
@@ -1,13 +1,11 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dayhoff-tools
3
- Version: 1.2.3
3
+ Version: 1.2.5
4
4
  Summary: Common tools for all the repos at Dayhoff Labs
5
5
  Author: Daniel Martin-Alarcon
6
6
  Author-email: dma@dayhofflabs.com
7
- Requires-Python: >=3.10,<4.0
7
+ Requires-Python: >=3.12,<4.0
8
8
  Classifier: Programming Language :: Python :: 3
9
- Classifier: Programming Language :: Python :: 3.10
10
- Classifier: Programming Language :: Python :: 3.11
11
9
  Classifier: Programming Language :: Python :: 3.12
12
10
  Classifier: Programming Language :: Python :: 3.13
13
11
  Provides-Extra: embedders
@@ -26,13 +24,13 @@ Requires-Dist: pandas (>=2.2.3) ; extra == "embedders"
26
24
  Requires-Dist: pandas (>=2.2.3) ; extra == "full"
27
25
  Requires-Dist: pyyaml (>=6.0)
28
26
  Requires-Dist: questionary (>=2.0.1)
29
- Requires-Dist: rdkit-pypi (>=2022.9.5) ; extra == "full"
27
+ Requires-Dist: rdkit (>=2025.3.2) ; extra == "full"
30
28
  Requires-Dist: requests (>=2.31.0)
31
29
  Requires-Dist: sentencepiece (>=0.2.0) ; extra == "embedders"
32
30
  Requires-Dist: sentencepiece (>=0.2.0) ; extra == "full"
33
31
  Requires-Dist: sqlalchemy (>=2.0.40,<3.0.0) ; extra == "full"
34
32
  Requires-Dist: toml (>=0.10)
35
- Requires-Dist: torch (>=2.4.0) ; extra == "embedders"
33
+ Requires-Dist: torch (>=2.5.0) ; extra == "embedders"
36
34
  Requires-Dist: tqdm (>=4.67.1) ; extra == "embedders"
37
35
  Requires-Dist: tqdm (>=4.67.1) ; extra == "full"
38
36
  Requires-Dist: transformers (==4.36.2) ; extra == "full"
@@ -25,8 +25,8 @@ dayhoff_tools/intake/structure.py,sha256=ufN3gAodQxhnt7psK1VTQeu9rKERmo_PhoxIbB4
25
25
  dayhoff_tools/intake/uniprot.py,sha256=BZYJQF63OtPcBBnQ7_P9gulxzJtqyorgyuDiPeOJqE4,16456
26
26
  dayhoff_tools/logs.py,sha256=DKdeP0k0kliRcilwvX0mUB2eipO5BdWUeHwh-VnsICs,838
27
27
  dayhoff_tools/sqlite.py,sha256=jV55ikF8VpTfeQqqlHSbY8OgfyfHj8zgHNpZjBLos_E,18672
28
- dayhoff_tools/warehouse.py,sha256=TqV8nex1AluNaL4JuXH5zuu9P7qmE89lSo6f_oViy6U,14965
29
- dayhoff_tools-1.2.3.dist-info/METADATA,sha256=xJbC0wrh9ZuguuDzKouBca3FwaPKFrfjA54n4LAFSiw,2842
30
- dayhoff_tools-1.2.3.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
31
- dayhoff_tools-1.2.3.dist-info/entry_points.txt,sha256=iAf4jteNqW3cJm6CO6czLxjW3vxYKsyGLZ8WGmxamSc,49
32
- dayhoff_tools-1.2.3.dist-info/RECORD,,
28
+ dayhoff_tools/warehouse.py,sha256=8YbnQ--usrEgDQGfvpV4MrMji55A0rq2hZaOgFGh6ag,15896
29
+ dayhoff_tools-1.2.5.dist-info/METADATA,sha256=EReORxgYDfQ8QCuuC0Z0z-jg5NxbQr4WNFIbNPQ2T18,2735
30
+ dayhoff_tools-1.2.5.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
31
+ dayhoff_tools-1.2.5.dist-info/entry_points.txt,sha256=iAf4jteNqW3cJm6CO6czLxjW3vxYKsyGLZ8WGmxamSc,49
32
+ dayhoff_tools-1.2.5.dist-info/RECORD,,