setup.py 4.12 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',
33
    version='0.59.4',
34
    description='Python library for scientific analysis of microscopy data',
Somnath, Suhas's avatar
Somnath, Suhas committed
35
    long_description=long_description,
nlaanait's avatar
nlaanait committed
36
    classifiers=[
37
        'Development Status :: 3 - Alpha',
nlaanait's avatar
nlaanait committed
38
39
40
41
42
43
44
        '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
51
52
53
54
55
56
57
58
59
        'Topic :: Scientific/Engineering :: Information Analysis'],
    keywords=['EELS', 'STEM', 'TEM', 'XRD', 'AFM', 'SPM', 'STS', 'band excitation', 'BE', 'BEPS', 'Raman', 'NanoIR',
              'ptychography', 'g-mode', 'general mode', 'electron microscopy', ' scanning probe', ' x-rays', 'probe',
              'atomic force microscopy', 'SIMS', 'energy', 'spectroscopy', 'imaging', 'microscopy', 'spectra'
              'characterization', 'spectrogram', 'hyperspectral', 'multidimensional', 'data format', 'universal',
              'clustering', 'decomposition', 'curve fitting', 'data analysis PCA', ' SVD', ' NMF', ' DBSCAN', ' kMeans',
              'machine learning', 'bayesian inference', 'fft filtering', 'signal processing', 'image cleaning',
              'denoising', 'model', 'msa', 'quantification',
              'png', 'tiff', 'hdf5', 'igor', 'ibw', 'dm3', 'oneview', 'KPFM', 'FORC', 'ndata',
              'Asylum', 'MFP3D', 'Cypher', 'Omicron', 'Nion', 'Nanonis', 'FEI'],
nlaanait's avatar
nlaanait committed
60
    packages=find_packages(exclude='tests'),
syz's avatar
syz committed
61
    url='https://pycroscopy.github.io/pycroscopy/about.html',
nlaanait's avatar
nlaanait committed
62
    license='MIT',
Somnath, Suhas's avatar
Somnath, Suhas committed
63
    author='S. Somnath, C. R. Smith, N. Laanait',
nlaanait's avatar
nlaanait committed
64
    author_email='pycroscopy@gmail.com',
Chris Smith's avatar
Chris Smith committed
65
    install_requires=requirements,
66
67
    setup_requires=['pytest-runner'],
    tests_require=['pytest', 'Nose'],
68
    platforms=['Linux', 'Mac OSX', 'Windows 10/8.1/8/7'],
Somnath, Suhas's avatar
Somnath, Suhas committed
69
    # package_data={'sample':['dataset_1.dat']}
nlaanait's avatar
nlaanait committed
70
    test_suite='nose.collector',
Somnath, Suhas's avatar
Somnath, Suhas committed
71
72
    dependency='',
    dependency_links=[''],
nlaanait's avatar
nlaanait committed
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
    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',
    #     ],
    # },
)