2018-09-23 10:56:21 -04:00
|
|
|
import setuptools
|
2018-10-14 15:08:11 -04:00
|
|
|
import os
|
|
|
|
|
2020-03-01 06:53:10 -05:00
|
|
|
with open("requirements.txt") as reqs:
|
|
|
|
install_requires = reqs.read().splitlines()
|
|
|
|
|
2020-07-12 07:55:41 -04:00
|
|
|
with open("optional-requirements.txt") as reqs:
|
|
|
|
extras_require = {}
|
|
|
|
current = []
|
|
|
|
for line in reqs.read().splitlines():
|
|
|
|
if line.startswith("#/"):
|
|
|
|
extras_require[line[2:]] = current = []
|
|
|
|
elif not line or line.startswith("#"):
|
|
|
|
continue
|
|
|
|
else:
|
|
|
|
current.append(line)
|
|
|
|
|
|
|
|
extras_require["all"] = list({dep for deps in extras_require.values() for dep in deps})
|
|
|
|
|
2018-10-14 15:08:11 -04:00
|
|
|
path = os.path.join(os.path.abspath(os.path.dirname(__file__)), "maubot", "__meta__.py")
|
|
|
|
__version__ = "UNKNOWN"
|
|
|
|
with open(path) as f:
|
|
|
|
exec(f.read())
|
2018-09-23 10:56:21 -04:00
|
|
|
|
|
|
|
setuptools.setup(
|
|
|
|
name="maubot",
|
2018-09-26 03:32:24 -04:00
|
|
|
version=__version__,
|
2018-09-23 10:56:21 -04:00
|
|
|
url="https://github.com/maubot/maubot",
|
2022-03-25 14:48:36 -04:00
|
|
|
project_urls={
|
|
|
|
"Changelog": "https://github.com/maubot/maubot/blob/master/CHANGELOG.md",
|
|
|
|
},
|
2018-09-23 10:56:21 -04:00
|
|
|
|
|
|
|
author="Tulir Asokan",
|
|
|
|
author_email="tulir@maunium.net",
|
|
|
|
|
|
|
|
description="A plugin-based Matrix bot system.",
|
|
|
|
long_description=open("README.md").read(),
|
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
|
|
|
|
packages=setuptools.find_packages(),
|
|
|
|
|
2020-03-01 06:53:10 -05:00
|
|
|
install_requires=install_requires,
|
2020-07-12 07:55:41 -04:00
|
|
|
extras_require=extras_require,
|
2022-03-04 08:38:34 -05:00
|
|
|
python_requires="~=3.8",
|
2018-09-23 10:56:21 -04:00
|
|
|
|
|
|
|
classifiers=[
|
2021-05-02 12:07:48 -04:00
|
|
|
"Development Status :: 4 - Beta",
|
2018-09-23 10:56:21 -04:00
|
|
|
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
|
|
|
|
"Topic :: Communications :: Chat",
|
|
|
|
"Framework :: AsyncIO",
|
|
|
|
"Programming Language :: Python",
|
|
|
|
"Programming Language :: Python :: 3",
|
2019-12-28 09:04:38 -05:00
|
|
|
"Programming Language :: Python :: 3.8",
|
2020-10-24 08:13:50 -04:00
|
|
|
"Programming Language :: Python :: 3.9",
|
2022-03-04 08:38:34 -05:00
|
|
|
"Programming Language :: Python :: 3.10",
|
2018-09-23 10:56:21 -04:00
|
|
|
],
|
|
|
|
entry_points="""
|
|
|
|
[console_scripts]
|
2018-12-12 18:28:23 -05:00
|
|
|
mbc=maubot.cli:app
|
2018-09-23 10:56:21 -04:00
|
|
|
""",
|
|
|
|
data_files=[
|
2022-03-25 13:45:48 -04:00
|
|
|
(".", ["maubot/example-config.yaml"]),
|
2018-09-23 10:56:21 -04:00
|
|
|
],
|
2018-11-01 12:11:54 -04:00
|
|
|
package_data={
|
2021-11-19 08:22:54 -05:00
|
|
|
"maubot": [
|
|
|
|
"example-config.yaml",
|
|
|
|
"management/frontend/build/*",
|
|
|
|
"management/frontend/build/static/css/*",
|
|
|
|
"management/frontend/build/static/js/*",
|
|
|
|
"management/frontend/build/static/media/*",
|
|
|
|
],
|
2018-12-13 11:15:24 -05:00
|
|
|
"maubot.cli": ["res/*"],
|
2021-11-19 08:23:10 -05:00
|
|
|
"maubot.standalone": ["example-config.yaml"],
|
2018-11-01 12:11:54 -04:00
|
|
|
},
|
2018-09-23 10:56:21 -04:00
|
|
|
)
|