File: setup.py

package info (click to toggle)
tomahawk 0.7.1-2.1
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 484 kB
  • sloc: python: 1,921; makefile: 153; sh: 3
file content (73 lines) | stat: -rw-r--r-- 2,301 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import os
import sys
from tomahawk import (
    __author__,
    __author_email__,
    __status__,
    __version__
)

def get_long_description():
    return open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.rst")).read()

try:
    from setuptools import setup
    setup
except ImportError:
    from distutils.core import setup

if sys.version_info < (2, 4):
    print("tomahawk requires at least Python 2.4 to run.")
    sys.exit(1)

if sys.argv[-1] == "publish":
    os.system("python setup.py sdist upload")
    sys.exit()

install_requires = []
if sys.version_info < (2, 6):
    install_requires.extend([ "multiprocessing", "pexpect==2.4", "six==1.2.0" ])
else:
    install_requires.extend([ "six", "pexpect>=3.0" ])
if sys.version_info < (2, 7):
    install_requires.append("argparse")

tests_require = [
    'flexmock', 'pytest', 'pytest-cov',
    'sphinx', 'sphinx_rtd_theme', 
]

setup(
    name = "tomahawk",
    version = __version__,
    url = "https://github.com/oinume/tomahawk/",
    license = "LGPL",
    author = __author__,
    author_email = __author_email__,
    description = "A simple ssh wrapper to execute commands for many hosts.",
    long_description = get_long_description(),
    packages = [ "tomahawk" ],
    scripts = [ os.path.join("bin", p) for p in [ "tomahawk", "tomahawk-rsync" ] ],
    zip_safe = False,
    platforms = "unix",
    install_requires = install_requires,
    tests_require = tests_require,
    classifiers = [
        "Development Status :: 5 - " + __status__,
        "Environment :: Console",
        "Intended Audience :: System Administrators",
        "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
        "Operating System :: Unix",
        "Programming Language :: Python",
        "Programming Language :: Python :: 2.4",
        "Programming Language :: Python :: 2.5",
        "Programming Language :: Python :: 2.6",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.2",
        "Programming Language :: Python :: 3.3",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Topic :: System :: Clustering",
        "Topic :: System :: Systems Administration",
    ],
)