|
1
|
|
|
#!/usr/bin/env python |
|
2
|
|
|
# coding: utf8 |
|
3
|
|
|
|
|
4
|
|
|
# Copyright 2013-2017 Vincent Jacques <[email protected]> |
|
5
|
|
|
|
|
6
|
|
|
from __future__ import division, absolute_import, print_function |
|
7
|
|
|
|
|
8
|
|
|
import setuptools |
|
9
|
|
|
import sys |
|
10
|
|
|
|
|
11
|
|
|
|
|
12
|
|
|
version = "0.10.0" |
|
13
|
|
|
|
|
14
|
|
|
|
|
15
|
|
|
def py2_only(*dependencies): |
|
16
|
|
|
if sys.version_info[0] == 2: |
|
17
|
|
|
return list(dependencies) |
|
18
|
|
|
else: |
|
19
|
|
|
return [] |
|
20
|
|
|
|
|
21
|
|
|
|
|
22
|
|
|
setuptools.setup( |
|
23
|
|
|
name="ActionTree", |
|
24
|
|
|
version=version, |
|
25
|
|
|
description="Executes (long) actions in parallel, respecting dependencies between those actions", |
|
26
|
|
|
long_description=open("README.rst").read(), |
|
27
|
|
|
author="Vincent Jacques", |
|
28
|
|
|
author_email="[email protected]", |
|
29
|
|
|
url="http://jacquev6.github.io/ActionTree/", |
|
30
|
|
|
packages=setuptools.find_packages(), |
|
31
|
|
|
license="MIT", |
|
32
|
|
|
classifiers=[ |
|
33
|
|
|
"Development Status :: 4 - Beta", |
|
34
|
|
|
"Intended Audience :: Developers", |
|
35
|
|
|
"License :: OSI Approved", |
|
36
|
|
|
"License :: OSI Approved :: MIT License", |
|
37
|
|
|
"Operating System :: OS Independent", |
|
38
|
|
|
"Programming Language :: Python", |
|
39
|
|
|
"Programming Language :: Python :: 2", |
|
40
|
|
|
"Programming Language :: Python :: 2.7", |
|
41
|
|
|
"Programming Language :: Python :: 3", |
|
42
|
|
|
"Programming Language :: Python :: 3.5", |
|
43
|
|
|
"Programming Language :: Python :: 3.6", |
|
44
|
|
|
"Topic :: Software Development", |
|
45
|
|
|
], |
|
46
|
|
|
install_requires=[], |
|
47
|
|
|
extras_require=[ |
|
48
|
|
|
"visual": ["graphviz", "matplotlib"], |
|
49
|
|
|
], |
|
50
|
|
|
tests_require=py2_only("mock"), |
|
51
|
|
|
test_suite="ActionTree.tests", |
|
52
|
|
|
use_2to3=True, |
|
53
|
|
|
# @todo Investigate convert_2to3_doctests |
|
54
|
|
|
command_options={ |
|
55
|
|
|
"build_sphinx": { |
|
56
|
|
|
"version": ("setup.py", version), |
|
57
|
|
|
"release": ("setup.py", version), |
|
58
|
|
|
"source_dir": ("setup.py", "doc"), |
|
59
|
|
|
}, |
|
60
|
|
|
}, |
|
61
|
|
|
) |
|
62
|
|
|
|