Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
45 lines (37 loc) · 1.36 KB
/
Copy pathsetup.py
File metadata and controls
45 lines (37 loc) · 1.36 KB
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
import fnmatch
from setuptools import setup, find_packages
# Path to the directory that contains this setup.py file.
base_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(base_dir, "molscrub", "_version.py")) as f:
version = re.search(r'__version__ = "(.+)"', f.read()).group(1)
def find_files(directory):
matches = []
for root, dirnames, filenames in os.walk(directory):
for filename in fnmatch.filter(filenames, "*"):
matches.append(os.path.join(root, filename))
return matches
setup(
name="molscrub",
author="Forli Lab",
version=version,
author_email="forli@scripps.edu",
url="https://github.com/forlilab/molscrub",
description="Enumerate states of small organic molecules: 3D coordinates, tautomers, pH-based adjustments",
long_description=open(os.path.join(base_dir, "README.md")).read(),
long_description_content_type="text/markdown",
packages=find_packages(),
scripts=[
"scripts/scrub.py",
],
package_data={"molscrub": ["data/*"]},
data_files=[("", ["README.md", "LICENSE"]), ("scripts", find_files("scripts"))],
include_package_data=True,
zip_safe=False,
install_requires=["rdkit>=2022.03.1", "rich", "numpy", "joblib", "pandas"],
python_requires=">=3.9",
license="GPL-v3",
)