This repository has been archived by the owner on Mar 1, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsetup.py
64 lines (56 loc) · 1.66 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
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,<0.1.0",
"asphalt>=2.1.1,!=3.0.0",
"werkzeug>=0.12.0,<0.13.0",
"h2>=3.0.0,<3.1.0",
]
setup(
name='Kyoukai',
version=extract_version(),
packages=[
'kyoukai',
'kyoukai.backends',
# ext packages
#'kyoukai.ext',
#'kyoukai.ext.rest',
],
url='https://mirai.veriny.tf',
license='MIT',
author='Laura Dickinson',
author_email='l@veriny.tf',
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"
"Programming Language :: Python :: 3.6",
"Topic :: Internet",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Application Frameworks"
],
install_requires=deps,
test_requires=[
"pytest",
"pytest-asyncio"
],
extras_require={
"gunicorn": ["aiohttp>=2.2.0,<2.3.0", "gunicorn>=19.6.0"],
"uwsgi": ["greenlet>=0.4.0"]
}
)