Source

beets / setup.py

Full commit
adrian.sampson b3d05f9 
adrian.sampson 99f5664 

Adrian Sampson e9bcaad 
Adrian Sampson b0126ec 







adrian.sampson 99f5664 
Adrian Sampson b0126ec 

adrian.sampson 99f5664 
Adrian Sampson 596db74 
Adrian Sampson ca73c87 


Adrian Sampson 3366e89 
adrian.sampson b3d05f9 
Adrian Sampson 596db74 



Adrian Sampson ca73c87 











Adrian Sampson 4ca1475 



Adrian Sampson ca73c87 
adrian.sampson b3d05f9 
Adrian Sampson 4f230a4 
Adrian Sampson 956dc32 
adrian.sampson b3d05f9 

Adrian Sampson 956dc32 

adrian.sampson b3d05f9 
Adrian Sampson 567b702 
Adrian Sampson c66b3bf 
Adrian Sampson 6e991cb 
adrian.sampson b3d05f9 
Adrian Sampson 3366e89 

Adrian Sampson 86681cf 
Adrian Sampson 3366e89 
Michael Decker e8fb289 
Adrian Sampson c0516f1 
Adrian Sampson 08b6664 
Adrian Sampson 698d903 
Adrian Sampson 6e991cb 
Adrian Sampson f38b75e 
Adrian Sampson c0516f1 
Adrian Sampson 5d942a8 




adrian.sampson b3d05f9 
Adrian Sampson 3366e89 


Adrian Sampson 6a79292 
Adrian Sampson 12515d6 
Adrian Sampson 1d38280 
Adrian Sampson 65652e5 


Adrian Sampson 596db74 





Adrian Sampson cf58578 



Adrian Sampson 596db74 
Adrian Sampson f38b75e 
#!/usr/bin/env python

# This file is part of beets.
# Copyright 2013, Adrian Sampson.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
# 
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.

import os
import sys
import subprocess
import shutil
from setuptools import setup

def _read(fn):
    path = os.path.join(os.path.dirname(__file__), fn)
    return open(path).read()

# Build manpages if we're making a source distribution tarball.
if 'sdist' in sys.argv:
    # Go into the docs directory and build the manpage.
    docdir = os.path.join(os.path.dirname(__file__), 'docs')
    curdir = os.getcwd()
    os.chdir(docdir)
    try:
        subprocess.check_call(['make', 'man'])
    finally:
        os.chdir(curdir)

    # Copy resulting manpages.
    mandir = os.path.join(os.path.dirname(__file__), 'man')
    if os.path.exists(mandir):
        shutil.rmtree(mandir)
    shutil.copytree(os.path.join(docdir, '_build', 'man'), mandir)

setup(name='beets',
      version='1.1.0-beta.2',
      description='music tagger and library organizer',
      author='Adrian Sampson',
      author_email='adrian@radbox.org',
      url='http://beets.radbox.org/',
      license='MIT',
      platforms='ALL',
      long_description=_read('README.rst'),
      test_suite='test.testall.suite',
      include_package_data=True, # Install plugin resources.

      packages=[
          'beets',
          'beets.ui',
          'beets.autotag',
          'beets.util',
          'beetsplug',
          'beetsplug.bpd',
          'beetsplug.web',
          'beetsplug.lastgenre',
      ],
      namespace_packages=['beetsplug'],
      entry_points={
          'console_scripts': [
              'beet = beets.ui:main',
          ],
      },

      install_requires=[
          'mutagen',
          'munkres',
          'unidecode',
          'musicbrainzngs',
          'pyyaml',
      ]
      + (['colorama'] if (sys.platform == 'win32') else [])
      + (['ordereddict'] if sys.version_info < (2, 7, 0) else []),

      classifiers=[
          'Topic :: Multimedia :: Sound/Audio',
          'Topic :: Multimedia :: Sound/Audio :: Players :: MP3',
          'License :: OSI Approved :: MIT License',
          'Environment :: Console',
          'Environment :: Web Environment',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.6',
          'Programming Language :: Python :: 2.7',
      ],
)