1""" This file contains defines parameters for nibabel that we use to fill
2settings in setup.py, the nibabel top-level docstring, and for building the
3docs.  In setup.py in particular, we exec this file, so it cannot import nibabel
4"""
5
6# nibabel version information.  An empty _version_extra corresponds to a
7# full release.  '.dev' as a _version_extra string means this is a development
8# version
9_version_major = 1
10_version_minor = 3
11_version_micro = 0
12#_version_extra = 'dev'
13_version_extra = ''
14
15# Format expected by setup.py and doc/source/conf.py: string of form "X.Y.Z"
16__version__ = "%s.%s.%s%s" % (_version_major,
17                              _version_minor,
18                              _version_micro,
19                              _version_extra)
20
21CLASSIFIERS = ["Development Status :: 3 - Alpha",
22               "Environment :: Console",
23               "Intended Audience :: Science/Research",
24               "License :: OSI Approved :: MIT License",
25               "Operating System :: OS Independent",
26               "Programming Language :: Python",
27               "Topic :: Scientific/Engineering"]
28
29description  = 'Access a multitude of neuroimaging data formats'
30
31# Note: this long_description is actually a copy/paste from the top-level
32# README.rst, so that it shows up nicely on PyPI.  So please remember to edit
33# it only in one place and sync it correctly.
34long_description = """
35=======
36NiBabel
37=======
38
39This package provides read and write access to some common medical and
40neuroimaging file formats, including: ANALYZE_ (plain, SPM99, SPM2),
41GIFTI_, NIfTI1_, MINC_, MGH_ and ECAT_ as well as PAR/REC.  We can read and
42write Freesurfer_ geometry, and read Freesurfer morphometry and annotation
43files.  There is some very limited support for DICOM_.  NiBabel is the successor
44of PyNIfTI_.
45
46.. _ANALYZE: http://www.grahamwideman.com/gw/brain/analyze/formatdoc.htm
47.. _NIfTI1: http://nifti.nimh.nih.gov/nifti-1/
48.. _MINC: http://wiki.bic.mni.mcgill.ca/index.php/MINC
49.. _PyNIfTI: http://niftilib.sourceforge.net/pynifti/
50.. _GIFTI: http://www.nitrc.org/projects/gifti
51.. _MGH: http://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/MghFormat
52.. _ECAT: http://xmedcon.sourceforge.net/Docs/Ecat
53.. _Freesurfer: http://surfer.nmr.mgh.harvard.edu
54.. _DICOM: http://medical.nema.org/
55
56The various image format classes give full or selective access to header (meta)
57information and access to the image data is made available via NumPy arrays.
58
59Website
60=======
61
62Current information can always be found at the NIPY nibabel website::
63
64    http://nipy.org/nibabel
65
66Mailing Lists
67=============
68
69Please see the developer's list here::
70
71    http://mail.scipy.org/mailman/listinfo/nipy-devel
72
73Code
74====
75
76You can find our sources and single-click downloads:
77
78* `Main repository`_ on Github.
79* Documentation_ for all releases and current development tree.
80* Download as a tar/zip file the `current trunk`_.
81* Downloads of all `available releases`_.
82
83.. _main repository: http://github.com/nipy/nibabel
84.. _Documentation: http://nipy.org/nibabel
85.. _current trunk: http://github.com/nipy/nibabel/archives/master
86.. _available releases: http://github.com/nipy/nibabel/downloads
87
88License
89=======
90
91Nibabel is licensed under the terms of the MIT license. Some code included with
92nibabel is licensed under the BSD license.  Please the COPYING file in the
93nibabel distribution.
94"""
95
96# versions for dependencies
97NUMPY_MIN_VERSION='1.2'
98PYDICOM_MIN_VERSION='0.9.5'
99
100# Main setup parameters
101NAME                = 'nibabel'
102MAINTAINER          = "Matthew Brett and Michael Hanke"
103MAINTAINER_EMAIL    = "nipy-devel@neuroimaging.scipy.org"
104DESCRIPTION         = description
105LONG_DESCRIPTION    = long_description
106URL                 = "http://nipy.org/nibabel"
107DOWNLOAD_URL        = "http://github.com/nipy/nibabel/archives/master"
108LICENSE             = "MIT license"
109CLASSIFIERS         = CLASSIFIERS
110AUTHOR              = "Matthew Brett, Michael Hanke, Stephan Gerhard"
111AUTHOR_EMAIL        = "nipy-devel@neuroimaging.scipy.org"
112PLATFORMS           = "OS Independent"
113MAJOR               = _version_major
114MINOR               = _version_minor
115MICRO               = _version_micro
116ISRELEASE           = _version_extra == ''
117VERSION             = __version__
118PROVIDES            = ["nibabel"]
119REQUIRES            = ["numpy (>=%s)" % NUMPY_MIN_VERSION]
120