-
Notifications
You must be signed in to change notification settings - Fork 96
/
Copy pathsetup.py
59 lines (52 loc) · 1.4 KB
/
setup.py
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
#!/usr/bin/env python
import re
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import six
from subfinder import __version__, __author__
version = __version__
author = __author__
if not version:
raise RuntimeError('Cannot find version information')
if not author:
raise RuntimeError('Cannot find author information')
requires = [
'requests',
'lxml',
'bs4',
'gevent',
'rarfile',
'six',
]
def readme():
if six.PY2:
with open('README.md') as fp:
content = fp.read()
else:
with open('README.md', encoding='utf-8') as fp:
content = fp.read()
return content
setup(
name='SubFinder',
version=version,
author=author,
author_email='ljm51689@gmail.com',
description='subfinder -- a general finder for subtitles',
long_description=readme(),
long_description_content_type='text/markdown',
url='https://github.com/ausaki/subfinder/',
keywords=['subtitle', 'subfinder', 'sub', 'subtitle finder', 'shooter', 'zimuku'],
license='MIT',
packages=['subfinder', 'subfinder.subsearcher', 'subfinder.tools'],
include_package_data=True,
python_requires='>=3',
install_requires=requires,
entry_points={
'console_scripts': [
'subfinder = subfinder.run_gevent:run',
'subutils = subfinder.utils:main'
]
},
)