Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update license headers and some deps #228

Merged
merged 2 commits into from
Mar 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
3 changes: 0 additions & 3 deletions config.example.py
Original file line number Diff line number Diff line change
@@ -52,9 +52,6 @@
"rabbitmq": {
"url": "",
},
"sqs": {
"url": "",
},
"kafka": {
"bootstrap_servers": [],
},
616 changes: 299 additions & 317 deletions poetry.lock

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -40,23 +40,22 @@ python = "^3.9"
quart = "0.19.4"
aiofiles = "23.2.1"
websockets = "12.0"
uvicorn = "0.27.1"
uvicorn = "0.28.0"
aiohttp = "3.9.3"
python-magic = "0.4.27"
pillow = "10.2.0"
protobuf = "4.25.3"
python-dateutil = "2.8.2"
cryptography = "42.0.4"
python-dateutil = "2.9.0.post0"
cryptography = "42.0.5"
emoji = "2.10.1"
six = "1.16.0"
bcrypt = "4.1.2"
quart-schema = "0.19.1"
pydantic = "2.6.1"
pydantic = "2.6.3"
werkzeug = "3.0.1"
aioftp = "0.22.3"
orjson = "3.9.14"
mailers = {version = "3.0.1", extras = ["smtp"]}
propan = {version = "0.1.5.26", extras = ["async-rabbit", "async-redis"]} # TODO: replace with faststream
orjson = "3.9.15"
mailers = {version = "3.0.2", extras = ["smtp"]}
redis = ">=4.6.0"
click = "8.1.7"
maxminddb = "2.5.2"
@@ -67,7 +66,8 @@ async-timeout = "^4.0.3"
aerich = "^0.7.2"
yc-protobuf3-to-dict = "^0.3.0"
s3lite = "^0.1.4"
fast-depends = ">=2.1.1,<2.2.0"
fast-depends = ">=2.4.2"
faststream = {extras = ["kafka", "nats", "rabbit", "redis"], version = "^0.4.7"}

[tool.poetry.group.dev.dependencies]
pytest-cov = "4.1.0"
2 changes: 1 addition & 1 deletion tests/cdn/test_storage_and_cdn.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion tests/test_core.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/asgi.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/cdn/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/cdn/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/cli.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/gateway/events.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
6 changes: 3 additions & 3 deletions yepcord/gateway/gateway.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
@@ -289,8 +289,8 @@ class Gateway:
def __init__(self, core: Core):
self.core = core
self.broker = getBroker()
self.broker.handle("yepcord_events")(self.mcl_yepcordEventsCallback)
self.broker.handle("yepcord_sys_events")(self.mcl_yepcordSysEventsCallback)
self.broker.subscriber("yepcord_events")(self.mcl_yepcordEventsCallback)
self.broker.subscriber("yepcord_sys_events")(self.mcl_yepcordSysEventsCallback)
self.store = WsStore()
self.presences = Presences(self)
self.ev = GatewayEvents(self)
2 changes: 1 addition & 1 deletion yepcord/gateway/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/gateway/presences.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/gateway/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
4 changes: 2 additions & 2 deletions yepcord/remote_auth/gateway.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
@@ -129,7 +129,7 @@ class Gateway:
def __init__(self):
self.clients_by_fingerprint: dict[str, GatewayClient] = {}
self.broker = getBroker()
self.broker.handle("yepcord_remote_auth")(self.mq_callback)
self.broker.subscriber("yepcord_remote_auth")(self.mq_callback)

async def init(self):
await self.broker.start()
2 changes: 1 addition & 1 deletion yepcord/remote_auth/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
18 changes: 18 additions & 0 deletions yepcord/rest_api/dependencies.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

from time import time
from typing import Union, Optional, Callable, Awaitable, TypeVar

2 changes: 1 addition & 1 deletion yepcord/rest_api/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/rest_api/models/auth.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/rest_api/models/channels.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/rest_api/models/guilds.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/rest_api/models/hypesquad.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/rest_api/models/interactions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/rest_api/models/invites.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/rest_api/models/oauth2.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/rest_api/models/users.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/rest_api/models/users_me.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/rest_api/models/webhooks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/rest_api/routes/applications.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/rest_api/routes/auth.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/rest_api/routes/channels.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/rest_api/routes/gifs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/rest_api/routes/guilds.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/rest_api/routes/hypesquad.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/rest_api/routes/interactions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/rest_api/routes/invites.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/rest_api/routes/oauth2.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/rest_api/routes/other.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/rest_api/routes/teams.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
2 changes: 1 addition & 1 deletion yepcord/rest_api/routes/users.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
YEPCord: Free open source selfhostable fully discord-compatible chat
Copyright (C) 2022-2023 RuslanUC
Copyright (C) 2022-2024 RuslanUC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
Loading
Loading