This repository was archived by the owner on Aug 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
56 lines (51 loc) · 1.75 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
import sys
from setuptools import setup, find_packages
import pathlib
import re
WORK_DIR = pathlib.Path(__file__).parent
if sys.version_info < (3, 7):
raise Exception("Python 3.7 or higher is required. Your version is %s." % sys.version)
long_description = open('README.md', encoding="utf-8").read()
def get_version():
"""
Read version
:return: str
"""
txt = (WORK_DIR / 'umr_mirai_driver' / '__init__.py').read_text('utf-8')
try:
return re.findall(r"^__VERSION__ = '(.*)'[\r\n]?$", txt, re.M)[0]
except IndexError:
raise RuntimeError('Unable to determine version.')
setup(
name='umr-mirai-driver',
packages=find_packages(include=['umr_mirai_driver', 'umr_mirai_driver.*']),
version=get_version(),
description='UMR Mirai Driver',
long_description=long_description,
author='Curtis Jiang',
url='https://github.com/jqqqqqqqqqq/UnifiedMessageRelay',
license='MIT',
python_requires='>=3.7',
include_package_data=True,
zip_safe=False,
keywords=['UMR', 'UnifiedMessageRelay', 'Group chat relay', 'IM', 'messaging', 'Mirai', 'QQ'],
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Topic :: Communications :: Chat",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Typing :: Typed"
],
install_requires=[
'python-mirai-core',
'unified-message-relay',
'janus',
],
project_urls={
"Telegram Chat": "https://t.me/s/UnifiedMessageRelayDev",
}
)