#!/usr/bin/env python
# -*- encoding: utf-8 -*-

"""Distutils setup script for packaging and distribution."""

import pathlib

from setuptools import find_packages, setup

PROJECT_ROOT = pathlib.Path(__file__).parent
PROJECT_NAME = 'tvmaze'
PROJECT_VERSION = '0.0.0'
PROJECT_URL = 'https://github.com/tvmaze/tvmaze'
PROJECT_LICENSE = 'MIT License'
PROJECT_DESCRIPTION = 'A Python library for accessing the TVMaze API.'
PROJECT_README = PROJECT_ROOT / 'README.rst'
PROJECT_SOURCE_DIRECTORY = PROJECT_ROOT / 'src'
PROJECT_CLASSIFIERS = [
    # complete classifier list:
    #  http://pypi.python.org/pypi?%3Aaction=list_classifiers
    'Development Status :: 1 - Planning',
    'Intended Audience :: Developers',
    'License :: OSI Approved :: MIT License',
    'Programming Language :: Python',
    'Programming Language :: Python :: 3 :: Only',
    'Programming Language :: Python :: 3.6',
    'Programming Language :: Python :: 3.7',
    'Programming Language :: Python :: Implementation :: CPython',
    'Topic :: Utilities',
]
PROJECT_KEYWORDS = [
    'tvmaze',
    'video',
    'series',
    'metadata',
]

setup(
    name=PROJECT_NAME,
    version=PROJECT_VERSION,
    license=PROJECT_LICENSE,
    description=PROJECT_DESCRIPTION,
    long_description=PROJECT_README.read_text('utf-8'),
    url=PROJECT_URL,
    packages=find_packages(PROJECT_SOURCE_DIRECTORY),
    package_dir={
        '': PROJECT_SOURCE_DIRECTORY.relative_to(PROJECT_ROOT)
    },
    py_modules=[
        path.name
        for path in PROJECT_SOURCE_DIRECTORY.glob('*.py')
    ],
    python_requires='>=3.6',
    include_package_data=True,
    zip_safe=False,
    classifiers=PROJECT_CLASSIFIERS,
    keywords=PROJECT_KEYWORDS,
)

#!/usr/bin/env python
# -*- encoding: utf-8 -*-

"""Distutils setup script for packaging and distribution."""

import pathlib

from setuptools import find_packages, setup

PROJECT_ROOT = pathlib.Path(__file__).parent
PROJECT_NAME = 'tvmaze'
PROJECT_VERSION = '0.0.0'
PROJECT_URL = 'https://github.com/tvmaze/tvmaze'
PROJECT_LICENSE = 'MIT License'
PROJECT_DESCRIPTION = 'A Python library for accessing the TVMaze API.'
PROJECT_README = PROJECT_ROOT / 'README.rst'
PROJECT_SOURCE_DIRECTORY = PROJECT_ROOT / 'src'
PROJECT_CLASSIFIERS = [
    # complete classifier list:
    #  http://pypi.python.org/pypi?%3Aaction=list_classifiers
    'Development Status :: 1 - Planning',
    'Intended Audience :: Developers',
    'License :: OSI Approved :: MIT License',
    'Programming Language :: Python',
    'Programming Language :: Python :: 3 :: Only',
    'Programming Language :: Python :: 3.6',
    'Programming Language :: Python :: 3.7',
    'Programming Language :: Python :: Implementation :: CPython',
    'Topic :: Utilities',
]
PROJECT_KEYWORDS = [
    'tvmaze',
    'video',
    'series',
    'metadata',
]

setup(
    name=PROJECT_NAME,
    version=PROJECT_VERSION,
    license=PROJECT_LICENSE,
    description=PROJECT_DESCRIPTION,
    long_description=PROJECT_README.read_text('utf-8'),
    url=PROJECT_URL,
    packages=find_packages(str(PROJECT_SOURCE_DIRECTORY)),
    package_dir={
        '': PROJECT_SOURCE_DIRECTORY.relative_to(PROJECT_ROOT)
    },
    py_modules=[
        path.name
        for path in PROJECT_SOURCE_DIRECTORY.glob('*.py')
    ],
    python_requires='>=3.6',
    include_package_data=True,
    zip_safe=False,
    classifiers=PROJECT_CLASSIFIERS,
    keywords=PROJECT_KEYWORDS,
)

Fix TypeError during setup.py install