#!/usr/bin/env python

from distutils.core import setup
import sys
import os.path

# Patch distutils if it can't cope with the "classifiers" or
# "download_url" keywords.
if sys.version < '2.2.3':
    from distutils.dist import DistributionMetadata
    DistributionMetadata.classifiers = None
    DistributionMetadata.download_url = None

setup(name = 'madcow',
      version = '0.1.0',
      author = 'Daniel J. Pearson',
      author_email = 'daniel@nanoo.org',
      url = 'http://www.nanoo.org/madcow/',
      #download_url = 'http://www.nanoo.org/moosic/dist/',
      license = 'MIT',
      description = 'A powerful XMMS2 command-line client.',
      long_description = '''
MadCow is a command-line client for the XMMS2 music player. It focuses on
powerful playlist manipulation. Its features include the convenient addition of
whole directory trees, automatic shuffling, and item removal according to
regular expressions.
''',
      classifiers = [
        'Development Status :: 3 - Alpha',
        'Environment :: Console',
        'Intended Audience :: End Users/Desktop',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Operating System :: POSIX',
        'Operating System :: Unix',
        'Programming Language :: Python',
        'Topic :: Multimedia :: Sound/Audio :: Players',
        'Topic :: Multimedia :: Sound/Audio :: Players :: MP3',
        ],
      scripts = ['scripts/madcow'],
      packages = ['madcow'],
      data_files = [
        ('share/man/man1', ['doc/madcow.1']),
        ('share/doc/madcow',
            ['README.txt', 'License.txt', 'ChangeLog', 'NEWS',
            'doc/History.txt', 'doc/Todo']),
        ('share/doc/madcow/examples',
            ['examples/completion', 'examples/madcowrc']),
        #('/etc/bash_completion.d/', ['examples/completion']),
        ],
)

