File tree Expand file tree Collapse file tree 2 files changed +0
-32
lines changed Expand file tree Collapse file tree 2 files changed +0
-32
lines changed Original file line number Diff line number Diff line change 6
6
relative imports.
7
7
"""
8
8
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
-
22
9
# Note: this long_description is the canonical place to edit this text.
23
10
# It also appears in README.rst, but it should get there by running
24
11
# ``tools/refresh_readme.py`` which pulls in this version.
Original file line number Diff line number Diff line change 7
7
import nibabel as nib
8
8
from nibabel .pkg_info import cmp_pkg_version
9
9
10
- from ..info import VERSION
11
-
12
10
13
11
def test_pkg_info ():
14
12
"""Smoke test nibabel.get_info()
@@ -26,23 +24,6 @@ def test_version():
26
24
assert nib .pkg_info .__version__ == nib .__version__
27
25
28
26
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
-
46
27
def test_cmp_pkg_version_0 ():
47
28
# Test version comparator
48
29
assert cmp_pkg_version (nib .__version__ ) == 0
You can’t perform that action at this time.
0 commit comments