Skip to content

Commit

Permalink
Drop the commit and dev status from version in output
Browse files Browse the repository at this point in the history
  • Loading branch information
jteijema committed Jan 8, 2025
1 parent d61f250 commit 21b97e9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions asreviewcontrib/makita/template_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from cfgtemplater.config_template import ConfigTemplate

from asreviewcontrib.makita import __version__
from asreviewcontrib.makita import __version_tuple__
from asreviewcontrib.makita.config import TEMPLATES_FP
from asreviewcontrib.makita.entrypoint import ProjectPaths
from asreviewcontrib.makita.utils import FileHandler
Expand Down Expand Up @@ -36,7 +36,11 @@ def __init__(
self.instances_per_query = instances_per_query
self.stop_if = stop_if
self.file_handler = file_handler
self.__version__ = __version__
self.__version__ = '.'.join(
str(part)
for part in __version_tuple__
if isinstance(part, int)
)

self.template = ConfigTemplate(
fp_template if fp_template is not None else self.get_template_file()
Expand Down

0 comments on commit 21b97e9

Please sign in to comment.