Skip to content

Commit

Permalink
get version from setuptools_scm at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaquier Aurélien Tristan committed Oct 8, 2024
1 parent f3e963a commit f4f4ea5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bluepyopt/ephys/create_hoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import os
import re
import setuptools_scm

from collections import defaultdict, namedtuple, OrderedDict
from datetime import datetime
Expand Down Expand Up @@ -284,7 +285,7 @@ def _get_template_params(

if not disable_banner:
banner = 'Created by BluePyOpt(%s) at %s' % (
bluepyopt.__version__, datetime.now())
setuptools_scm.get_version(), datetime.now())
else:
banner = None

Expand Down

0 comments on commit f4f4ea5

Please sign in to comment.