~jkakar/commandant/trunk

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
#!/usr/bin/env python
import os
import re

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


if os.path.isfile("MANIFEST"):
    os.unlink("MANIFEST")


VERSION = re.search('VERSION = "([^"]+)"',
                    open("commandant/__init__.py").read()).group(1)


def find_packages():
    # implement a simple find_packages so we don't have to depend on
    # setuptools
    packages = []
    for directory, subdirectories, files in os.walk("commandant"):
        if '__init__.py' in files:
            packages.append(directory.replace(os.sep, '.'))
    return [p for p in packages if not p.startswith("commandant.tests")]


setup(
    name="commandant",
    version=VERSION,
    description="Commandant is a framework for building command-oriented tools.",
    author="Jamshed Kakar",
    author_email="jkakar@kakar.ca",
    maintainer="Jamshed Kakar",
    maintainer_email="jkakar@kakar.ca",
    license="GPL",
    url="https://launchpad.net/commandant",
    download_url="https://launchpad.net/commandant/+download",
    packages=find_packages(),
    scripts=["bin/commandant"],
    zip_safe=False,
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Environment :: Console",
        "Intended Audience :: Developers",
        "Intended Audience :: System Administrators",
        "License :: OSI Approved :: GNU General Public License (GPL)",
        "Programming Language :: Python",
        "Topic :: Utilities",
        "Topic :: Software Development :: User Interfaces",
    ])