-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
65 lines (57 loc) · 1.85 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
import os
import re
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
def read(fname):
"""
Read given file's content.
:param str fname: file name
:returns: file contents
:rtype: str
"""
return open(os.path.join(here, fname)).read()
with open("insanic/__init__.py", encoding="utf8") as f:
version = re.search(r'__version__ = "(.*?)"', f.read()).group(1)
setup(
name="insanic-framework",
version=version,
description="An API framework that extends sanic with a focus on microservices.",
long_description=read("README.rst"),
classifiers=[
"Intended Audience :: Developers",
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Software Development :: Libraries :: Application Frameworks",
],
keywords="api framework sanic async asyncio microservice msa python python3",
url="https://github.com/crazytruth/insanic",
author="Kwang Jin Kim",
author_email="[email protected]",
license="MIT",
packages=find_packages(
exclude=["contrib", "docs", "requirements", "tests*"]
),
install_requires=[
"uvloop",
"sanic>=20.03,<20.10",
"aioredis>=1.1.0",
"PyJWT",
"aiotask_context",
"python-dateutil",
"prometheus-client==0.5.0",
"psutil",
"packaging",
],
test_suite="tests",
include_package_data=True,
zip_safe=False,
project_urls={
"Documentation": "https://insanic.readthedocs.io/en/latest/",
"Source": "https://github.com/crazytruth/insanic",
"Tracker": "https://github.com/crazytruth/insanic/issues",
},
python_requires=">=3.6",
)