Skip to content

Commit

Permalink
Use versioneer for handling Brian versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mstimberg committed Jan 28, 2021
1 parent c025b9d commit b0b6019
Show file tree
Hide file tree
Showing 10 changed files with 2,413 additions and 79 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ MANIFEST.in text
*.png binary
*.pptx binary

brian2/_version.py export-subst
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ exclude *.yml
exclude .coveragerc
exclude .gitattributes
exclude .gitmodules
include versioneer.py
include brian2/_version.py
7 changes: 4 additions & 3 deletions brian2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ def _check_dependencies():

__docformat__ = "restructuredtext en"

__version__ = '2.4.2.dev0'
__release_date__ = '2020-10-28'

from brian2.only import *
from brian2.only import test

Expand Down Expand Up @@ -190,3 +187,7 @@ def _check_caches():
check_cache(target)

_check_caches()

from ._version import get_versions as _get_versions
__version__ = _get_versions()['version']
__release_date__ = _get_versions()['date']
Loading

0 comments on commit b0b6019

Please sign in to comment.