Skip to content

Commit 6e41576

Browse files
committed
Use nengo-bones to template version.py
1 parent ac00184 commit 6e41576

File tree

3 files changed

+23
-8
lines changed

3 files changed

+23
-8
lines changed

.nengobones.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,10 @@ codecov_yml: {}
133133
pre_commit_config_yaml: {}
134134

135135
pyproject_toml: {}
136+
137+
version_py:
138+
type: semver
139+
major: 0
140+
minor: 4
141+
patch: 0
142+
release: false

keras_lmu/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""KerasLMU provides a package for deep learning with Legendre Memory Units."""
22

33
from .layers import LMU, LMUCell, LMUFeedforward
4+
from .version import copyright as __copyright__
45
from .version import version as __version__
56

6-
__copyright__ = "2019-2021, Applied Brain Research"
77
__license__ = "Free for non-commercial use; see LICENSE.rst"

keras_lmu/version.py

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
1+
# Automatically generated by nengo-bones, do not edit this file directly
2+
13
"""KerasLMU version information.
24
3-
We use semantic versioning (see http://semver.org/).
5+
We use semantic versioning (see http://semver.org/)
46
and conform to PEP440 (see https://www.python.org/dev/peps/pep-0440/).
5-
'.devN' will be added to the version unless the code base represents
7+
'.dev0' will be added to the version unless the code base represents
68
a release version. Release versions are git tagged with the version.
79
"""
810

9-
name = "keras_lmu"
10-
version_info = (0, 4, 0) # (major, minor, patch)
11-
dev = 0 # set to None for releases
11+
version_info = (0, 4, 0)
12+
13+
name = "keras-lmu"
14+
dev = 0
1215

13-
version = (
14-
f"{'.'.join(str(v) for v in version_info)}{f'.dev{dev}' if dev is not None else ''}"
16+
# use old string formatting, so that this can still run in Python <= 3.5
17+
# (since this file is parsed in setup.py, before python_requires is applied)
18+
version = "{v}{dev}".format(
19+
v=".".join(str(v) for v in version_info),
20+
dev=(".dev%d" % dev) if dev is not None else "",
1521
)
22+
23+
copyright = "Copyright (c) 2019-2021 Applied Brain Research"

0 commit comments

Comments
 (0)