-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
58 lines (50 loc) · 2.55 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
"""
smirnoff-plugins
Custom parameter handlers for extending SMIRNOFF force fields.
"""
import sys
from setuptools import find_packages, setup
import versioneer
short_description = __doc__.split("\n")
# from https://github.com/pytest-dev/pytest-runner#conditional-requirement
needs_pytest = {"pytest", "test", "ptr"}.intersection(sys.argv)
pytest_runner = ["pytest-runner"] if needs_pytest else []
try:
with open("README.md") as handle:
long_description = handle.read()
except OSError:
long_description = "\n".join(short_description[2:])
setup(
# Self-descriptive entries which should always be present
name="smirnoff-plugins",
author="Simon Boothroyd",
author_email="simon.boothroyd@colorado.edu",
description=short_description[0],
long_description=long_description,
long_description_content_type="text/markdown",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
license="MIT",
packages=find_packages(),
include_package_data=True,
setup_requires=[] + pytest_runner,
# Make the handler plugins discoverable.
entry_points={
"openff.toolkit.plugins.handlers": [
"DampedBuckingham68Handler = smirnoff_plugins.handlers.nonbonded:DampedBuckingham68Handler",
"DoubleExponentialHandler = smirnoff_plugins.handlers.nonbonded:DoubleExponentialHandler",
"DampedExp6810Handler = smirnoff_plugins.handlers.nonbonded:DampedExp6810Handler",
"AxilrodTellerHandler = smirnoff_plugins.handlers.nonbonded:AxilrodTellerHandler",
"MultipoleHandler = smirnoff_plugins.handlers.nonbonded:MultipoleHandler",
"DoubleExponentialVirtualSiteHandler = smirnoff_plugins.handlers.vsites:DoubleExponentialVirtualSiteHandler",
],
"openff.interchange.plugins.collections": [
"SMIRNOFFDampedBuckingham68Collection = smirnoff_plugins.collections.nonbonded:SMIRNOFFDampedBuckingham68Collection",
"DoubleExponentialCollection = smirnoff_plugins.collections.nonbonded:SMIRNOFFDoubleExponentialCollection",
"SMIRNOFFDampedExp6810Collection = smirnoff_plugins.collections.nonbonded:SMIRNOFFDampedExp6810Collection",
"SMIRNOFFAxilrodTellerCollection = smirnoff_plugins.collections.nonbonded:SMIRNOFFAxilrodTellerCollection",
"SMIRNOFFMultipoleCollection = smirnoff_plugins.collections.nonbonded:SMIRNOFFMultipoleCollection",
"SMIRNOFFDoubleExponentialVirtualSiteCollection = smirnoff_plugins.collections.vsites:SMIRNOFFDoubleExponentialVirtualSiteCollection",
],
},
)