Completed
Push — master ( 5abac1...4cde57 )
by Rich
01:52
created

setup_package()   B

Complexity

Conditions 1

Size

Total Lines 27

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 1 Features 0
Metric Value
cc 1
c 3
b 1
f 0
dl 0
loc 27
rs 8.8571
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 = {
67
		'skchem.target_prediction': ['data/PIDGIN_models.pkl.gz'],
68
		'skchem.data': ['atom_data.csv'],
69
		'skchem.standardizers': ['default_config.xml']
70
	},
71
        include_package_data=True,
72
	install_requires=REQUIREMENTS,
73
        test_suite='nose.collector',
74
        tests_require=TEST_REQUIREMENTS,
75
        zip_safe=False,
76
        **metadata
77
        )
78
79
80
if __name__ == "__main__":
81
    setup_package()
82