Skip to content

Commit 9b6705d

Browse files
committed
RF: Drop now-unused info.VERSION
1 parent 5cc66aa commit 9b6705d

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

nibabel/info.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,6 @@
66
relative imports.
77
"""
88

9-
# nibabel version information
10-
# This is a fall-back for versioneer when installing from a git archive.
11-
# This should be set to the intended next version + dev to indicate a
12-
# development (pre-release) version.
13-
_version_major = 5
14-
_version_minor = 0
15-
_version_micro = 0
16-
_version_extra = '.dev0'
17-
18-
# Format expected by setup.py and doc/source/conf.py: string of form "X.Y.Z"
19-
VERSION = f'{_version_major}.{_version_minor}.{_version_micro}{_version_extra}'
20-
21-
229
# Note: this long_description is the canonical place to edit this text.
2310
# It also appears in README.rst, but it should get there by running
2411
# ``tools/refresh_readme.py`` which pulls in this version.

nibabel/tests/test_pkg_info.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
import nibabel as nib
88
from nibabel.pkg_info import cmp_pkg_version
99

10-
from ..info import VERSION
11-
1210

1311
def test_pkg_info():
1412
"""Smoke test nibabel.get_info()
@@ -26,23 +24,6 @@ def test_version():
2624
assert nib.pkg_info.__version__ == nib.__version__
2725

2826

29-
def test_fallback_version():
30-
"""Test fallback version is up-to-date
31-
32-
This should only fail if we fail to bump nibabel.info.VERSION immediately
33-
after release
34-
"""
35-
ver = Version(nib.__version__)
36-
fallback = Version(VERSION)
37-
assert (
38-
# Releases have no local information, archive matches versioneer
39-
ver.local is None
40-
or
41-
# dev version should be larger than tag+commit-githash
42-
fallback >= ver
43-
), 'nibabel.info.VERSION does not match latest tag information'
44-
45-
4627
def test_cmp_pkg_version_0():
4728
# Test version comparator
4829
assert cmp_pkg_version(nib.__version__) == 0

0 commit comments

Comments
 (0)