forked from mSOHU/http2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (47 loc) · 1.3 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# Get the version
version_regex = r'__version__ = ["\']([^"\']*)["\']'
with open('http2/__init__.py', 'r') as f:
text = f.read()
match = re.search(version_regex, text)
if match:
version = match.group(1)
else:
raise RuntimeError("No version number found!")
setup(
name='http2',
version=version,
description="HTTP/2 client with hyper-h2 for tornado",
author="boyxuper",
author_email='[email protected]',
url='https://github.com/mSOHU/http2',
packages=[
'http2',
],
package_dir={
'http2': 'http2',
},
install_requires=[
'h2>=2.1.0',
'tornado>=2.4.1',
'backports.ssl_match_hostname',
],
license="Apache Software License",
zip_safe=False,
keywords='http2 tornado',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: Implementation :: CPython',
],
)