-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from spapa013/main
v0.0.3 - updates get_package_version --> check_package_version
- Loading branch information
Showing
3 changed files
with
17 additions
and
5 deletions.
There are no files selected for viewing
10 changes: 8 additions & 2 deletions
10
python/microns-materialization-api/microns_materialization_api/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
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( | ||
owner='cajal', | ||
repo='microns-materialization', | ||
source='tag', | ||
) | ||
) | ||
) | ||
|
||
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) |
10 changes: 8 additions & 2 deletions
10
python/microns-materialization/microns_materialization/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
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( | ||
owner='cajal', | ||
repo='microns-materialization', | ||
source='tag', | ||
) | ||
) | ||
) | ||
|
||
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.0.2" | ||
__version__ = "0.0.3" |