-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
46 lines (40 loc) · 1.62 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
#!/usr/bin/env python
import os
import setuptools
module_dir = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(module_dir, 'readme.rst'), "r") as f:
long_description = f.read()
with open("requirements.txt", "r") as f:
requires = f.readlines()
install_requires = requires[:requires.index("EXTRAS_REQUIRE\n")]
extras_require = {}
extra = ""
for extra_require in requires[requires.index("EXTRAS_REQUIRE\n") + 1:]:
if extra_require.startswith("-"):
extra = extra_require.strip().lstrip("-")
continue
if extra in extras_require:
extras_require[extra].append(extra_require)
else:
extras_require[extra] = [extra_require]
test_requires = ['pytest']
if __name__ == "__main__":
setuptools.setup(
name='uf3',
version='0.4.0',
description='Ultra-Fast Force Fields for molecular dynamics',
long_description=long_description,
url='https://github.com/uf3/uf3',
author='Stephen R. Xie, Matthias Rupp',
author_email='[email protected]',
license='Apache 2.0',
packages=setuptools.find_packages(exclude=["tests"]),
install_requires=install_requires,
extras_require=extras_require,
classifiers=["Programming Language :: Python :: 3.7",
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering'],
tests_require=test_requires,
)