2 # -*- coding: utf-8 -*-
6 from setuptools import setup, find_packages
10 license_type = '__license_type__'
12 version = '__version__'
13 repo_url = '__repo_url__'
19 from lxml.html import document_fromstring
20 from cssselect.parser import parse
21 REQUIREMENTS = [r for r in REQUIREMENTS if not r.startswith('lxml')]
22 except ModuleNotFoundError:
26 from PIL.Image import Image, open
27 REQUIREMENTS = [r for r in REQUIREMENTS if not r.startswith('Pillow')]
28 except ModuleNotFoundError:
32 long_description = """
33 Universal manga downloader.
35 Please see https://github.com/manga-py/manga-py
38 release_status = 'Development Status :: 5 - Production/Stable'
39 if ~version.find('beta'):
40 release_status = 'Development Status :: 4 - Beta'
41 if ~version.find('alpha'):
42 release_status = 'Development Status :: 3 - Alpha'
47 packages=find_packages(exclude=(
54 include_package_data=True,
56 description='Universal assistant download manga.',
57 long_description=long_description,
63 ('manga_py/storage', [
64 'manga_py/storage/.passwords.json.dist',
65 'manga_py/storage/.proxy.txt',
66 'manga_py/crypt/aes.js',
67 'manga_py/crypt/aes_zp.js',
70 keywords=['manga-downloader', 'manga', 'manga-py'],
72 classifiers=[ # look here https://pypi.python.org/pypi?%3Aaction=list_classifiers
74 'License :: OSI Approved :: MIT License',
75 'Natural Language :: English',
76 'Environment :: Console',
77 'Programming Language :: Python :: 3.7',
78 'Programming Language :: Python :: 3.8',
79 'Programming Language :: Python :: 3.9',
80 'Topic :: Internet :: WWW/HTTP',
82 python_requires='>=3.7.1',
83 install_requires=REQUIREMENTS,
86 'manga-py = manga_py.util:main',
92 '\n\nPlease remember that all sites earn on advertising.',
93 'Remember to visit them from your browser.',