2017-12-12 08:05:41 -05:00
|
|
|
#!/usr/bin/env python3
|
2017-07-18 00:17:16 -04:00
|
|
|
|
2022-02-09 20:48:32 -05:00
|
|
|
from setuptools import find_packages, setup
|
2017-07-18 00:17:16 -04:00
|
|
|
|
2022-03-15 20:44:12 -04:00
|
|
|
ZULIP_BOTS_VERSION = "0.8.2"
|
2017-09-18 20:04:03 -04:00
|
|
|
IS_PYPA_PACKAGE = False
|
2017-09-20 19:02:43 -04:00
|
|
|
|
2018-01-08 16:46:10 -05:00
|
|
|
|
|
|
|
package_data = {
|
2021-05-28 05:05:11 -04:00
|
|
|
"": ["doc.md", "*.conf", "assets/*"],
|
|
|
|
"zulip_bots": ["py.typed"],
|
2018-01-08 16:46:10 -05:00
|
|
|
}
|
|
|
|
|
2022-01-04 21:29:10 -05:00
|
|
|
# IS_PYPA_PACKAGE should be set to True before making a PyPA release.
|
2017-09-18 20:04:03 -04:00
|
|
|
if not IS_PYPA_PACKAGE:
|
2021-05-28 05:05:11 -04:00
|
|
|
package_data[""].append("fixtures/*.json")
|
|
|
|
package_data[""].append("logo.*")
|
2017-09-20 19:02:43 -04:00
|
|
|
|
2020-04-09 20:14:01 -04:00
|
|
|
with open("README.md") as fh:
|
2020-04-16 20:34:03 -04:00
|
|
|
long_description = fh.read()
|
|
|
|
|
2022-02-09 20:48:32 -05:00
|
|
|
setup(
|
2021-05-28 05:05:11 -04:00
|
|
|
name="zulip_bots",
|
2017-09-20 19:02:43 -04:00
|
|
|
version=ZULIP_BOTS_VERSION,
|
2021-05-28 05:05:11 -04:00
|
|
|
description="Zulip's Bot framework",
|
2020-04-16 20:34:03 -04:00
|
|
|
long_description=long_description,
|
|
|
|
long_description_content_type="text/markdown",
|
2021-05-28 05:05:11 -04:00
|
|
|
author="Zulip Open Source Project",
|
|
|
|
author_email="zulip-devel@googlegroups.com",
|
2017-07-18 00:17:16 -04:00
|
|
|
classifiers=[
|
2021-05-28 05:05:11 -04:00
|
|
|
"Development Status :: 4 - Beta",
|
|
|
|
"Environment :: Web Environment",
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"License :: OSI Approved :: Apache Software License",
|
|
|
|
"Topic :: Communications :: Chat",
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"Programming Language :: Python :: 3.6",
|
|
|
|
"Programming Language :: Python :: 3.7",
|
|
|
|
"Programming Language :: Python :: 3.8",
|
|
|
|
"Programming Language :: Python :: 3.9",
|
2017-07-18 00:17:16 -04:00
|
|
|
],
|
2021-05-28 05:05:11 -04:00
|
|
|
python_requires=">=3.6",
|
|
|
|
url="https://www.zulip.org/",
|
2020-05-02 18:31:39 -04:00
|
|
|
project_urls={
|
|
|
|
"Source": "https://github.com/zulip/python-zulip-api/",
|
2020-06-08 17:03:27 -04:00
|
|
|
"Documentation": "https://zulip.com/api",
|
2020-05-02 18:31:39 -04:00
|
|
|
},
|
2017-07-18 00:17:16 -04:00
|
|
|
entry_points={
|
2021-05-28 05:05:11 -04:00
|
|
|
"console_scripts": [
|
|
|
|
"zulip-run-bot=zulip_bots.run:main",
|
2021-11-20 02:00:56 -05:00
|
|
|
"zulip-bot-shell=zulip_bots.bot_shell:main",
|
2017-07-18 00:17:16 -04:00
|
|
|
],
|
|
|
|
},
|
|
|
|
install_requires=[
|
2021-05-28 05:05:11 -04:00
|
|
|
"pip",
|
|
|
|
"zulip",
|
|
|
|
"html2text",
|
|
|
|
"lxml",
|
|
|
|
"BeautifulSoup4",
|
|
|
|
"typing_extensions",
|
2021-07-22 00:13:40 -04:00
|
|
|
'importlib-metadata >= 3.6; python_version < "3.10"',
|
2017-07-18 00:17:16 -04:00
|
|
|
],
|
2022-02-09 20:48:32 -05:00
|
|
|
packages=find_packages(),
|
|
|
|
package_data=package_data,
|
2017-07-18 00:17:16 -04:00
|
|
|
)
|