forked from pgjones/hypercorn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
73 lines (65 loc) · 2.02 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
import os
import sys
from setuptools import setup, find_packages
if sys.version_info < (3, 7):
sys.exit("Python 3.7 is the minimum required version")
PROJECT_ROOT = os.path.dirname(__file__)
about = {}
with open(os.path.join(PROJECT_ROOT, "src", "hypercorn", "__about__.py")) as file_:
exec(file_.read(), about)
with open(os.path.join(PROJECT_ROOT, "README.rst")) as file_:
long_description = file_.read()
INSTALL_REQUIRES = [
"h11",
"h2 >= 3.1.0",
"priority",
"toml",
"typing_extensions",
"wsproto >= 0.14.0",
]
TESTS_REQUIRE = [
"hypothesis",
"mock",
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-trio",
"trio",
]
setup(
name="Hypercorn",
version=about["__version__"],
python_requires=">=3.7",
description="A ASGI Server based on Hyper libraries and inspired by Gunicorn.",
long_description=long_description,
url="https://gitlab.com/pgjones/hypercorn/",
author="P G Jones",
author_email="[email protected]",
license="MIT",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
],
packages=find_packages("src"),
package_dir={"": "src"},
py_modules=["hypercorn"],
install_requires=INSTALL_REQUIRES,
extras_require={
"h3": ["aioquic >= 0.9.0, < 1.0"],
"tests": TESTS_REQUIRE,
"trio": ["trio >= 0.11.0"],
"uvloop": ["uvloop"],
},
tests_require="hypercorn[tests]",
entry_points={"console_scripts": ["hypercorn = hypercorn.__main__:main"]},
include_package_data=True,
)