"""
{{ name }} Tool Package (v{{ major_version }}.x)

This package contains version {{ major_version }}.x of the {{ name }} tool.
Minor versions share the same interface (properties).
"""

from .properties import properties

# Import all tool versions in this major version
{% for v in versions %}
from .{{ tool_file_base }}_{{ v.major }}_{{ v.minor }} import {{ class_name_base }}_{{ v.major }}_{{ v.minor }}
{% else %}
from .{{ tool_file_base }}_{{ major_version }}_{{ minor_version }} import {{ class_name }}
{% endfor %}

# Latest version in this major release
{% if versions %}
Tool = {{ class_name_base }}_{{ versions[-1].major }}_{{ versions[-1].minor }}
{% else %}
Tool = {{ class_name }}
{% endif %}

__all__ = [
    "properties",
    "Tool",
{% for v in versions %}
    "{{ class_name_base }}_{{ v.major }}_{{ v.minor }}",
{% else %}
    "{{ class_name }}",
{% endfor %}
]
