-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync PyGeNN version to main GeNN version
* Read version.txt to provide package version in setup.py * Query package to provide version at runtime (pygenn.__version__)
- Loading branch information
1 parent
e9c7942
commit 1d3299d
Showing
2 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
# Import pygenn interface | ||
# python imports | ||
import sys | ||
|
||
# pygenn interface | ||
from .genn_groups import SynapseGroup, NeuronGroup, CurrentSource | ||
from .genn_model import GeNNModel | ||
|
||
if sys.version_info >= (3, 8): | ||
from importlib import metadata | ||
else: | ||
import importlib_metadata as metadata | ||
|
||
__version__ = metadata.version("pygenn") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters