Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
komodo documentation
Logo

User guide

  • Installation
  • Basic usage
  • Komodo commands

API reference

  • komodo package
    • komodo.data package
    • komodo.symlink package
      • komodo.symlink.suggester package

Other resources

  • Development
  • License

Project links

  • Code in GitHub
  • Issue tracker
  • Equinor's software
  • Equinor's website
Back to top
View this page

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¶
monthly_diff(other: Release) → int¶

Return monthly difference between this and other.

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¶

Module contents¶

Next
Development
Previous
komodo.symlink package
Copyright © The komodo authors
Made with Sphinx and @pradyunsg's Furo
On this page
  • komodo.symlink.suggester package
    • Submodules
    • komodo.symlink.suggester.cli module
      • main()
      • suggest_symlink_configuration()
    • komodo.symlink.suggester.configuration module
      • Configuration
        • Configuration.from_json()
        • Configuration.to_json()
        • Configuration.update()
      • update()
    • komodo.symlink.suggester.release module
      • Release
        • Release.id_from_file_name()
        • Release.is_concrete()
        • Release.month()
        • Release.month_alias()
        • Release.monthly_diff()
        • Release.path_is_release()
        • Release.py_ver()
        • Release.set_python_version()
      • diff_month()
    • Module contents