forked from mosdef-hub/msibi
-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
50 lines (40 loc) · 1.27 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
""" "MSIBI: A package for optimizing coarse-grained force fields using multistate
iterative Boltzmann inversion.
"""
import os
import sys
from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
NAME = "msibi"
# Load the package's __version__.py module as a dictionary.
here = os.path.abspath(os.path.dirname(__file__))
about = {}
with open(os.path.join(here, NAME, "__version__.py")) as f:
exec(f.read(), about)
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=NAME,
version=about["__version__"],
description=(
"A package for optimizing coarse-grained force fields using "
+ "multistate iterative Boltzmann inversion."
),
url="http://github.com/cmelab/msibi",
author="Chris Jones",
author_email=("[email protected]"),
packages=find_packages(exclude=("tests", "docs")),
package_data={"msibi": ["msibi/**"]},
license="MIT",
zip_safe=False,
test_suite="tests",
cmdclass={"test": PyTest},
extras_require={"utils": ["pytest"]},
)