-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
36 lines (30 loc) · 1.11 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
import sys
import os
import re
from setuptools import setup
if not sys.hexversion >= 0x30400f0:
raise RuntimeError("Python 3.4 or later required")
with open(os.path.join(os.path.abspath(os.path.dirname(__file__)),
'lib', 'aiohttpproxy', '__init__.py'), 'r') as f:
try:
version = re.findall(r"^__version__ = '([^']+)'$", f.read(), re.M)[0]
except IndexError:
raise RuntimeError('Unable to determine version')
install_requires = ['aiohttp']
tests_require = install_requires + ['nose']
setup(
name = 'aiohttpproxy',
version = version,
description = 'Simple aiohttp HTTP Proxy',
url = 'https://github.com/jmehnle/aiohttpproxy',
author = 'Julian Mehnle',
author_email = 'julian@mehnle.net',
license = 'Apache-2.0',
package_dir = {'': 'lib'},
packages = ['aiohttpproxy'],
install_requires = install_requires,
tests_require = tests_require,
test_suite = 'nose.collector',
scripts = ['bin/aiohttpproxy']
)
# vim:sw=4 sts=4