-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
45 lines (36 loc) · 1.19 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
""""MSIBI: A package for optimizing coarse-grained force fields using multistate
iterative Boltzmann inversion.
"""
from setuptools import setup
from setuptools.command.test import test as TestCommand
import sys
try:
import mdtraj
except ImportError:
print('Building and running msibi requires mdtraj. See '
'http://mdtraj.org/latest/installation.html for help!')
sys.exit(1)
requirements = [line.strip() for line in open('requirements.txt').readlines()]
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errcode = pytest.main(['msibi'])
sys.exit(errcode)
setup(name='msibi',
version='0.1',
description='',
url='http://github.com/mosdef-hub/misibi',
author='Christoph Klein, Timothy C. Moore',
author_email='[email protected], [email protected]',
license='MIT',
packages=['msibi'],
install_requires=requirements,
zip_safe=False,
test_suite='tests',
cmdclass={'test': PyTest},
extras_require={'utils': ['pytest']},
)