-
Notifications
You must be signed in to change notification settings - Fork 22
/
setup.py
55 lines (47 loc) · 1.71 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
import os
from setuptools import setup, find_packages
import sys
import pathlib
try:
from pip.req import parse_requirements
except ImportError: # pip >= 10.0.0
from pip._internal.req import parse_requirements
WORK_DIR = pathlib.Path(__file__).parent
with open("README.md", encoding="utf-8") as f:
long_description = f.read()
MINIMAL_PY_VERSION = (3, 7)
if sys.version_info < MINIMAL_PY_VERSION:
raise RuntimeError('asyncline works only with Python {}+'.format('.'.join(map(str, MINIMAL_PY_VERSION))))
def install_requires():
file = WORK_DIR / "requirements.txt"
install_reqs = parse_requirements(str(file), session='sync')
return [str(ir.req) for ir in install_reqs]
setup(
name='AsyncLine',
version='1.5.9',
long_description=long_description,
long_description_content_type="text/markdown",
description='LINE Unofficial Python Library with Asyncio support and C++ Binding',
author="Anysz, Doodspav, Dyseo",
author_email="[email protected]",
packages=find_packages(exclude=("examples")),
url="https://github.com/dyseo/AsyncLine",
download_url="https://github.com/dyseo/AsyncLine/releases/latest",
license='MIT',
requires_python='>=3.7',
install_requires=install_requires(),
extras_require={
'uvloop': ['uvloop==0.13.0']
},
classifiers=[
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Internet",
"Topic :: Software Development :: Libraries :: Application Frameworks"
"Topic :: Software Development :: Libraries :: Python Modules"
]
)