-
Notifications
You must be signed in to change notification settings - Fork 46
/
setup.py
63 lines (53 loc) · 1.58 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
from os import path
import setuptools
import datetime
from setuptools import find_packages
NAME = "dmff"
readme_file = path.join(path.dirname(path.abspath(__file__)), 'README.md')
try:
from m2r import parse_from_file
readme = parse_from_file(readme_file)
except (ImportError, AttributeError) as e:
with open(readme_file) as f:
readme = f.read()
today = datetime.date.today().strftime("%b-%d-%Y")
with open(path.join('dmff', '_date.py'), 'w') as fp:
fp.write('date = \'%s\'' % today)
install_requires = [
"numpy>=1.18",
"openmm>=7.6.0",
"freud-analysis",
"networkx>=3.0",
"optax>=0.1.4",
"jaxopt>=0.8.0",
"pymbar>=4.0.0",
"tqdm"
]
def setup(scm=None):
packages = find_packages(exclude=["tests"])
setuptools.setup(
name=NAME,
use_scm_version=scm,
setup_requires=['setuptools_scm'],
author="DeepModeling",
author_email="[email protected]",
description="Differentiable Molecular Force Field",
long_description=readme,
long_description_content_type="text/markdown",
url="https://github.com/deepmodeling/DMFF",
python_requires="~=3.8",
packages=packages,
data_files=[],
package_data={},
classifiers=[
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
],
keywords='DMFF',
install_requires=install_requires,
entry_points={}
)
try:
setup(scm={'write_to': 'dmff/_version.py'})
except:
setup(scm=None)