Completed
Pull Request — develop (#5)
by Kale
55s
created

Tox   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 23
Duplicated Lines 0 %
Metric Value
dl 0
loc 23
rs 10
wmc 4
1
# -*- coding: utf-8 -*-
2
import os
3
from setuptools import setup, find_packages
4
import sys
5
6
here = os.path.abspath(os.path.dirname(__file__))
7
src_dir = os.path.join(here, "auxlib")
8
9
# When executing the setup.py, we need to be able to import ourselves, this
10
# means that we need to add the src/ directory to the sys.path.
11
sys.path.insert(0, src_dir)
12
13
import auxlib  # NOQA
14
15
requirements = [
16
    "python-dateutil",
17
    "PyYAML",
18
]
19
20
if sys.version_info < (3, 4):
21
    requirements.append("enum34")
22
23
with open(os.path.join(here, "README.rst")) as f:
24
    long_description = f.read()
25
26
setup(
27
    name=auxlib.__title__,
28
    version=auxlib.__version__,
29
30
    author=auxlib.__author__,
31
    author_email=auxlib.__email__,
32
    url=auxlib.__homepage__,
33
    license=auxlib.__license__,
34
35
    description=auxlib.__summary__,
36
    long_description=long_description,
37
38
    packages=find_packages(exclude=['tests', 'tests.*']),
39
    include_package_data=True,
40
    zip_safe=False,
41
42
    classifiers=[
43
        "Intended Audience :: Developers",
44
        "License :: OSI Approved :: Apache Software License",
45
        "License :: OSI Approved :: BSD License",
46
        "Natural Language :: English",
47
        "Operating System :: MacOS :: MacOS X",
48
        "Operating System :: POSIX",
49
        "Operating System :: POSIX :: BSD",
50
        "Operating System :: POSIX :: Linux",
51
        "Operating System :: Microsoft :: Windows",
52
        "Programming Language :: Python",
53
        "Programming Language :: Python :: 2",
54
        "Programming Language :: Python :: 2.7",
55
        "Programming Language :: Python :: 3",
56
        "Programming Language :: Python :: 3.4",
57
        "Programming Language :: Python :: 3.5",
58
        "Programming Language :: Python :: Implementation :: CPython",
59
        "Programming Language :: Python :: Implementation :: PyPy",
60
    ],
61
62
    install_requires=requirements,
63
    tests_require=["tox"],
64
    extras_require={
65
       'crypt': ["pycrypto"],
66
    },
67
    cmdclass={
68
        'build_py': auxlib.BuildPyCommand,
69
        'sdist': auxlib.SdistCommand,
70
        'test': auxlib.Tox,
71
    },
72
)
73