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