setup.py 1.86 KB
Newer Older
Saad Jbabdi's avatar
Saad Jbabdi committed
1
2
#!/usr/bin/env python

William Clarke's avatar
William Clarke committed
3
from setuptools import setup
William Clarke's avatar
William Clarke committed
4
import versioneer
Saad Jbabdi's avatar
Saad Jbabdi committed
5

6
with open('requirements.txt', 'rt') as f:
William Clarke's avatar
William Clarke committed
7
    install_requires = [line.strip() for line in f.readlines()]
8

William Clarke's avatar
William Clarke committed
9
10
with open("README.md", "r") as fh:
    long_description = fh.read()
11

William Clarke's avatar
William Clarke committed
12
setup(name='fsl_mrs',
William Clarke's avatar
William Clarke committed
13
14
      version=versioneer.get_version(),
      cmdclass=versioneer.get_cmdclass(),
Saad Jbabdi's avatar
Saad Jbabdi committed
15
      description='FSL Tools for Spectroscopy',
William Clarke's avatar
William Clarke committed
16
17
      author=['Saad Jbabdi', 'William Clarke'],
      author_email=['saad@fmrib.ox.ac.uk', 'william.clarke@ndcn.ox.ac.uk'],
18
      url='www.fmrib.ox.ac.uk/fsl',
William Clarke's avatar
William Clarke committed
19
20
      long_description=long_description,
      long_description_content_type="text/markdown",
21
      packages=['fsl_mrs',
22
                'fsl_mrs.core',
23
24
25
26
27
                'fsl_mrs.utils',
                'fsl_mrs.utils.mrs_io',
                'fsl_mrs.utils.stats',
                'fsl_mrs.utils.preproc',
                'fsl_mrs.utils.synthetic',
28
                'fsl_mrs.utils.dynamic',
29
                'fsl_mrs.utils.nifti_mrs_tools',
30
31
                'fsl_mrs.denmatsim',
                'fsl_mrs.mmbasis',
32
                'fsl_mrs.auxiliary'
33
                ],
William Clarke's avatar
William Clarke committed
34
35
36
37
      package_data={'fsl_mrs.denmatsim': ['spinSystems.json'],
                    'fsl_mrs.mmbasis': ['mmbasis.json'],
                    'fsl_mrs.utils.preproc': ['templates/*.html'],
                    'fsl_mrs': ['pkg_data/mrs_fitting_challenge/*/*']},
Saad Jbabdi's avatar
Saad Jbabdi committed
38
      install_requires=install_requires,
39
      scripts=['fsl_mrs/scripts/fsl_mrs',
William Clarke's avatar
William Clarke committed
40
41
42
43
               'fsl_mrs/scripts/fsl_mrsi',
               'fsl_mrs/scripts/fsl_mrs_preproc',
               'fsl_mrs/scripts/fsl_mrs_proc',
               'fsl_mrs/scripts/fsl_mrs_sim',
44
               'fsl_mrs/scripts/mrs_tools',
William Clarke's avatar
William Clarke committed
45
46
47
48
49
               'fsl_mrs/scripts/merge_mrs_reports',
               'fsl_mrs/scripts/svs_segment',
               'fsl_mrs/scripts/mrsi_segment',
               'fsl_mrs/scripts/results_to_spectrum']
      )