-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsetup.py
78 lines (68 loc) · 1.96 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# coding: utf-8
from __future__ import absolute_import, division, print_function, unicode_literals
import io
import os
from setuptools import find_packages, setup
# 包元信息
NAME = 'feishu'
DESCRIPTION = 'python sdk for open.feishu.cn'
URL = 'https://github.com/larksuite/open_lark'
AUTHOR = 'chenyunpeng.1024'
# 项目运行需要的依赖
REQUIRES = [
'requests>=2.2,<3.0.0',
'pycryptodome>=3.9.0,<4.0.0',
'attrs>=19.0.0,<20.0.0',
'python-dateutil>=2.8.0,<3.0.0'
]
# 开发、测试过程中需要的依赖
DEV_REQUIRES = [
'pytest-cov',
'flake8>=3.5.0,<4.0.0',
'mypy>=0.620; python_version>="3.4"',
'tox>=3.0.0,<4.0.0',
'isort>=4.0.0,<5.0.0',
'pytest>=4.0.0,<5.0.0',
'coverage>=4.4,<5.0.0'
]
here = os.path.abspath(os.path.dirname(__file__))
try:
with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = '\n' + f.read()
except IOError:
long_description = DESCRIPTION
about = {}
with io.open(os.path.join(here, NAME, '__version__.py')) as f:
exec(f.read(), about)
setup(
name=NAME,
version=about['__version__'],
description=DESCRIPTION,
long_description=long_description,
long_description_content_type='text/markdown',
author=AUTHOR,
author_email=EMAIL,
url=URL,
classifiers=[
'Intended Audience :: Developers',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
keywords='lark',
packages=find_packages(exclude=['__tool_open_docs', 'docs', 'tests']),
install_requires=REQUIRES,
tests_require=[
'pytest>=4.0.0,<5.0.0',
'pytest-cov',
],
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*',
extras_require={
':python_version<"3.5"': [
'typing>=3.6.4',
'enum34>=1.1.0',
],
'dev': DEV_REQUIRES,
}
)