-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathsetup.py
48 lines (40 loc) · 1.36 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
#!/usr/bin/env python
import codecs
import os
import re
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with codecs.open(os.path.join(os.path.abspath(os.path.dirname(
__file__)), 'aiosocks', '__init__.py'), 'r', 'latin1') as fp:
try:
version = re.findall(r"^__version__ = '([^']+)'\r?$",
fp.read(), re.M)[0]
except IndexError:
raise RuntimeError('Unable to determine version.')
if sys.version_info < (3, 5, 3):
raise RuntimeError("aiosocks requires Python 3.5.3+")
setup(
name='aiosocks',
author='Nail Ibragimov',
author_email='[email protected]',
version=version,
license='Apache 2',
url='https://github.com/nibrag/aiosocks',
description='SOCKS proxy client for asyncio and aiohttp',
long_description=open("README.rst").read(),
classifiers=(
"License :: OSI Approved :: Apache Software License"
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
),
packages=['aiosocks'],
install_requires=[
'aiohttp>=3.4',
]
)