forked from manga-py/manga-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py.template
95 lines (80 loc) · 2.38 KB
/
setup.py.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from sys import stderr
from setuptools import setup, find_packages
author = '__author__'
license_type = '__license_type__'
email = '__email__'
version = '__version__'
repo_url = '__repo_url__'
REQUIREMENTS = []
try:
from lxml.html import document_fromstring
from cssselect.parser import parse
REQUIREMENTS = [r for r in REQUIREMENTS if not r.startswith('lxml')]
except ModuleNotFoundError:
pass
try:
from PIL.Image import Image, open
REQUIREMENTS = [r for r in REQUIREMENTS if not r.startswith('Pillow')]
except ModuleNotFoundError:
pass
long_description = """
Universal manga downloader.
Please see https://github.com/manga-py/manga-py
"""
release_status = 'Development Status :: 5 - Production/Stable'
if ~version.find('beta'):
release_status = 'Development Status :: 4 - Beta'
if ~version.find('alpha'):
release_status = 'Development Status :: 3 - Alpha'
setup(
name='manga_py',
packages=find_packages(exclude=(
'tests',
'.github',
'Manga',
'helpers',
'mypy_cache',
)),
include_package_data=True,
version=version,
description='Universal assistant download manga.',
long_description=long_description,
author=author,
author_email=email,
url=repo_url,
zip_safe=False,
data_files=[
('manga_py/storage', [
'manga_py/storage/.passwords.json.dist',
'manga_py/storage/.proxy.txt',
'manga_py/crypt/aes.js',
'manga_py/crypt/aes_zp.js',
]),
],
keywords=['manga-downloader', 'manga', 'manga-py'],
license=license_type,
classifiers=[ # look here https://pypi.python.org/pypi?%3Aaction=list_classifiers
release_status,
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Environment :: Console',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Internet :: WWW/HTTP',
],
python_requires='>=3.7.1',
install_requires=REQUIREMENTS,
entry_points={
'console_scripts': [
'manga-py = manga_py.util:main',
]
}
)
print('\n'.join((
'\n\nPlease remember that all sites earn on advertising.',
'Remember to visit them from your browser.',
'Thanks!\n'
)), file=stderr)