-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (34 loc) · 1.37 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
from distutils.core import setup
from setuptools.extension import Extension
from setuptools import find_packages
DESC = """
A high performance, concurrent HTTP client library for python using gevent.
geventhttpclient use a fast http parser, written in C, originating from nginx,
extracted and modified by Joyent.
geventhttpclient has been specifically designed for high concurrency,
streaming and support HTTP 1.1 persistent connections. More generally it is
designed for efficiently pulling from REST APIs and streaming API's
like Twitter's.
Safe SSL support is provided by default.
Python 2.6 and 2.7 are supported as well as gevent 0.13 and gevent 1.0.
"""
httpparser = Extension('geventhttpclient._parser',
sources = ['ext/_parser.c', 'ext/http_parser.c'],
include_dirs = ['ext'])
setup(name='geventhttpclient',
version = '1.1.0',
description = 'http client library for gevent',
long_description = DESC,
url="http://github.com/gwik/geventhttpclient",
author="Antonin Amand",
author_email="[email protected]",
packages=find_packages('src'),
license='LICENSE-MIT',
package_dir={'': 'src'},
ext_modules = [httpparser],
include_package_data=True,
install_requires=[
'gevent >= 0.13',
'backports.ssl_match_hostname',
'certifi'
])