From 0cc82deb098cca58839a2a68f25840ad65656cc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaquier=20Aur=C3=A9lien=20Tristan?= Date: Tue, 8 Oct 2024 10:34:25 +0200 Subject: [PATCH] put back __version__ in __init__ --- bluepyopt/__init__.py | 4 ++++ bluepyopt/ephys/create_hoc.py | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bluepyopt/__init__.py b/bluepyopt/__init__.py index f8544b28..075e646e 100644 --- a/bluepyopt/__init__.py +++ b/bluepyopt/__init__.py @@ -20,6 +20,10 @@ """ # pylint: disable=W0611 +import setuptools_scm + +__version__ = setuptools_scm.get_version() + from . import tools # NOQA from .api import * # NOQA diff --git a/bluepyopt/ephys/create_hoc.py b/bluepyopt/ephys/create_hoc.py index 386056e0..b1a340c1 100644 --- a/bluepyopt/ephys/create_hoc.py +++ b/bluepyopt/ephys/create_hoc.py @@ -4,7 +4,6 @@ import os import re -import setuptools_scm from collections import defaultdict, namedtuple, OrderedDict from datetime import datetime @@ -285,7 +284,7 @@ def _get_template_params( if not disable_banner: banner = 'Created by BluePyOpt(%s) at %s' % ( - setuptools_scm.get_version(), datetime.now()) + bluepyopt.__version__, datetime.now()) else: banner = None