Skip to content

hubUtils 0.2.0

Compare
Choose a tag to compare
@zkamvar zkamvar released this 24 Oct 16:35
v0.2.0
1dd1bb3
  • Add family of functions for extracting the version number from a variety of sources:
    • get_version_config(): extract version from a <config> class object.
    • get_version_config_file(): extract version from a config file by specifying a config_path.
    • get_version_hub(): extract version from a config file by specifying a hub_path.
  • Add family of functions for comparing the version number extracted from a variety of sources to a given version number (#171):
    • version_equal(): Check whether a schema version property is equal to.
    • version_gte(): Check whether a schema version property is equal to or greater than.
    • version_gt(): Check whether a schema version property is greater than.
    • version_lte(): Check whether a schema version property is equal to or less than.
    • version_lt(): Check whether a schema version property is less than.
  • <config> class objects now have a type attribute to track what type of config they contain (i.e "tasks" or "admin").
  • read_config() and read_config_file() will attempt to coerce their output a <config> class object, with a warning if unsuccessful (#173).
  • Add as_config() function to coerce a config list to a <config> class object (from the hubAdmin package) (#173).
  • Fix bug in extract_schema_version() where only single digits from each version component were being extracted.
  • Fix documentation for get_schema_version_latest() to no longer use v1.0.0

Pull Requests in this release

Full Changelog: v0.1.7...v0.2.0