/
setup.py
47 lines (42 loc) · 1.63 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env python
# setup script for nmrglue
from distutils.core import setup
from codecs import open
from os import path
from drawnmr import __version__
# Determine install position
package_name = 'drawnmr'
import sys
from site import USER_SITE, USER_BASE
rela_path = USER_SITE.split(USER_BASE)[-1][1:]
install_to = path.join(rela_path, package_name)
print(rela_path)
print(install_to)
# get long description from README
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name=package_name,
version=__version__,
description='A module for displaying NMR data with bokeh in Python or Jupyter Notebooks.',
long_description=long_description,
url='https://github.com/tlinnet/drawnmr',
download_url='https://github.com/tlinnet/drawnmr/archive/%s.tar.gz'%__version__,
author='Troels Schwarz-Linnet',
author_email='tlinnet@gmail.com',
license='GNU General Public License v3 (GPLv3)',
classifiers=[
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux'],
requires=['bokeh', 'numpy', 'matplotlib', 'nmrglue', 'scipy', 'ipywidgets', 'pandas'],
packages=['drawnmr'],
data_files=[(install_to, ['README.rst', 'LICENSE'])],
)