Completed
Push — master ( 64f118...5c9f4e )
by Rich
01:31
created

setup_package()   A

Complexity

Conditions 1

Size

Total Lines 22

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
dl 0
loc 22
rs 9.2
1
#! /usr/bin/env python
2
#
3
# Copyright (C) 2007-2009 Rich Lewis <[email protected]>
4
# License: 3-clause BSD
5
6
from setuptools import *
7
8
DISTNAME = 'scikit-chem'
9
DESCRIPTION = 'A set of python modules for cheminformatics'
10
with open('README.md') as f:
11
    LONG_DESCRIPTION = f.read()
12
MAINTAINER = 'Richard Lewis'
13
MAINTAINER_EMAIL = '[email protected]'
14
URL = 'http://github.com/richlewis42/scikit-chem'
15
LICENSE = 'new BSD'
16
DOWNLOAD_URL = 'https://github.com/richlewis42/scikit-chem/archive/master.zip'
17
CLASSIFIERS = [ 
18
    'Development Status :: 1 - Planning',
19
    'Intended Audience :: Science/Research',
20
    'Intended Audience :: Education',
21
    'Intended Audience :: Developers',
22
    'License :: OSI Approved :: BSD License',
23
    'Natural Language :: English',
24
    'Programming Language :: Python',
25
    'Programming Language :: Python :: 2',
26
    'Programming Language :: Python :: 2.6',
27
    'Programming Language :: Python :: 2.7',
28
    'Programming Language :: Python :: 3',
29
    'Programming Language :: Python :: 3.3',
30
    'Programming Language :: Python :: 3.4',
31
    'Operating System :: Microsoft :: Windows',
32
    'Operating System :: POSIX',
33
    'Operating System :: Unix',
34
    'Operating System :: MacOS',
35
    'Topic :: Software Development',
36
    'Topic :: Scientific/Engineering :: Chemistry'
37
]
38
MAJOR = 0
39
MINOR = 0
40
MICRO = 4 
41
VERSION = '{major}.{minor}.{micro}'.format(major=MAJOR, minor=MINOR, micro=MICRO)
42
43
with open('requirements.txt') as f:
44
   REQUIREMENTS = [l.strip() for l in f]
45
46
with open('test_requirements.txt') as f:
47
   TEST_REQUIREMENTS = [l.strip() for l in f]
48
49
50
def setup_package():
51
52
    metadata = dict(name=DISTNAME,
53
                    maintainer=MAINTAINER,
54
                    maintainer_email=MAINTAINER_EMAIL,
55
                    description=DESCRIPTION,
56
                    license=LICENSE,
57
                    url=URL,
58
                    version=VERSION,
59
                    download_url=DOWNLOAD_URL,
60
                    long_description=LONG_DESCRIPTION,
61
                    classifiers=CLASSIFIERS
62
    )
63
64
    setup(
65
        packages=find_packages(),
66
        package_data = {'skchem.target_prediction': ['data/PIDGIN_models.pkl.gz']},
67
        install_requires=REQUIREMENTS,
68
        test_suite='nose.collector',
69
        tests_require=TEST_REQUIREMENTS,
70
        zip_safe=False,
71
        **metadata
72
        )
73
74
75
if __name__ == "__main__":
76
    setup_package()
77