setup.py 3.25 KB
Newer Older
nlaanait's avatar
nlaanait committed
1
from codecs import open
Chris Smith's avatar
Chris Smith committed
2
3
4
import os

on_rtd = os.environ.get('READTHEDOCS') == 'True'
nlaanait's avatar
nlaanait committed
5

nlaanait's avatar
nlaanait committed
6
from setuptools import setup, find_packages
nlaanait's avatar
nlaanait committed
7

Chris Smith's avatar
Chris Smith committed
8
9
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst')) as f:
Somnath, Suhas's avatar
Somnath, Suhas committed
10
    long_description = f.read()
nlaanait's avatar
nlaanait committed
11

Chris Smith's avatar
Chris Smith committed
12
if on_rtd:
Unknown's avatar
Unknown committed
13
14
    requirements = ['psutil',
                    'xlrd>=1.0.0']
Chris Smith's avatar
Chris Smith committed
15
else:
Unknown's avatar
Unknown committed
16
17
18
19
20
21
22
23
24
25
26
27
28
29
    requirements = ['numpy_groupies>=0.9.6',
                    'pyqtgraph>=0.10',
                    'h5py>=2.6.0',
                    'igor',
                    'matplotlib>=2.0.0',
                    'scikit-learn>=0.17.1',
                    'xlrd>=1.0.0',
                    'joblib>=0.11',
                    'psutil',
                    'scikit-image>=0.12.3',
                    'scipy>=0.17.1',
                    'numpy>=1.11.0',
                    'ipywidgets>=5.2.2',
                    'ipython>=5.1.0']
Chris Smith's avatar
Chris Smith committed
30

nlaanait's avatar
nlaanait committed
31
setup(
32
    name='pycroscopy',
Unknown's avatar
Unknown committed
33
    version='0.59.1',
nlaanait's avatar
nlaanait committed
34
    description='A suite of Python libraries for high performance scientific computing of microscopy data.',
Somnath, Suhas's avatar
Somnath, Suhas committed
35
    long_description=long_description,
nlaanait's avatar
nlaanait committed
36
37
38
39
40
41
42
43
44
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Environment :: Console',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Cython',
        'Programming Language :: Python :: 2.7',
45
46
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.5',
nlaanait's avatar
nlaanait committed
47
48
49
        'Programming Language :: Python :: Implementation :: CPython',
        'Topic :: Scientific/Engineering :: Chemistry',
        'Topic :: Scientific/Engineering :: Physics',
50
        'Topic :: Scientific/Engineering :: Information Analysis',
nlaanait's avatar
nlaanait committed
51
        ],
52
    keywords='scientific microscopy data analysis',
nlaanait's avatar
nlaanait committed
53
    packages=find_packages(exclude='tests'),
54
    url='http://github.com/pycroscopy/pycroscopy',
nlaanait's avatar
nlaanait committed
55
    license='MIT',
Somnath, Suhas's avatar
Somnath, Suhas committed
56
    author='S. Somnath, C. R. Smith, N. Laanait',
nlaanait's avatar
nlaanait committed
57
    author_email='pycroscopy@gmail.com',
nlaanait's avatar
nlaanait committed
58
59

    # I don't remember how to do this correctly!!!. NL
Chris Smith's avatar
Chris Smith committed
60
    install_requires=requirements,
Somnath, Suhas's avatar
Somnath, Suhas committed
61
    # package_data={'sample':['dataset_1.dat']}
nlaanait's avatar
nlaanait committed
62
63
    test_suite='nose.collector',
    tests_require='Nose',
Somnath, Suhas's avatar
Somnath, Suhas committed
64
65
    dependency='',
    dependency_links=[''],
nlaanait's avatar
nlaanait committed
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
    include_package_data=True,

    # If there are data files included in your packages that need to be
    # installed, specify them here.  If using Python 2.6 or less, then these
    # have to be included in MANIFEST.in as well.
    # package_data={
    #     'sample': ['package_data.dat'],
    # },

    # Although 'package_data' is the preferred approach, in some case you may
    # need to place data files outside of your packages. See:
    # http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files # noqa
    # In this case, 'data_file' will be installed into '<sys.prefix>/my_data'
    # data_files=[('my_data', ['data/data_file'])],

    # To provide executable scripts, use entry points in preference to the
    # "scripts" keyword. Entry points provide cross-platform support and allow
    # pip to create the appropriate form of executable for the target platform.
    # entry_points={
    #     'console_scripts': [
    #         'sample=sample:main',
    #     ],
    # },
)