Skip to content

Commit

Permalink
Add API method for retrieving the distribution's python version.
Browse files Browse the repository at this point in the history
  • Loading branch information
nuclearsandwich committed Oct 11, 2019
1 parent 529f03c commit 78aa1cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bloom/rosdistro_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ def list_distributions():
def get_distribution_type(distro):
return get_index().distributions[distro].get('distribution_type')

def get_python_version(distro):
return get_index().distributions[distro].get('python_version')


def get_most_recent(thing_name, repository, reference_distro):
reference_distro_type = get_distribution_type(reference_distro)
Expand Down

0 comments on commit 78aa1cd

Please sign in to comment.