forked from zulip/zulip-terminal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
93 lines (79 loc) · 2.39 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
89
90
91
92
93
import os
import sys
import codecs
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
from zulipterminal.version import ZT_VERSION
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to pytest")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = ''
def run_tests(self):
import shlex
import pytest
errno = pytest.main(shlex.split(self.pytest_args))
sys.exit(errno)
def long_description():
if not (os.path.isfile('README.md') and os.access('README.md', os.R_OK)):
return ''
with codecs.open('README.md', encoding='utf8') as f:
return f.read()
testing_deps = [
'pytest==3.4.2',
'pytest-cov==2.5.1',
'pytest-mock==1.7.1',
'pytest-pep8==1.0.6',
]
dev_helper_deps = [
'mypy==0.641',
'pudb==2017.1.4',
'snakeviz==0.4.2',
]
setup(
name='zulip-term',
version=ZT_VERSION,
description='A terminal-based interface to zulip chat',
long_description=long_description(),
long_description_content_type='text/markdown',
url='https://github.com/zulip/zulip-terminal',
author='Zulip',
author_email='[email protected]',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: End Users/Desktop',
'Topic :: Communications :: Chat',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
python_requires='>=3.4, <3.8',
keywords='',
packages=find_packages(exclude=['test', 'test.*']),
zip_safe=True,
cmdclass={'test': PyTest},
test_suite='test',
entry_points={
'console_scripts': [
'zulip-term = zulipterminal.cli.run:main',
],
},
extras_require={
'dev': testing_deps + dev_helper_deps,
},
tests_require=testing_deps,
install_requires=[
"typing==3.6.4; python_version < '3.5'",
'urwid==2.0.1',
'zulip==0.5.7',
'emoji==0.5.0',
'urwid_readline==0.8',
'beautifulsoup4==4.6.0',
'lxml==4.2.3',
'mypy_extensions>=0.4',
],
)