From 7ebad14f65864879b40b11ac41cb52e44b79d4fe Mon Sep 17 00:00:00 2001 From: spapa013 Date: Thu, 18 Nov 2021 09:10:06 -0600 Subject: [PATCH 1/2] adds check_latest_version --- .../microns_materialization_api/__init__.py | 10 ++++++++-- .../microns_materialization/__init__.py | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/python/microns-materialization-api/microns_materialization_api/__init__.py b/python/microns-materialization-api/microns_materialization_api/__init__.py index 7b4c112..b7e57dc 100644 --- a/python/microns-materialization-api/microns_materialization_api/__init__.py +++ b/python/microns-materialization-api/microns_materialization_api/__init__.py @@ -1,6 +1,6 @@ from microns_utils import version_utils -__version__ = version_utils.get_package_version( +__version__ = version_utils.check_package_version( package='microns-materialization-api', check_if_latest=True, check_if_latest_kwargs=dict( @@ -8,4 +8,10 @@ repo='microns-materialization', source='tag', ) -) \ No newline at end of file +) + +def check_latest_version_from_github(owner='cajal', repo='microns-materialization', source='tag', branch=None, path_to_version_file=None, warn=True): + """ + Wrapper for :func:`~microns_utils.version_utils.check_latest_version_from_github` + """ + return version_utils.check_latest_version_from_github(owner=owner, repo=repo, source=source, branch=branch, path_to_version_file=path_to_version_file, warn=warn) \ No newline at end of file diff --git a/python/microns-materialization/microns_materialization/__init__.py b/python/microns-materialization/microns_materialization/__init__.py index ba59899..acd73fd 100644 --- a/python/microns-materialization/microns_materialization/__init__.py +++ b/python/microns-materialization/microns_materialization/__init__.py @@ -1,6 +1,6 @@ from microns_utils import version_utils -__version__ = version_utils.get_package_version( +__version__ = version_utils.check_package_version( package='microns-materialization', check_if_latest=True, check_if_latest_kwargs=dict( @@ -8,4 +8,10 @@ repo='microns-materialization', source='tag', ) -) \ No newline at end of file +) + +def check_latest_version_from_github(owner='cajal', repo='microns-materialization', source='tag', branch=None, path_to_version_file=None, warn=True): + """ + Wrapper for :func:`~microns_utils.version_utils.check_latest_version_from_github` + """ + return version_utils.check_latest_version_from_github(owner=owner, repo=repo, source=source, branch=branch, path_to_version_file=path_to_version_file, warn=warn) \ No newline at end of file From 0433a7a39c659028d91556ce77e2d6b9beb229b1 Mon Sep 17 00:00:00 2001 From: spapa013 Date: Thu, 18 Nov 2021 18:13:35 -0600 Subject: [PATCH 2/2] updates version --- python/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/version.py b/python/version.py index a0235ce..e344246 100644 --- a/python/version.py +++ b/python/version.py @@ -1 +1 @@ -__version__ = "0.0.2" \ No newline at end of file +__version__ = "0.0.3" \ No newline at end of file