import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand


class PyTest(TestCommand):
    def finalize_options(self):
        # XXX sometimes TestCommand is not a newstyle class
        TestCommand.finalize_options(self)
        self.test_args = []
        self.test_suite = True

    def run_tests(self):
        # XXX import here, cause outside the eggs aren't loaded
        import pytest
        errno = pytest.main(self.test_args)
        sys.exit(errno)


try:
    with open('README.rst') as readme:
        README = readme.read()
except IOError:
    README = ''

setup(
    name='rdio_dl',
    version='0.0.1dev',
    packages=['rdio_dl'],
    install_requires=['requests', 'youtube_dl'],
    dependency_links=[
        'git+https://github.com/ravishi/youtube-dl.git@f77da1fae6#egg=youtube_dl',
    ],
    author='Dirley Rodrigues',
    author_email='dirleyrls@gmail.com',
    long_description=README,
    entry_points={
        'youtube_dl.extractors': [
            'rdio = rdio_dl.extractor:RdioIE',
            'rdio_playlist = rdio_dl.extractor:RdioPlaylistIE',
        ],
    },
    test_suite='tests',
    tests_require=['pytest'],
    cmdclass={'test': PyTest},
)

import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand


class PyTest(TestCommand):
    def finalize_options(self):
        # XXX sometimes TestCommand is not a newstyle class
        TestCommand.finalize_options(self)
        self.test_args = []
        self.test_suite = True

    def run_tests(self):
        # XXX import here, cause outside the eggs aren't loaded
        import pytest
        errno = pytest.main(self.test_args)
        sys.exit(errno)


try:
    with open('README.rst') as readme:
        README = readme.read()
except IOError:
    README = ''

setup(
    name='rdio_dl',
    version='0.0.1dev',
    packages=['rdio_dl'],
    install_requires=['requests', 'youtube_dl'],
    dependency_links=[
        'git+https://github.com/ravishi/youtube-dl.git@f77da1fae6#egg=youtube_dl',
    ],
    author='Dirley Rodrigues',
    author_email='dirleyrls@gmail.com',
    long_description=README,
    entry_points={
        'youtube_dl.extractors': [
            'rdio = rdio_dl.extractor:RdioIE',
        ],
    },
    test_suite='tests',
    tests_require=['pytest'],
    cmdclass={'test': PyTest},
)

Remove absent extractor from entry points
Remove absent extractor from entry points
