forked from vibora-io/vibora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
124 lines (121 loc) · 3.77 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
import re
import pathlib
from setuptools import setup, Extension, find_packages
# Loading version
here = pathlib.Path(__file__).parent
txt = (here / 'vibora' / '__version__.py').read_text()
version = re.findall(r"^__version__ = '([^']+)'\r?$", txt, re.M)[0]
setup(
name="vibora",
version=version,
description='Fast, asynchronous and efficient Python web framework',
author='Frank Vieira',
author_email='[email protected]',
url='https://vibora.io',
license='MIT',
python_requires='>=3.6',
classifiers=[
'Intended Audience :: Developers',
'Development Status :: 4 - Alpha',
'Environment :: Web Environment',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6'
],
extras_require={
'dev': ['flake8', 'pytest', 'tox'],
'fast': ['ujson==1.35', 'uvloop==0.10.2']
},
ext_modules=[
Extension(
"vibora.parsers.parser",
[
"vibora/parsers/parser.c",
"vendor/http-parser-2.8.1/http_parser.c",
],
extra_compile_args=['-O3'],
include_dirs=['.', '/git/vibora/vibora']
),
Extension(
"vibora.parsers.response",
[
"vibora/parsers/response.c",
"vendor/http-parser-2.8.1/http_parser.c"
],
extra_compile_args=['-O3'],
include_dirs=['.', '/git/vibora/vibora']
),
Extension(
"vibora.router.router",
["vibora/router/router.c"],
extra_compile_args=['-O3'],
include_dirs=['.']
),
Extension(
"vibora.responses.responses",
["vibora/responses/responses.c"],
extra_compile_args=['-O3'],
include_dirs=['.']
),
Extension(
"vibora.protocol.cprotocol",
["vibora/protocol/cprotocol.c"],
extra_compile_args=['-O3'],
include_dirs=['.']
),
Extension(
"vibora.protocol.cwebsocket",
["vibora/protocol/cwebsocket.c"],
extra_compile_args=['-O3'],
include_dirs=['.']
),
Extension(
"vibora.request.request",
["vibora/request/request.c"],
extra_compile_args=['-O3'],
include_dirs=['.']
),
Extension(
"vibora.cache.cache",
["vibora/cache/cache.c"],
extra_compile_args=['-O3'],
include_dirs=['.']
),
Extension(
"vibora.headers.headers",
["vibora/headers/headers.c"],
extra_compile_args=['-O3'],
include_dirs=['.']
),
Extension(
"vibora.schemas.extensions.fields",
["vibora/schemas/extensions/fields.c"],
extra_compile_args=['-O3'],
include_dirs=['.', 'vibora/schemas']
),
Extension(
"vibora.schemas.extensions.schemas",
["vibora/schemas/extensions/schemas.c"],
extra_compile_args=['-O3'],
include_dirs=['.', 'vibora/schemas']
),
Extension(
"vibora.schemas.extensions.validator",
["vibora/schemas/extensions/validator.c"],
extra_compile_args=['-O3'],
include_dirs=['.', 'vibora/schemas']
),
Extension(
"vibora.components.components",
["vibora/components/components.c"],
extra_compile_args=['-O3'],
include_dirs=['.']
),
Extension(
"vibora.multipart.parser",
["vibora/multipart/parser.c"],
extra_compile_args=['-O3'],
include_dirs=['.']
)
],
packages=find_packages()
)