forked from seoktaehyeon/work-weixin-robot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·49 lines (45 loc) · 1.07 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
import os
URL = 'https://github.com/seoktaehyeon/work-weixin-robot'
NAME = 'WorkWeixinRobot'
VERSION = '1.0.1'
DESCRIPTION = '企业微信群机器人'
if os.path.exists('README.md'):
with open('README.md', encoding='utf-8') as f:
LONG_DESCRIPTION = f.read()
else:
LONG_DESCRIPTION = DESCRIPTION
AUTHOR = 'Will'
AUTHOR_EMAIL = '[email protected]'
LICENSE = 'MIT'
PLATFORMS = [
'any',
]
REQUIRES = [
'requests',
'PyYAML',
]
CONSOLE_SCRIPTS = 'wwx-robot = WorkWeixinRobot.work_weixin_robot:main'
setup(
name=NAME,
version=VERSION,
description=(
DESCRIPTION
),
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
author=AUTHOR,
author_email=AUTHOR_EMAIL,
maintainer=AUTHOR,
maintainer_email=AUTHOR_EMAIL,
license=LICENSE,
packages=find_packages(),
platforms=PLATFORMS,
url=URL,
install_requires=REQUIRES,
entry_points={
'console_scripts': [CONSOLE_SCRIPTS],
}
)