-
-
Notifications
You must be signed in to change notification settings - Fork 274
/
Copy pathsetup.py
123 lines (108 loc) · 3.55 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
import codecs
import os
from setuptools import find_packages, setup
from zulipterminal.version import ZT_VERSION
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:
source = f.read()
# Skip first line (assumed to have title) to reduce duplication
return "\n".join(source.splitlines()[1:])
testing_minimal_deps = [
"pytest~=7.2.0",
"pytest-mock~=3.10.0",
]
testing_plugin_deps = [
"pytest-cov~=4.0.0",
]
testing_deps = testing_minimal_deps + testing_plugin_deps
linting_deps = [
"isort~=5.11.0",
"black~=23.0",
"ruff==0.0.267",
"codespell[toml]~=2.2.5",
"typos~=1.16.11",
]
gitlint_deps = [
"gitlint~=0.18.0",
]
typing_deps = [
"lxml-stubs",
"mypy~=1.8.0",
"types-beautifulsoup4",
"types-pygments",
"types-python-dateutil",
"types-tzlocal",
"types-pytz",
"types-requests",
]
helper_deps = [
"pudb==2022.1.1",
"snakeviz>=2.1.1",
"requests>=2.25.0", # Added for debug_helper.py
]
setup(
name="zulip-term",
version=ZT_VERSION,
description="Zulip's official terminal client",
long_description=long_description(),
long_description_content_type="text/markdown",
url="https://github.com/zulip/zulip-terminal",
author="Zulip Open Source Project",
author_email="[email protected]",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: End Users/Desktop",
"Topic :: Communications :: Chat",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
project_urls={
"Changelog": "https://github.com/zulip/zulip-terminal/blob/main/CHANGELOG.md",
"FAQs": "https://github.com/zulip/zulip-terminal/blob/main/docs/FAQ.md",
"Issues": "https://github.com/zulip/zulip-terminal/issues",
"Hot Keys": "https://github.com/zulip/zulip-terminal/blob/main/docs/hotkeys.md",
},
python_requires=">=3.7, <3.12",
keywords="",
packages=find_packages(exclude=["tests", "tests.*"]),
zip_safe=True,
entry_points={
"console_scripts": [
"zulip-term = zulipterminal.cli.run:main",
"zulip-term-check-symbols = zulipterminal.scripts.render_symbols:main",
# Added debug helper with proper path
"zulip-term-debug = zulipterminal.scripts.debug_helper:main",
],
},
extras_require={
"dev": testing_deps + linting_deps + typing_deps + helper_deps + gitlint_deps,
"testing": testing_deps,
"testing-minimal": testing_minimal_deps, # extra must be hyphenated
"linting": linting_deps,
"gitlint": gitlint_deps,
"typing": typing_deps,
},
tests_require=testing_deps,
install_requires=[
"urwid~=2.1.2",
"zulip>=0.8.2",
"urwid_readline>=0.13",
"beautifulsoup4>=4.11.1",
"lxml~=4.9.2",
"pygments>=2.14.0,<2.18.0",
"typing_extensions~=4.5.0",
"python-dateutil>=2.8.2",
"pytz>=2022.7.1",
"tzlocal>=2.1",
"pyperclip>=1.8.1",
],
)