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 66relative 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.
Original file line number Diff line number Diff line change 77import nibabel as nib
88from nibabel .pkg_info import cmp_pkg_version
99
10- from ..info import VERSION
11-
1210
1311def 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-
4627def test_cmp_pkg_version_0 ():
4728 # Test version comparator
4829 assert cmp_pkg_version (nib .__version__ ) == 0
You can’t perform that action at this time.
0 commit comments