(self)
Initialize the plugin reading version ranges from the config.
Initialize the plugin reading version ranges from the config.
Initialize the plugin reading version ranges from the config .
def initialize_plugin(self) -> None:
        """
        Initialize the plugin reading version ranges from the config.
        """
        try:
            config: SectionProxy = self.configuration[
                "version_range_release_file_metadata"
            ]
        except KeyError:
            return
        else:
            if not self.initialized:
                for k in config:
                    # self.specifiers[k] = SpecifierSet(config[k])
                    self.specifiers[k] = [
                        parse(ver) for ver in config[k].split("\n") if ver
                    ]
                logger.info(
                    f"Initialized version_range_release_file_metadata plugin with {self.specifiers}"  # noqa: E501
                )
                self.initialized = True
def initialize_plugin ( self ) -> None : try : config : SectionProxy = self . configuration [ "version_range_release_file_metadata" ] except KeyError : return else : if not self . initialized : for k in config : # self.specifiers[k] = SpecifierSet(config[k]) self . specifiers [ k ] = [ parse ( ver ) for ver in config [ k ] . split ( "\n" ) if ver ] logger . info ( f"Initialized version_range_release_file_metadata plugin with {self.specifiers}" # noqa: E501 ) self . initialized = True