setup.py 1.41 KB
Newer Older
1
2
#!/usr/bin/env python
# -*- coding: utf-8 -*-
3
import os
4
5

from setuptools import find_packages
6
from setuptools import setup
7

8
9
10
11
12
13
14
15
16
17
18
19
20
21
CURRENT_DIR = os.path.dirname(__file__)

def get_lib_path():
    """Get library path, name and version"""
     # We can not import `libinfo.py` in setup.py directly since __init__.py
    # Will be invoked which introduces dependences
    libinfo_py = os.path.join(CURRENT_DIR, './dgllife/libinfo.py')
    libinfo = {'__file__': libinfo_py}
    exec(compile(open(libinfo_py, "rb").read(), libinfo_py, 'exec'), libinfo, libinfo)
    version = libinfo['__version__']

    return version

VERSION = get_lib_path()
22
23
24

setup(
    name='dgllife',
25
    version=VERSION,
Mufei Li's avatar
Mufei Li committed
26
    description='DGL-based package for Life Science',
27
28
29
30
    keywords=[
        'pytorch',
        'dgl',
        'graph-neural-networks',
Mufei Li's avatar
Mufei Li committed
31
        'life-science',
32
33
34
35
36
37
38
        'drug-discovery'
    ],
    zip_safe=False,
    maintainer='DGL Team',
    packages=[package for package in find_packages()
              if package.startswith('dgllife')],
    install_requires=[
39
        'torch>=1.1'
Mufei Li's avatar
Mufei Li committed
40
        'scikit-learn>=0.22.2',
41
        'pandas>=0.24.2',
42
43
        'requests>=2.22.0',
        'tqdm'
44
    ],
Mufei Li's avatar
Mufei Li committed
45
    url='https://github.com/dmlc/dgl/tree/master/apps/life_sci',
46
    classifiers=[
47
        'Development Status :: 3 - Alpha',
48
        'Programming Language :: Python :: 3',
49
        'License :: OSI Approved :: Apache Software License'
50
    ],
51
    license='APACHE'
52
)