sltxpkg/config.py
def load_dependencies_config(file: str, target: dict) -> dict:
    """Apply given dependency file to the sltx dep list

    Args:
        file (str): The file to load
        target (dict): The target dependency-collection to append it to (won't be modified)

    Returns:
        dict: The target dict with the added dependencies
    """
    y_dep = su.load_yaml(file)
    if 'dependencies' in y_dep:
        for dep in y_dep['dependencies']:
            dep_data = y_dep['dependencies'][dep]
            if 'url' in dep_data:
                dep_data['url'] = expand_url(
                    dep_data['url'], Path(file).absolute())
    return {**target, **y_dep}
Apply given dependency file to the sltx dep list

    Args:
        file (str): The file to load
        target (dict): The target dependency-collection to append it to (won't be modified)

    Returns:
        dict: The target dict with the added dependencies
    
Apply given dependency file to the sltx dep list
Apply given dependency file to the sltx dep list
def load_dependencies_config(file: str, target: dict) -> dict:
    y_dep = su.load_yaml(file)
    if 'dependencies' in y_dep:
        for dep in y_dep['dependencies']:
            dep_data = y_dep['dependencies'][dep]
            if 'url' in dep_data:
                dep_data['url'] = expand_url(
                    dep_data['url'], Path(file).absolute())
    return {**target, **y_dep}
def load_dependencies_config ( file : str , target : dict ) -> dict : y_dep = su . load_yaml ( file ) if 'dependencies' in y_dep : for dep in y_dep [ 'dependencies' ] : dep_data = y_dep [ 'dependencies' ] [ dep ] if 'url' in dep_data : dep_data [ 'url' ] = expand_url ( dep_data [ 'url' ] , Path ( file ) . absolute ( ) ) return { ** target , ** y_dep }
Apply given dependency file to the sltx dep list
Apply given dependency file to the sltx dep list
"""Apply given dependency file to the sltx dep list

    Args:
        file (str): The file to load
        target (dict): The target dependency-collection to append it to (won't be modified)

    Returns:
        dict: The target dict with the added dependencies
    """
The target dict with the added dependencies
The target dict with the added dependencies
dict
file
str
The file to load
The file to load
target
dict
The target dependency-collection to append it to (won't be modified)
The target dependency - collection to append it to ( won ' t be modified )