-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
63 lines (54 loc) · 1.7 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
60
61
62
63
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from codecs import open
import os
import re
from setuptools import find_packages, setup
current_dir = os.path.dirname(os.path.realpath(__file__))
with open('README.rst', encoding='utf-8') as readme_file:
readme = readme_file.read()
def get_meta():
meta_re = re.compile(r"(?P<name>__\w+__) = '(?P<value>[^']+)'")
meta_d = {}
with open(os.path.join(current_dir, 'aiobearychat/__init__.py'),
encoding='utf8') as fp:
for match in meta_re.finditer(fp.read()):
meta_d[match.group('name')] = match.group('value')
return meta_d
requirements = [
'attrs',
]
extras_require = {
'': requirements,
'aiohttp': 'aiohttp',
}
meta_d = get_meta()
setup(
name='aiobearychat',
version=meta_d['__version__'],
description='BearyChat 异步 Python SDK',
long_description=readme,
author='mozillazg',
author_email='[email protected]',
url='https://github.com/mozillazg/aiobearychat',
packages=find_packages(
exclude=['*.tests', '*.tests.*', 'tests.*', 'tests']
),
package_dir={'aiobearychat':
'aiobearychat'},
include_package_data=True,
install_requires=requirements,
extras_require=extras_require,
license='MIT',
zip_safe=False,
keywords='aiobearychat',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
],
)