dayhoff-tools 1.11.8__py3-none-any.whl → 1.11.10__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/cloud_commands.py +8 -4
 - dayhoff_tools/cli/utility_commands.py +15 -5
 - {dayhoff_tools-1.11.8.dist-info → dayhoff_tools-1.11.10.dist-info}/METADATA +1 -1
 - {dayhoff_tools-1.11.8.dist-info → dayhoff_tools-1.11.10.dist-info}/RECORD +6 -6
 - {dayhoff_tools-1.11.8.dist-info → dayhoff_tools-1.11.10.dist-info}/WHEEL +0 -0
 - {dayhoff_tools-1.11.8.dist-info → dayhoff_tools-1.11.10.dist-info}/entry_points.txt +0 -0
 
| 
         @@ -485,10 +485,14 @@ def _get_current_aws_profile() -> str: 
     | 
|
| 
       485 
485 
     | 
    
         
             
                    cmd = [aws_path, "configure", "list", "--no-cli-pager"]
         
     | 
| 
       486 
486 
     | 
    
         
             
                    _, stdout, _ = _run_command(cmd, capture=True, check=False)
         
     | 
| 
       487 
487 
     | 
    
         | 
| 
       488 
     | 
    
         
            -
                    # Extract profile from output
         
     | 
| 
       489 
     | 
    
         
            -
                     
     | 
| 
       490 
     | 
    
         
            -
                     
     | 
| 
       491 
     | 
    
         
            -
             
     | 
| 
      
 488 
     | 
    
         
            +
                    # Extract profile from output (format: "profile    : <value>    : <type>    : <location>")
         
     | 
| 
      
 489 
     | 
    
         
            +
                    # Match the line starting with "profile" and capture the value after the first colon
         
     | 
| 
      
 490 
     | 
    
         
            +
                    profile_match = re.search(r"^profile\s+:\s+(\S+)", stdout, re.MULTILINE)
         
     | 
| 
      
 491 
     | 
    
         
            +
                    if profile_match:
         
     | 
| 
      
 492 
     | 
    
         
            +
                        profile_value = profile_match.group(1)
         
     | 
| 
      
 493 
     | 
    
         
            +
                        # Check if the profile is actually set (not "<not" or "not")
         
     | 
| 
      
 494 
     | 
    
         
            +
                        if profile_value not in ("<not", "not"):
         
     | 
| 
      
 495 
     | 
    
         
            +
                            return profile_value
         
     | 
| 
       492 
496 
     | 
    
         
             
                except:
         
     | 
| 
       493 
497 
     | 
    
         
             
                    pass
         
     | 
| 
       494 
498 
     | 
    
         | 
| 
         @@ -862,6 +862,8 @@ def add_dependency( 
     | 
|
| 
       862 
862 
     | 
    
         
             
                package_name = re.split(r"[<>=~!\[]", package)[0].strip()
         
     | 
| 
       863 
863 
     | 
    
         
             
                has_version_spec = any(c in package for c in ["<", ">", "=", "~", "!"])
         
     | 
| 
       864 
864 
     | 
    
         | 
| 
      
 865 
     | 
    
         
            +
                added_count = 0
         
     | 
| 
      
 866 
     | 
    
         
            +
             
     | 
| 
       865 
867 
     | 
    
         
             
                for manifest_file in manifest_files:
         
     | 
| 
       866 
868 
     | 
    
         
             
                    try:
         
     | 
| 
       867 
869 
     | 
    
         
             
                        content = manifest_file.read_text()
         
     | 
| 
         @@ -939,11 +941,17 @@ def add_dependency( 
     | 
|
| 
       939 
941 
     | 
    
         | 
| 
       940 
942 
     | 
    
         
             
                        manifest_file.write_text(new_content)
         
     | 
| 
       941 
943 
     | 
    
         
             
                        print(f"✅ Added '{package}' to {manifest_file}")
         
     | 
| 
      
 944 
     | 
    
         
            +
                        added_count += 1
         
     | 
| 
       942 
945 
     | 
    
         | 
| 
       943 
946 
     | 
    
         
             
                    except Exception as e:
         
     | 
| 
       944 
947 
     | 
    
         
             
                        print(f"Error updating {manifest_file}: {e}")
         
     | 
| 
       945 
948 
     | 
    
         | 
| 
       946 
     | 
    
         
            -
                 
     | 
| 
      
 949 
     | 
    
         
            +
                # If nothing was added, exit early
         
     | 
| 
      
 950 
     | 
    
         
            +
                if added_count == 0:
         
     | 
| 
      
 951 
     | 
    
         
            +
                    print(f"\n⚠️  Package '{package_name}' already exists in all manifests")
         
     | 
| 
      
 952 
     | 
    
         
            +
                    return
         
     | 
| 
      
 953 
     | 
    
         
            +
             
     | 
| 
      
 954 
     | 
    
         
            +
                print(f"\n✅ Added '{package}' to {added_count} platform manifest(s)")
         
     | 
| 
       947 
955 
     | 
    
         | 
| 
       948 
956 
     | 
    
         
             
                # If no version specified, resolve and add version constraint
         
     | 
| 
       949 
957 
     | 
    
         
             
                if not has_version_spec:
         
     | 
| 
         @@ -981,7 +989,7 @@ def add_dependency( 
     | 
|
| 
       981 
989 
     | 
    
         
             
                                print(f"Warning: Could not update version in {manifest_file}: {e}")
         
     | 
| 
       982 
990 
     | 
    
         | 
| 
       983 
991 
     | 
    
         
             
                        print(
         
     | 
| 
       984 
     | 
    
         
            -
                            f"\n✅ Added '{package_name}>={resolved_version}' to  
     | 
| 
      
 992 
     | 
    
         
            +
                            f"\n✅ Added '{package_name}>={resolved_version}' to {added_count} platform manifest(s)"
         
     | 
| 
       985 
993 
     | 
    
         
             
                        )
         
     | 
| 
       986 
994 
     | 
    
         
             
                    else:
         
     | 
| 
       987 
995 
     | 
    
         
             
                        print(
         
     | 
| 
         @@ -1031,17 +1039,19 @@ def remove_dependency( 
     | 
|
| 
       1031 
1039 
     | 
    
         
             
                        content = manifest_file.read_text()
         
     | 
| 
       1032 
1040 
     | 
    
         | 
| 
       1033 
1041 
     | 
    
         
             
                        # Pattern to match the dependency line (with optional version spec)
         
     | 
| 
       1034 
     | 
    
         
            -
                        # Matches:  "package...",  or  "package...",\n
         
     | 
| 
      
 1042 
     | 
    
         
            +
                        # Matches:  "package...",  or  "package...",\n (including the newline)
         
     | 
| 
       1035 
1043 
     | 
    
         
             
                        pattern = re.compile(
         
     | 
| 
       1036 
     | 
    
         
            -
                            rf'^\s*["\']({package_esc}[<>=~!\[].+?|{package_esc})["\'],?\s*(?:#.*) 
     | 
| 
      
 1044 
     | 
    
         
            +
                            rf'^\s*["\']({package_esc}[<>=~!\[].+?|{package_esc})["\'],?\s*(?:#.*)?$\n?',
         
     | 
| 
       1037 
1045 
     | 
    
         
             
                            re.MULTILINE,
         
     | 
| 
       1038 
1046 
     | 
    
         
             
                        )
         
     | 
| 
       1039 
1047 
     | 
    
         | 
| 
       1040 
1048 
     | 
    
         
             
                        new_content, num_removed = pattern.subn("", content)
         
     | 
| 
       1041 
1049 
     | 
    
         | 
| 
       1042 
1050 
     | 
    
         
             
                        if num_removed > 0:
         
     | 
| 
       1043 
     | 
    
         
            -
                            # Clean up any  
     | 
| 
      
 1051 
     | 
    
         
            +
                            # Clean up any consecutive blank lines (more than one)
         
     | 
| 
       1044 
1052 
     | 
    
         
             
                            new_content = re.sub(r"\n\n\n+", "\n\n", new_content)
         
     | 
| 
      
 1053 
     | 
    
         
            +
                            # Also clean up trailing whitespace on lines
         
     | 
| 
      
 1054 
     | 
    
         
            +
                            new_content = re.sub(r"[ \t]+$", "", new_content, flags=re.MULTILINE)
         
     | 
| 
       1045 
1055 
     | 
    
         
             
                            manifest_file.write_text(new_content)
         
     | 
| 
       1046 
1056 
     | 
    
         
             
                            print(f"✅ Removed '{package}' from {manifest_file}")
         
     | 
| 
       1047 
1057 
     | 
    
         
             
                            removed_count += 1
         
     | 
| 
         @@ -2,7 +2,7 @@ dayhoff_tools/__init__.py,sha256=M5zThPyEBRYa5CfwlzKhcqTevWn3OKu62cjV6Zqie2A,469 
     | 
|
| 
       2 
2 
     | 
    
         
             
            dayhoff_tools/chemistry/standardizer.py,sha256=uMn7VwHnx02nc404eO6fRuS4rsl4dvSPf2ElfZDXEpY,11188
         
     | 
| 
       3 
3 
     | 
    
         
             
            dayhoff_tools/chemistry/utils.py,sha256=jt-7JgF-GeeVC421acX-bobKbLU_X94KNOW24p_P-_M,2257
         
     | 
| 
       4 
4 
     | 
    
         
             
            dayhoff_tools/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
         
     | 
| 
       5 
     | 
    
         
            -
            dayhoff_tools/cli/cloud_commands.py,sha256= 
     | 
| 
      
 5 
     | 
    
         
            +
            dayhoff_tools/cli/cloud_commands.py,sha256=xrWQZm48e09GTh8RmYh3JqXUzW8mMy07dHk_77LqZx8,41199
         
     | 
| 
       6 
6 
     | 
    
         
             
            dayhoff_tools/cli/engine/__init__.py,sha256=RE45X2IPCNUvQp6_OHI2lbjwoqexkH3roUPccIHkeJo,9540
         
     | 
| 
       7 
7 
     | 
    
         
             
            dayhoff_tools/cli/engine/engine_core.py,sha256=TECO6766GCZTtbxOY7QRggwmjpMH9JZSuxjbwF46unU,27061
         
     | 
| 
       8 
8 
     | 
    
         
             
            dayhoff_tools/cli/engine/engine_lifecycle.py,sha256=_Dk-EZs_qbm8APdOuGOuxhlbK6RgkkoLk2nrwKoo1-A,4519
         
     | 
| 
         @@ -12,7 +12,7 @@ dayhoff_tools/cli/engine/shared.py,sha256=Ecx6I1jtzmxQDn3BezKpgpQ4SJeZf4SZjUCLg- 
     | 
|
| 
       12 
12 
     | 
    
         
             
            dayhoff_tools/cli/engine/studio_commands.py,sha256=VwTQujz32-uMcYusDRE73SdzRpgvIkv7ZAF4zRv6AzA,30266
         
     | 
| 
       13 
13 
     | 
    
         
             
            dayhoff_tools/cli/main.py,sha256=Ii5boey--93yGthB_eS2LC7ZR3WHGsJXDHY7uElEtso,6169
         
     | 
| 
       14 
14 
     | 
    
         
             
            dayhoff_tools/cli/swarm_commands.py,sha256=5EyKj8yietvT5lfoz8Zx0iQvVaNgc3SJX1z2zQR6o6M,5614
         
     | 
| 
       15 
     | 
    
         
            -
            dayhoff_tools/cli/utility_commands.py,sha256= 
     | 
| 
      
 15 
     | 
    
         
            +
            dayhoff_tools/cli/utility_commands.py,sha256=e2P4dCCtoqMUGNyb0lFBZ6GZpl5Zslm1qqE5qIvsy38,50765
         
     | 
| 
       16 
16 
     | 
    
         
             
            dayhoff_tools/deployment/base.py,sha256=48KE76QlWMeIZJefcBOZVbyChS2V_mgs7IQ31odPV2o,17806
         
     | 
| 
       17 
17 
     | 
    
         
             
            dayhoff_tools/deployment/deploy_aws.py,sha256=gfqh09hGbz0q3oPqVm0imd_CEjKF2k8moGNRIL26qqE,18614
         
     | 
| 
       18 
18 
     | 
    
         
             
            dayhoff_tools/deployment/deploy_gcp.py,sha256=xgaOVsUDmP6wSEMYNkm1yRNcVskfdz80qJtCulkBIAM,8860
         
     | 
| 
         @@ -33,7 +33,7 @@ dayhoff_tools/intake/uniprot.py,sha256=BZYJQF63OtPcBBnQ7_P9gulxzJtqyorgyuDiPeOJq 
     | 
|
| 
       33 
33 
     | 
    
         
             
            dayhoff_tools/logs.py,sha256=DKdeP0k0kliRcilwvX0mUB2eipO5BdWUeHwh-VnsICs,838
         
     | 
| 
       34 
34 
     | 
    
         
             
            dayhoff_tools/sqlite.py,sha256=jV55ikF8VpTfeQqqlHSbY8OgfyfHj8zgHNpZjBLos_E,18672
         
     | 
| 
       35 
35 
     | 
    
         
             
            dayhoff_tools/warehouse.py,sha256=UETBtZD3r7WgvURqfGbyHlT7cxoiVq8isjzMuerKw8I,24475
         
     | 
| 
       36 
     | 
    
         
            -
            dayhoff_tools-1.11. 
     | 
| 
       37 
     | 
    
         
            -
            dayhoff_tools-1.11. 
     | 
| 
       38 
     | 
    
         
            -
            dayhoff_tools-1.11. 
     | 
| 
       39 
     | 
    
         
            -
            dayhoff_tools-1.11. 
     | 
| 
      
 36 
     | 
    
         
            +
            dayhoff_tools-1.11.10.dist-info/METADATA,sha256=3VZrQN31QyCVvRDNN0d4RQW6vqEjI6Q8tyW9O_Gz95o,2981
         
     | 
| 
      
 37 
     | 
    
         
            +
            dayhoff_tools-1.11.10.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
         
     | 
| 
      
 38 
     | 
    
         
            +
            dayhoff_tools-1.11.10.dist-info/entry_points.txt,sha256=iAf4jteNqW3cJm6CO6czLxjW3vxYKsyGLZ8WGmxamSc,49
         
     | 
| 
      
 39 
     | 
    
         
            +
            dayhoff_tools-1.11.10.dist-info/RECORD,,
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     |