-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
77 lines (69 loc) · 1.99 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
# -*- coding: utf-8 -*-
import os
import sys
import codecs
from setuptools import setup
from setuptools import find_packages
version = '0.0.1.dev0'
install_requires = ['docopt>=0.6.2', 'irc3']
test_requires = [
'coverage', 'aiocron',
'feedparser', 'requests',
'twitter', 'panoramisk',
'transmissionrpc',
'chut',
# 'freezegun',
# 'python-dateutil',
]
py_ver = sys.version_info[:2]
if py_ver < (3, 0):
install_requires.extend([
'trollius',
'futures',
'configparser',
])
test_requires.extend(['mock'])
elif py_ver < (3, 3):
install_requires.append('trollius')
test_requires.append('mock')
elif py_ver < (3, 4):
install_requires.append('asyncio')
# some of moto's dependencies use the u-prefix for strings (u"foo"),
# which is not compatible with Python 3.0, 3.1, or 3.2. Only declare
# moto as a test dependency if we're on Python 2, or if we're on 3.3 or higher.
# if py_ver < (3, 0) or py_ver >= (3, 3):
# test_requires.append('moto')
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_plugins',
version=version,
description="plugins for irc3",
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',
],
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={
'test': test_requires,
},
entry_points='''
[console_scripts]
irc3 = irc3:run
irc3d = irc3d:run
''',
)