forked from pusher/pusher-http-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
58 lines (49 loc) · 1.57 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
# -*- coding: utf-8 -*-
from setuptools import setup
import os
import re
# Lovingly adapted from https://github.com/kennethreitz/requests/blob/39d693548892057adad703fda630f925e61ee557/setup.py#L50-L55
with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'pusher/version.py'), 'r') as fd:
VERSION = re.search(r'^VERSION = [\']([^\']*)[\']',
fd.read(), re.MULTILINE).group(1)
if not VERSION:
raise RuntimeError('Ensure `VERSION` is correctly set in ./pusher/version.py')
setup(
name='pusher',
version=VERSION,
description='A Python library to interract with the Pusher API',
url='https://github.com/pusher/pusher-http-python',
author='Pusher',
author_email='support@pusher.com',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Internet :: WWW/HTTP',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
keywords='pusher rest realtime websockets service',
license='MIT',
packages=[
'pusher'
],
install_requires=[
'six',
'requests>=2.3.0',
'urllib3',
'pyopenssl',
'ndg-httpsclient',
'pyasn1'
],
tests_require=['nose', 'mock', 'HTTPretty'],
extras_require={
'aiohttp': ['aiohttp>=0.9.0'],
'tornado': ['tornado>=4.0.0']
},
package_data={
'pusher': ['cacert.pem']
},
test_suite='pusher_tests',
)