dayhoff-tools 1.0.16__py3-none-any.whl → 1.0.18__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.
- dayhoff_tools/cli/utility_commands.py +42 -27
- {dayhoff_tools-1.0.16.dist-info → dayhoff_tools-1.0.18.dist-info}/METADATA +16 -18
- {dayhoff_tools-1.0.16.dist-info → dayhoff_tools-1.0.18.dist-info}/RECORD +5 -5
- {dayhoff_tools-1.0.16.dist-info → dayhoff_tools-1.0.18.dist-info}/WHEEL +0 -0
- {dayhoff_tools-1.0.16.dist-info → dayhoff_tools-1.0.18.dist-info}/entry_points.txt +0 -0
@@ -7,6 +7,7 @@ import subprocess
|
|
7
7
|
import sys
|
8
8
|
from pathlib import Path
|
9
9
|
|
10
|
+
import typer
|
10
11
|
import yaml
|
11
12
|
|
12
13
|
|
@@ -211,6 +212,8 @@ def build_and_upload_wheel(bump_part: str = "patch"):
|
|
211
212
|
return
|
212
213
|
|
213
214
|
# Build the command with token authentication
|
215
|
+
# IMPORTANT: Mask token for printing
|
216
|
+
publish_cmd_safe_print = ["uv", "publish", "--token", "*****"]
|
214
217
|
publish_cmd = ["uv", "publish", "--token", token]
|
215
218
|
print("Using UV_PUBLISH_TOKEN for authentication.")
|
216
219
|
|
@@ -279,13 +282,16 @@ def build_and_upload_wheel(bump_part: str = "patch"):
|
|
279
282
|
# --- End Version Bumping Logic ---
|
280
283
|
|
281
284
|
# Build wheel and sdist
|
282
|
-
|
283
|
-
|
285
|
+
build_cmd = ["uv", "build"]
|
286
|
+
print(f"Running command: {' '.join(build_cmd)}")
|
287
|
+
subprocess.run(build_cmd, check=True)
|
284
288
|
|
285
289
|
# Upload using uv publish with explicit arguments
|
286
|
-
print(
|
290
|
+
print(
|
291
|
+
f"Running command: {' '.join(publish_cmd_safe_print)}"
|
292
|
+
) # Print masked command
|
287
293
|
subprocess.run(
|
288
|
-
publish_cmd, # Use the command
|
294
|
+
publish_cmd, # Use the actual command with token
|
289
295
|
check=True,
|
290
296
|
)
|
291
297
|
|
@@ -357,39 +363,48 @@ def build_and_upload_wheel(bump_part: str = "patch"):
|
|
357
363
|
def update_dayhoff_tools():
|
358
364
|
"""Update the dayhoff-tools package to the latest version using uv.
|
359
365
|
|
360
|
-
Runs `uv add dayhoff-tools@latest
|
361
|
-
dayhoff-tools
|
366
|
+
Runs `uv add dayhoff-tools@latest`. Note: This command might not correctly
|
367
|
+
update dayhoff-tools if it's only listed in a top-level [dependency-groups]
|
368
|
+
table in the target project's pyproject.toml. It works best for dependencies
|
369
|
+
in [project.dependencies] or [project.optional-dependencies].
|
362
370
|
"""
|
363
371
|
try:
|
364
|
-
print(
|
365
|
-
|
366
|
-
)
|
367
|
-
|
368
|
-
|
369
|
-
["uv", "add", "dayhoff-tools@latest", "--group", "common"], check=True
|
370
|
-
)
|
371
|
-
print(
|
372
|
-
"Update complete! Run 'uv sync --group common' or relevant sync command if needed."
|
373
|
-
)
|
372
|
+
print("Attempting to update dayhoff-tools to the latest version using uv...")
|
373
|
+
update_cmd = ["uv", "add", "dayhoff-tools@latest"]
|
374
|
+
print(f"Running command: {' '.join(update_cmd)}")
|
375
|
+
subprocess.run(update_cmd, check=True)
|
376
|
+
print("Update attempt complete! Check pyproject.toml and run sync if needed.")
|
374
377
|
except subprocess.CalledProcessError as e:
|
375
|
-
print(f"Error occurred while
|
378
|
+
print(f"Error occurred while attempting update: {e}")
|
379
|
+
except FileNotFoundError:
|
380
|
+
print("Error: 'uv' command not found. Is uv installed and in PATH?")
|
381
|
+
sys.exit(1)
|
376
382
|
|
377
383
|
|
378
|
-
def sync_dependencies(
|
384
|
+
def sync_dependencies(
|
385
|
+
install_project: bool = typer.Option(
|
386
|
+
False,
|
387
|
+
"--install-project",
|
388
|
+
help="Install the local project package itself into the environment.",
|
389
|
+
)
|
390
|
+
):
|
379
391
|
"""Update uv.lock and sync dependencies based on pyproject.toml.
|
380
392
|
|
381
|
-
|
382
|
-
|
383
|
-
|
393
|
+
By default, installs all declared dependencies without building/installing
|
394
|
+
the local project itself (--no-install-project). Use --install-project to
|
395
|
+
include the local project.
|
384
396
|
"""
|
385
397
|
try:
|
386
|
-
|
387
|
-
|
398
|
+
lock_cmd = ["uv", "lock"]
|
399
|
+
print(f"Running command: {' '.join(lock_cmd)}")
|
400
|
+
subprocess.run(lock_cmd, check=True)
|
388
401
|
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
402
|
+
sync_cmd = ["uv", "sync", "--all-groups"]
|
403
|
+
if not install_project:
|
404
|
+
sync_cmd.append("--no-install-project")
|
405
|
+
|
406
|
+
print(f"Running command: {' '.join(sync_cmd)}")
|
407
|
+
subprocess.run(sync_cmd, check=True)
|
393
408
|
|
394
409
|
print("Dependencies synced successfully.")
|
395
410
|
except subprocess.CalledProcessError as e:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: dayhoff-tools
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.18
|
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
|
@@ -10,23 +10,21 @@ Classifier: Programming Language :: Python :: 3.10
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.11
|
11
11
|
Classifier: Programming Language :: Python :: 3.12
|
12
12
|
Classifier: Programming Language :: Python :: 3.13
|
13
|
-
Provides-Extra:
|
14
|
-
Requires-Dist: biopython (>=1.84)
|
15
|
-
Requires-Dist: boto3 (>=1.36.8)
|
16
|
-
Requires-Dist: docker (>=7.1.0)
|
17
|
-
Requires-Dist: fair-esm (>=2.0.0)
|
18
|
-
Requires-Dist: firebase-admin (>=6.5.0)
|
19
|
-
Requires-Dist: h5py (>=3.11.0)
|
20
|
-
Requires-Dist: pandas (>=2.2.3)
|
21
|
-
Requires-Dist: pyyaml (>=6.0)
|
22
|
-
Requires-Dist: questionary (>=2.0.1)
|
23
|
-
Requires-Dist: rdkit-pypi (>=2022.9.5)
|
24
|
-
Requires-Dist: requests (>=2.31.0)
|
25
|
-
Requires-Dist: sqlalchemy (>=2.0.40,<3.0.0)
|
26
|
-
Requires-Dist:
|
27
|
-
Requires-Dist:
|
28
|
-
Requires-Dist: transformers (==4.36.2) ; extra == "full"
|
29
|
-
Requires-Dist: typer (>=0.9.0)
|
13
|
+
Provides-Extra: base
|
14
|
+
Requires-Dist: biopython (>=1.84)
|
15
|
+
Requires-Dist: boto3 (>=1.36.8)
|
16
|
+
Requires-Dist: docker (>=7.1.0)
|
17
|
+
Requires-Dist: fair-esm (>=2.0.0)
|
18
|
+
Requires-Dist: firebase-admin (>=6.5.0) ; extra == "base"
|
19
|
+
Requires-Dist: h5py (>=3.11.0)
|
20
|
+
Requires-Dist: pandas (>=2.2.3)
|
21
|
+
Requires-Dist: pyyaml (>=6.0) ; extra == "base"
|
22
|
+
Requires-Dist: questionary (>=2.0.1)
|
23
|
+
Requires-Dist: rdkit-pypi (>=2022.9.5)
|
24
|
+
Requires-Dist: requests (>=2.31.0) ; extra == "base"
|
25
|
+
Requires-Dist: sqlalchemy (>=2.0.40,<3.0.0)
|
26
|
+
Requires-Dist: transformers (==4.36.2)
|
27
|
+
Requires-Dist: typer (>=0.9.0) ; extra == "base"
|
30
28
|
Description-Content-Type: text/markdown
|
31
29
|
|
32
30
|
# dayhoff-tools
|
@@ -5,7 +5,7 @@ dayhoff_tools/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
|
|
5
5
|
dayhoff_tools/cli/cloud_commands.py,sha256=KiYEuD3nSg8QPWBYfrhdze2La_CJe4iqK-8uOAHyS8U,35827
|
6
6
|
dayhoff_tools/cli/main.py,sha256=yorL117hknzhNybt7CTz4oKXVuQRIDXPl7huIEWga-M,3666
|
7
7
|
dayhoff_tools/cli/swarm_commands.py,sha256=5EyKj8yietvT5lfoz8Zx0iQvVaNgc3SJX1z2zQR6o6M,5614
|
8
|
-
dayhoff_tools/cli/utility_commands.py,sha256=
|
8
|
+
dayhoff_tools/cli/utility_commands.py,sha256=217qbmt4qVoaPwStvwONoAj9NP9k9UkExs5WyKNCQt8,15586
|
9
9
|
dayhoff_tools/deployment/base.py,sha256=u-AjbtHnFLoLt33dhYXHIpV-6jcieMEHHGBGN_U9Hm0,15626
|
10
10
|
dayhoff_tools/deployment/deploy_aws.py,sha256=O0gQxHioSU_sNU8T8MD4wSOPvWc--V8eRRZzlRu035I,16446
|
11
11
|
dayhoff_tools/deployment/deploy_gcp.py,sha256=DxBM4sUzwPK9RWLP9bSfr38n1HHl-TVrp4TsbdN8pUA,5795
|
@@ -25,7 +25,7 @@ dayhoff_tools/sqlite.py,sha256=jV55ikF8VpTfeQqqlHSbY8OgfyfHj8zgHNpZjBLos_E,18672
|
|
25
25
|
dayhoff_tools/structure.py,sha256=ufN3gAodQxhnt7psK1VTQeu9rKERmo_PhoxIbB4QKMw,27660
|
26
26
|
dayhoff_tools/uniprot.py,sha256=BZYJQF63OtPcBBnQ7_P9gulxzJtqyorgyuDiPeOJqE4,16456
|
27
27
|
dayhoff_tools/warehouse.py,sha256=TqV8nex1AluNaL4JuXH5zuu9P7qmE89lSo6f_oViy6U,14965
|
28
|
-
dayhoff_tools-1.0.
|
29
|
-
dayhoff_tools-1.0.
|
30
|
-
dayhoff_tools-1.0.
|
31
|
-
dayhoff_tools-1.0.
|
28
|
+
dayhoff_tools-1.0.18.dist-info/METADATA,sha256=lbn5KAcT-XrkbrPfcPL6mQQrK9PoP0BUyV2Kjv4SIDc,2049
|
29
|
+
dayhoff_tools-1.0.18.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
30
|
+
dayhoff_tools-1.0.18.dist-info/entry_points.txt,sha256=iAf4jteNqW3cJm6CO6czLxjW3vxYKsyGLZ8WGmxamSc,49
|
31
|
+
dayhoff_tools-1.0.18.dist-info/RECORD,,
|
File without changes
|
File without changes
|