hubUtils 0.2.0
- 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 aconfig_path
.get_version_hub()
: extract version from a config file by specifying ahub_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 atype
attribute to track what type of config they contain (i.e"tasks"
or"admin"
).read_config()
andread_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 thehubAdmin
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 usev1.0.0
Pull Requests in this release
- Update Workflows by @zkamvar in #166
- Add utilities for extracting and comparing hub config schema versions by @annakrystalli in #172
- Return config class object from
read_config
andread_config_file
by @annakrystalli in #174 - Use package version instead of version string for comparisons by @annakrystalli in #178
- 🐛 Fix schema dev component extraction bug by @annakrystalli in #180
- remove/exclude examples that throw warnings by @zkamvar in #181
- Release 0.2.0 by @annakrystalli in #184
Full Changelog: v0.1.7...v0.2.0