<gh_stars>1-10
"""Packaging."""
from codecs import open
from os.path import abspath
from os.path import dirname
from os.path import join
from subprocess import call

from setuptools import Command
from setuptools import find_packages
from setuptools import setup

from convert import __version__


this_dir = abspath(dirname(__file__))
with open(join(this_dir, 'README.md'), encoding='utf-8') as file:
    long_description = file.read()


class RunTests(Command):
    """Run all tests."""
    description = 'run tests'
    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        """Run all tests!"""
        errno = call(
            ['py.test', '--cov=converter-cli', '--cov-report=term-missing'])
        raise SystemExit(errno)


setup(
    name='converter-cli',
    version=__version__,
    description='A media converter command line program in Python.',
    long_description=long_description,
    long_description_content_type='text/markdown',
    url='https://github.com/patillacode/converter-cli',
    author='<NAME>',
    author_email='<EMAIL>',
    license='Apache 2.0',
    classifiers=[
        'Intended Audience :: Developers',
        'Topic :: Utilities',
        'License :: Public Domain',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 3.6',
    ],
    keywords='cli, converter, video, audio',
    packages=find_packages(exclude=['docs', 'tests*']),
    install_requires=['docopt', 'ffmpeg-python', 'termcolor'],
    extras_require={
        'test': ['coverage', 'pytest', 'pytest-cov', 'mock'],
    },
    entry_points={
        'console_scripts': [
            'converter-cli=convert.cli:main',
        ],
    },
    cmdclass={'test': RunTests},
)

"""Packaging."""
from codecs import open
from os.path import abspath
from os.path import dirname
from os.path import join
from subprocess import call

from setuptools import Command
from setuptools import find_packages
from setuptools import setup

from convert import __version__


this_dir = abspath(dirname(__file__))
with open(join(this_dir, 'README.md'), encoding='utf-8') as file:
    long_description = file.read()


class RunTests(Command):
    """Run all tests."""
    description = 'run tests'
    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        """Run all tests!"""
        errno = call(
            ['py.test', '--cov=converter-cli', '--cov-report=term-missing'])
        raise SystemExit(errno)


setup(
    name='converter-cli',
    version=__version__,
    description='A media converter command line program in Python.',
    long_description=long_description,
    long_description_content_type='text/markdown',
    url='https://github.com/patillacode/converter-cli',
    author='<NAME>',
    author_email='<EMAIL>',
    license='Apache 2.0',
    classifiers=[
        'Intended Audience :: Developers',
        'Topic :: Utilities',
        'License :: Public Domain',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 3.6',
    ],
    keywords='cli, converter, video, audio',
    packages=find_packages(exclude=['docs', 'tests*']),
    install_requires=['docopt', 'ffmpeg-python', 'termcolor'],
    extras_require={
        'test': ['coverage', 'pytest', 'pytest-cov', 'mock'],
    },
    entry_points={
        'console_scripts': [
            'converter-cli=convert.cli:main',
        ],
    },
    cmdclass={'test': RunTests},
)
Packaging. Run all tests. Run all tests!