2020-08-07 02:01:20 +02:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
import os
|
2022-07-09 15:25:16 +02:00
|
|
|
from typing import Tuple
|
2020-08-07 02:01:20 +02:00
|
|
|
|
|
|
|
from setuptools import find_packages, setup
|
|
|
|
|
2022-08-08 16:43:05 +02:00
|
|
|
from matrix_alertbot import __version__
|
|
|
|
|
2020-08-07 02:01:20 +02:00
|
|
|
|
2022-06-14 23:37:54 +02:00
|
|
|
def read_file(path_segments: Tuple) -> str:
|
2020-08-07 02:01:20 +02:00
|
|
|
"""Read a file from the package. Takes a list of strings to join to
|
|
|
|
make the path"""
|
|
|
|
file_path = os.path.join(os.path.abspath(os.path.dirname(__file__)), *path_segments)
|
|
|
|
with open(file_path) as f:
|
|
|
|
return f.read()
|
|
|
|
|
|
|
|
|
2022-08-08 16:43:05 +02:00
|
|
|
version = __version__
|
2020-08-07 02:01:20 +02:00
|
|
|
long_description = read_file(("README.md",))
|
|
|
|
|
|
|
|
|
|
|
|
setup(
|
2022-06-13 20:55:01 +02:00
|
|
|
name="matrix-alertbot",
|
2020-08-07 02:01:20 +02:00
|
|
|
version=version,
|
|
|
|
url="https://github.com/anoadragon453/nio-template",
|
2020-08-12 02:37:54 +02:00
|
|
|
description="A matrix bot to do amazing things!",
|
2020-08-07 02:01:20 +02:00
|
|
|
packages=find_packages(exclude=["tests", "tests.*"]),
|
2022-08-08 16:43:05 +02:00
|
|
|
include_package_data=True,
|
2020-08-07 02:01:20 +02:00
|
|
|
install_requires=[
|
2022-07-09 15:30:10 +02:00
|
|
|
"aiohttp>=3.8.1",
|
2022-07-09 15:25:16 +02:00
|
|
|
"aiohttp-prometheus-exporter>=0.2.4",
|
|
|
|
"aiotools>=1.5.9",
|
|
|
|
"diskcache>=5.4.0",
|
2022-07-28 17:39:47 +02:00
|
|
|
"jinja2>=3.1.2",
|
2022-07-09 15:30:10 +02:00
|
|
|
"matrix-nio>=0.19.0",
|
|
|
|
"Markdown>=3.3.7",
|
2022-07-10 02:40:04 +02:00
|
|
|
"pytimeparse2>=1.4.0",
|
2022-08-08 16:43:05 +02:00
|
|
|
"PyYAML>=5.4.1",
|
2022-07-09 15:30:10 +02:00
|
|
|
"typing-extensions>=4.3.0",
|
2020-08-07 02:01:20 +02:00
|
|
|
],
|
|
|
|
extras_require={
|
2022-07-09 15:25:16 +02:00
|
|
|
"e2e": ["matrix-nio[e2e]>=0.19.0"],
|
2020-08-07 02:01:20 +02:00
|
|
|
},
|
|
|
|
classifiers=[
|
2022-08-08 16:53:36 +02:00
|
|
|
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
|
2020-08-07 02:01:20 +02:00
|
|
|
"Programming Language :: Python :: 3 :: Only",
|
2022-07-09 15:25:16 +02:00
|
|
|
"Programming Language :: Python :: 3.9",
|
|
|
|
"Programming Language :: Python :: 3.10",
|
2020-08-07 02:01:20 +02:00
|
|
|
],
|
|
|
|
long_description=long_description,
|
|
|
|
long_description_content_type="text/markdown",
|
2022-06-13 20:55:01 +02:00
|
|
|
# Allow the user to run the bot with `matrix-alertbot ...`
|
|
|
|
scripts=["matrix-alertbot"],
|
2020-08-07 02:01:20 +02:00
|
|
|
)
|