diff --git a/template/src/{{module_name}}/__init__.py.jinja b/template/src/{{module_name}}/__init__.py.jinja index d64ce64..707e3bc 100644 --- a/template/src/{{module_name}}/__init__.py.jinja +++ b/template/src/{{module_name}}/__init__.py.jinja @@ -1,4 +1,4 @@ -{% if use_git_tags_for_versioning == 'y' %} +{% if use_git_tags_for_versioning %} try: from ._version import version as __version__ except ImportError: @@ -7,24 +7,24 @@ except ImportError: __version__ = "0.0.1" {% endif -%} -{% if include_reader_plugin == 'y' %} +{% if include_reader_plugin %} from ._reader import napari_get_reader -{% endif %}{% if include_sample_data_plugin == 'y' -%} +{% endif %}{% if include_sample_data_plugin -%} from ._sample_data import make_sample_data -{% endif %}{% if include_widget_plugin == 'y' -%} +{% endif %}{% if include_widget_plugin -%} from ._widget import ExampleQWidget, ImageThreshold, threshold_autogenerate_widget, threshold_magic_widget -{% endif %}{% if include_writer_plugin == 'y' -%} +{% endif %}{% if include_writer_plugin -%} from ._writer import write_multiple, write_single_image {% endif %} __all__ = ( - {% if include_reader_plugin == 'y' -%} + {% if include_reader_plugin -%} "napari_get_reader", - {% endif %}{% if include_writer_plugin == 'y' -%} + {% endif %}{% if include_writer_plugin -%} "write_single_image", "write_multiple", - {% endif %}{% if include_sample_data_plugin == 'y' -%} + {% endif %}{% if include_sample_data_plugin -%} "make_sample_data", - {% endif %}{% if include_widget_plugin == 'y' -%} + {% endif %}{% if include_widget_plugin -%} "ExampleQWidget", "ImageThreshold", "threshold_autogenerate_widget",