forked from gawel/irc3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
88 lines (78 loc) · 2.26 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# -*- coding: utf-8 -*-
import os
import sys
import codecs
from setuptools import setup
from setuptools import find_packages
version = '0.8.10.dev0'
install_requires = ['venusian>=1.0', 'docopt']
test_requires = [
'feedparser', 'requests',
'twitter',
'aiocron',
'redis',
]
install_requires_py2 = [
'trollius',
'futures',
'ipaddress',
'configparser',
]
test_requires_py2 = ['mock', 'pysendfile']
install_requires_py32 = [
'trollius',
'ipaddress',
]
test_requires_py32 = ['mock', 'pysendfile']
install_requires_py33 = [
'asyncio',
]
py_ver = sys.version_info[:2]
if py_ver < (3, 0):
install_requires.extend(install_requires_py2)
test_requires.extend(test_requires_py2)
elif py_ver < (3, 3):
install_requires.extend(install_requires_py32)
test_requires.extend(test_requires_py2)
elif py_ver < (3, 4):
install_requires.extend(install_requires_py33)
def read(*rnames):
filename = os.path.join(os.path.dirname(__file__), *rnames)
with codecs.open(filename, encoding='utf8') as fd:
return fd.read()
setup(
name='irc3',
version=version,
description="plugable irc client library based on asyncio",
long_description=read('README.rst'),
classifiers=[
'Intended Audience :: Developers',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'License :: OSI Approved :: MIT License',
'Topic :: Communications :: Chat :: Internet Relay Chat',
],
keywords='irc asyncio tulip',
author='Gael Pasgrimaud',
author_email='[email protected]',
url='https://github.com/gawel/irc3/',
license='MIT',
packages=find_packages(exclude=['docs', 'tests']),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
extras_require={
':python_version=="2.7"': install_requires_py2,
':python_version=="3.2"': install_requires_py32,
':python_version=="3.3"': install_requires_py33,
'test': test_requires,
'test:python_version=="2.7"': install_requires_py2,
'test:python_version=="3.2"': test_requires_py32,
},
entry_points='''
[console_scripts]
irc3 = irc3:run
irc3d = irc3d:run
''',
)