-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
78 lines (68 loc) · 2.09 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import os.path
import codecs
import pathlib
from setuptools import setup, find_packages
import os
core_only = os.environ.get("CORE_ONLY", False)
cwd = pathlib.Path(__file__).parent
README = (cwd / "README.md").read_text()
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), "r") as fp:
return fp.read()
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
if not core_only:
name = "aimsim"
desc = "Python command line and GUI tool to analyze molecular similarity."
reqs = read("requirements.txt").split("\n")
packages = find_packages(exclude=["docs", "tests"])
entry_points = {
"console_scripts": [
"aimsim=aimsim.__main__:start_AIMSim",
]
}
else:
name = "aimsim_core"
desc = "Core AIMSim molecular featurization and comparison utilities."
reqs = read("requirements_core.txt").split("\n")
packages = find_packages(
# include=[
# "aimsim.chemical_datastructures",
# "aimsim.ops",
# "aimsim.utils.ccbmlib_fingerprints",
# "aimsim.exceptions",
# "aimsim",
# ],
exclude=[
"docs",
"tests",
"examples",
"interfaces",
"aimsim.tasks",
"aimsim",
],
)
entry_points = {}
setup(
name=name,
python_requires=">=3.8",
version=get_version("aimsim/__init__.py"),
description=desc,
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/VlachosGroup/AIMSim",
author="Himaghna Bhattacharjee, Jackson Burns",
license="MIT",
classifiers=["Programming Language :: Python :: 3"],
install_requires=reqs,
packages=packages,
include_package_data=True,
entry_points=entry_points,
package_dir={name: "aimsim"},
)