forked from MobleyLab/blues
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
85 lines (77 loc) · 2.46 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
"""
This setup.py script and other related installation scripts are adapted from
https://github.com/choderalab/yank/blob/master/setup.py
"""
from setuptools import setup, find_packages
from os.path import relpath, join
import os, sys
import versioneer
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
long_description = "Error reading README"
#from Cython.Build import cythonize
DOCLINES = __doc__.split("\n")
CLASSIFIERS = """\
Development Status :: 1 - Alpha
Intended Audience :: Science/Research
Intended Audience :: Developers
License :: OSI Approved :: The MIT License (MIT)
Programming Language :: Python
Programming Language :: Python :: 3
Topic :: Scientific/Engineering :: Chemistry
Operating System :: Unix
"""
def find_package_data(data_root, package_root):
files = []
for root, dirnames, filenames in os.walk(data_root):
for fn in filenames:
files.append(relpath(join(root, fn), package_root))
return files
################################################################################
# SETUP
################################################################################
setup(
name='blues',
author="Samuel C. Gill, Nathan M. Lim, Kalistyn Burley, David L. Mobley, and others",
author_email='[email protected]',
description=DOCLINES[0],
long_description=long_description,
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
license='MIT',
python_requires=">=3.5",
url='https://github.com/MobleyLab/blues',
platforms=['Linux-64', 'Mac OSX-64', 'Unix-64'],
classifiers=CLASSIFIERS.splitlines(),
packages=['blues', "blues.tests", "blues.tests.data"] +
['blues.{}'.format(package) for package in find_packages('blues')],
package_data={
'blues':
find_package_data('blues/tests/data', 'blues') + ['notebooks/*.ipynb'] + ['images/*'] + ['examples/*.yml']
},
package_dir={'blues': 'blues'},
extras_require={
'docs': [
'sphinx', # autodoc was broken in 1.3.1
'sphinxcontrib-napoleon',
'sphinx_rtd_theme',
'numpydoc',
'nbsphinx'
],
'tests': [
'pytest',
'pytest-cov',
'pytest-pep8',
'tox',
],
},
tests_require=[
'pytest',
'pytest-cov',
'pytest-pep8',
'tox',
],
zip_safe=False,
include_package_data=True)