forked from Fuyukai/Kyoukai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
56 lines (49 loc) · 1.47 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 os
import sys
from setuptools import find_packages, setup
rootpath = os.path.abspath(os.path.dirname(__file__))
# Extract version
def extract_version(module = 'kyoukai'):
version = None
fname = os.path.join(rootpath, module, 'app.py')
with open(fname) as f:
for line in f:
if line.startswith('__version__'):
_, version = line.split('=')
version = version.strip()[1:-1] # Remove quotation characters.
break
return version
deps = [
"httptools>=0.0.9",
"asphalt>=2.1.0",
"werkzeug>=0.11.10",
"h2>=3.0.0",
]
setup(
name='Kyoukai',
version=extract_version(),
packages=find_packages(),
url='https://mirai.veriny.tf',
license='MIT',
author='Isaac Dickinson',
description='A fast, asynchronous web framework for Python 3.5+',
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.5",
"Topic :: Internet",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Application Frameworks"
],
install_requires=deps,
test_requires=[
"pytest",
"pytest-asyncio"
],
extras_require={
"gunicorn": ["aiohttp>=1.1.0", "gunicorn>=19.6.0"],
"uwsgi": ["greenlet>=0.4.0"]
}
)