-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathsetup.py
74 lines (64 loc) · 2.1 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
"""
scaffoldgraph setup.py
"""
from setuptools import setup, find_packages
from pathlib import Path
import re
url = 'https://github.com/UCLCheminformatics/scaffoldgraph'
description = 'ScaffoldGraph is an open-source cheminformatics library, built using RDKit and \
NetworkX for generating scaffold networks and scaffold trees.'
root = Path(__file__).parent.resolve()
init_path = root / 'scaffoldgraph' / '__init__.py'
with init_path.open('r', encoding='utf8') as f:
__version__ = re.findall("__version__ = '(.*)'", f.read())[0]
requires_path = root / 'requirements.txt'
with requires_path.open('r', encoding='utf8') as f:
install_requires = [line.strip() for line in f]
install_requires.remove('rdkit')
readme_path = root / 'README.md'
with readme_path.open('r', encoding='utf-8') as f:
long_description = f.read()
setup_requires = ['pytest-runner']
tests_require = ['pytest', 'pytest-cov']
entry_points = {
'console_scripts': [
'scaffoldgraph = scaffoldgraph.scripts.run:scaffoldgraph_main',
]
}
setup(
name='ScaffoldGraph',
version=__version__,
description=description,
long_description=long_description,
long_description_content_type='text/markdown',
author='Oliver Scott',
author_email='[email protected]',
url=url,
download_url='{}/archive/{}.tar.gz'.format(url, __version__),
license='MIT',
keywords=[
'rdkit',
'networkx',
'cheminformatics',
'scaffolds',
'scaffold tree',
'scaffold network'
],
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Scientific/Engineering :: Chemistry',
],
python_requires='>=3.6',
install_requires=install_requires,
setup_requires=setup_requires,
tests_require=tests_require,
entry_points=entry_points,
include_package_data=True,
packages=find_packages(
exclude=['tests.*', 'tests']
),
)