komodo.symlink.suggester package¶
Submodules¶
komodo.symlink.suggester.cli module¶
- komodo.symlink.suggester.cli.main()¶
- komodo.symlink.suggester.cli.suggest_symlink_configuration(args: Namespace, repo: Repository, dry_run: bool = False) Repository | None ¶
Returns a pull request if the symlink configuration could be updated, or None if no update was possible.
komodo.symlink.suggester.configuration module¶
- class komodo.symlink.suggester.configuration.Configuration(conf)¶
Bases:
object
- static from_json(conf_json_str)¶
- to_json(json_kwargs)¶
- update(release, mode, python_versions: List[str])¶
- komodo.symlink.suggester.configuration.update(symlink_configuration, release_id, mode, python_versions: List[str] = None) Tuple[str, bool] ¶
Return a tuple of a string representing the new symlink config json, and whether an update was made. This function assumes the release_id is in the yyyy.mm.[part …] format and will look for python suffix (-py38, -py311) if no python_versions are passed. Symlink_configuration shall be a string representing the current symlink config json.
komodo.symlink.suggester.release module¶
- class komodo.symlink.suggester.release.Release(release_id: str)¶
Bases:
object
- static id_from_file_name(file_name: str)¶
- is_concrete() bool ¶
Return whether or not this is a concrete build. 2019.01-py is not a concrete build: all komodo builds follow the format 2019.01.???-pyN.
- month() str ¶
- month_alias() str ¶
- static path_is_release(path: str) bool ¶
- py_ver() str ¶
- set_python_version(python_version: str) None ¶
- komodo.symlink.suggester.release.diff_month(date_1: date, date_2: date) int ¶