Merge branch 'CyberTailor-master'
This commit is contained in:
commit
6e24781d76
|
@ -26,6 +26,9 @@ from mastoposter.integrations import (
|
||||||
)
|
)
|
||||||
from mastoposter.types import Status
|
from mastoposter.types import Status
|
||||||
|
|
||||||
|
__version__ = "0"
|
||||||
|
__description__ = "Mastodon to [anything] reposter"
|
||||||
|
|
||||||
logger = getLogger()
|
logger = getLogger()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ from logging import (
|
||||||
getLevelName,
|
getLevelName,
|
||||||
getLogger,
|
getLogger,
|
||||||
)
|
)
|
||||||
from sys import stdout
|
from sys import argv, stdout
|
||||||
from mastoposter import execute_integrations, load_integrations_from
|
from mastoposter import execute_integrations, load_integrations_from
|
||||||
from mastoposter.integrations import FilteredIntegration
|
from mastoposter.integrations import FilteredIntegration
|
||||||
from mastoposter.sources import websocket_source
|
from mastoposter.sources import websocket_source
|
||||||
|
@ -95,7 +95,7 @@ async def listen(
|
||||||
await execute_integrations(status, drains)
|
await execute_integrations(status, drains)
|
||||||
|
|
||||||
|
|
||||||
def main(config_path: str):
|
def main(config_path: str = argv[1]):
|
||||||
conf = ConfigParser(interpolation=ExtendedInterpolation())
|
conf = ConfigParser(interpolation=ExtendedInterpolation())
|
||||||
conf.read(config_path)
|
conf.read(config_path)
|
||||||
|
|
||||||
|
@ -137,6 +137,4 @@ def main(config_path: str):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
from sys import argv
|
main()
|
||||||
|
|
||||||
main(argv[1])
|
|
||||||
|
|
|
@ -0,0 +1,37 @@
|
||||||
|
[build-system]
|
||||||
|
requires = ["flit_core >=3.2,<4"]
|
||||||
|
build-backend = "flit_core.buildapi"
|
||||||
|
|
||||||
|
[project]
|
||||||
|
name = "mastoposter"
|
||||||
|
authors = [
|
||||||
|
{name = "hatkidchan", email = "hatkidchan@gmail.com"}
|
||||||
|
]
|
||||||
|
readme = "README.md"
|
||||||
|
license = {file = "LICENSE"}
|
||||||
|
classifiers = [
|
||||||
|
"Environment :: No Input/Output (Daemon)",
|
||||||
|
"Intended Audience :: End Users/Desktop",
|
||||||
|
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
|
||||||
|
"Topic :: Communications",
|
||||||
|
"Topic :: Internet :: WWW/HTTP"
|
||||||
|
]
|
||||||
|
keywords = ["mastodon", "discord", "telegram"]
|
||||||
|
requires-python = ">=3.7"
|
||||||
|
dependencies = [
|
||||||
|
"Jinja2",
|
||||||
|
"beautifulsoup4",
|
||||||
|
"emoji",
|
||||||
|
"httpx",
|
||||||
|
"websockets"
|
||||||
|
]
|
||||||
|
dynamic = ["version", "description"]
|
||||||
|
|
||||||
|
[project.urls]
|
||||||
|
Source = "https://github.com/hatkidchan/mastoposter"
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
mastoposter = "mastoposter.__main__:main"
|
||||||
|
|
||||||
|
[tool.flit.sdist]
|
||||||
|
include = ["config.ini"]
|
Loading…
Reference in New Issue