Source code for ramble.software_info

# Copyright 2022-2026 The Ramble Authors
#
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
# https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
# <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
# option. This file may not be copied, modified, or distributed
# except according to those terms.


[docs] class SoftwareInfo: """Represents information about a software build configuration (standard class).""" def __init__( self, name="", version="unknown", compiler="", compiler_version="", target="", variants="" ): """Initializes the BuildInfo object.""" self.name = name self.version = version self.compiler = compiler self.compiler_version = compiler_version self.target = target self.variants = variants
[docs] def to_version_text(self): return f"{self.name} @{self.version}"
[docs] def to_dict(self): return self.__dict__