forked from hangoutsbot/hangups
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
74 lines (66 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
from setuptools import setup
from setuptools.command.test import test as TestCommand
import os
import sys
# Find __version__ without import that requires dependencies to be installed:
exec(open(os.path.join(
os.path.dirname(__file__), 'hangups/version.py'
)).read())
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
with open('README.rst') as f:
readme = f.read()
install_requires = [
'ConfigArgParse==0.9.3',
'aiohttp==0.15.1',
'appdirs==1.4.0',
'purplex==0.2.4',
'readlike>=0.1',
'requests==2.6.0',
'ReParser>=1.4',
# use forked urwid until there's a 1.3 release with colour bugfix
'hangups-urwid==1.2.2-dev',
# backport asyncio for python3.3:
'asyncio==3.4.3',
]
if sys.version_info < (3, 4):
# For Python earlier than 3.4, a backport of enum is required.
install_requires.append('enum34==1.0.4')
setup(
name='hangups',
version=__version__,
description=('the first third-party instant messaging client for Google '
'Hangouts'),
long_description=readme,
url='https://github.com/tdryer/hangups',
author='Tom Dryer',
author_email='[email protected]',
license='MIT',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
packages=['hangups', 'hangups.ui'],
install_requires=install_requires,
tests_require=[
'pytest',
],
cmdclass={'test': PyTest},
entry_points={
'console_scripts': [
'hangups=hangups.ui.__main__:main',
],
},
)