Completed
Push — master ( 954436...528a3c )
by Makoto
59s
created

read_md()   A

Complexity

Conditions 3

Size

Total Lines 12

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 3
dl 0
loc 12
rs 9.4285
1
from setuptools import setup, find_packages
2
3
4
def read_md(file):
5
    try:
6
        # noinspection PyPackageRequirements,PyUnresolvedReferences
7
        from pypandoc import convert
8
9
        return convert(file, 'rst', 'md')
10
    except ImportError:
11
        import warnings
12
        warnings.warn('pypandoc module not found, could not convert Markdown to RST')
13
14
        with open(file, 'r') as md:
15
            return md.read()
16
17
18
setup(
19
    name='Tumblr Downloader',
20
    version='0.1.0',
21
    description='A Tumblr image and video scraping utility',
22
    long_description=read_md('README.md'),
23
    author='makoto',
24
    author_email='[email protected]',
25
    url='',
26
    license='MIT',
27
    classifiers=[
28
        'Development Status :: 2 - Pre-Alpha',
29
        'License :: OSI Approved :: MIT License',
30
31
        'Environment :: Console',
32
        'Intended Audience :: End Users/Desktop',
33
        'Natural Language :: English',
34
35
        'Topic :: Internet :: WWW/HTTP',
36
        'Topic :: System :: Archiving',
37
        'Topic :: System :: Archiving :: Mirroring',
38
        'Topic :: Utilities',
39
40
        'Programming Language :: Python :: 3.4',
41
        'Programming Language :: Python :: 3.5',
42
    ],
43
    packages=find_packages(),
44
    include_package_data=True,
45
    entry_points={
46
        'console_scripts': [
47
            'tumdlr = tumdlr.main:cli'
48
        ]
49
    },
50
    install_requires=['click', 'yurl', 'lxml', 'requests', 'humanize', 'appdirs']
51
)