-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
45 lines (40 loc) · 1.28 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import codecs
import re
from setuptools import setup
# Get the version (stole this from h2)
version_regex = r'__version__ = ["\']([^"\']*)["\']'
with open('th2c/__init__.py', 'r') as f:
text = f.read()
match = re.search(version_regex, text)
version = match.group(1)
readme = codecs.open('README.rst', encoding='utf-8').read()
setup(
name='th2c',
version=version,
description='HTTP/2 Async Client written with h2, for tornado',
long_description=readme,
author='Vlad Stefan Munteanu',
author_email='[email protected]',
url='https://github.com/vladmunteanu/th2c',
packages=['th2c'],
package_data={'': ['LICENSE', 'README.rst']},
package_dir={'th2c': 'th2c'},
include_package_data=True,
license='MIT License',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: Implementation :: CPython',
],
install_requires=[
'tornado>=4.2',
'h2==3.0.1',
]
)