-
Notifications
You must be signed in to change notification settings - Fork 23
/
setup.py
47 lines (39 loc) · 1.19 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
import re
import pathlib
from setuptools import setup
HERE = pathlib.Path(__file__).parent
txt = (HERE / 'danmu_abc' / '__init__.py').read_text('utf-8')
try:
version = re.findall(r"^__version__ = '([^']+)'\r?$", txt, re.M)[0]
except IndexError:
raise RuntimeError('Unable to determine the version.')
def read(f):
return (HERE / f).read_text('utf-8').strip()
setup(
name='danmu_abc',
packages=['danmu_abc'],
version=version,
description='Danmu for humans.',
long_description=read('README.md'),
long_description_content_type='text/markdown',
license='MIT',
author='yjqang',
author_email='[email protected]',
url='https://github.com/yjqiang/danmu',
keywords=[
'danmu', 'huya', 'bilibili', 'douyu'
],
install_requires=[
'aiohttp>=3.7.3,<4.0.0',
],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
python_requires='>=3.6',
)