Commit graph

550 commits

Author SHA1 Message Date
Izalia Mae
448b19d0c7 change optional deps
load `uvloop` if it's installed
add `performance` option
remove `docs` option
remove `build` dep from `dev`
2025-02-20 18:14:59 -05:00
Izalia Mae
2e9a8a99e5 update docs 2025-02-20 09:59:03 -05:00
Izalia Mae
ef7109e321 replace instance and software groups with ban group 2025-02-19 19:52:50 -05:00
Izalia Mae
6576a99f2f update barkshark-lib 2025-02-19 08:55:28 -05:00
Izalia Mae
2bc8633d54 use async for cli commands that make http requests 2025-02-19 08:53:36 -05:00
Izalia Mae
c445b54a91 create State class
`aiohttp.web.Application` wasn't intended to be subclassed, so a `State` object will be used as the new central location
2025-02-18 21:12:30 -05:00
Izalia Mae
fd680dfd0b replace pathlib.Path with blib.File 2025-02-16 20:03:02 -05:00
Izalia Mae
c2fd96b758 remove user admin page and move admin pages to subdir 2025-02-14 10:07:34 -05:00
Izalia Mae
2ee871fd81 close client on server shutdown 2025-02-14 09:23:19 -05:00
Izalia Mae
df94b4872c prvent double setup of cache 2025-02-14 09:10:03 -05:00
Izalia Mae
a6e908157c fix dependencies 2025-02-13 16:05:33 -05:00
Izalia Mae
dec378fbfc allow cache cleanup thread to be stopped on shutdown 2025-02-12 15:19:55 -05:00
Izalia Mae
ac0cddd65a actually fix python 3.10 compat 2025-02-12 15:14:46 -05:00
Izalia Mae
87e45553ca only require typing-extensions on python < 3.11 2025-02-12 14:52:43 -05:00
Izalia Mae
e85215d986 split manage.py and multiple small changes
* add `typing-extensions` dev dependency
* make sure `Self` import falls back to `typing-extensions`
* let setuptools find sub-packages
* pass global `Application` instance to cli commands
* move `RELAY_SOFTWARE` to relay/misc.py
* allow `str` for `follow` in `Message.new_unfollow`
2025-02-12 14:48:02 -05:00
Izalia Mae
2e373eddc9 don't use python 3.12 feature 2025-02-12 06:28:10 -05:00
Izalia Mae
be21b30d61 version bump to 0.3.4 2025-02-11 13:20:21 -05:00
Izalia Mae
e4eadb69db fix linter warnings in dev script 2025-02-11 13:01:48 -05:00
Izalia Mae
f741017ef1 skip missing optional values in old config 2025-02-11 12:55:02 -05:00
Izalia Mae
760718b5dc fix actor type checking (fixes #45) 2025-02-11 12:39:18 -05:00
Izalia Mae
527afaca95 properly get actor and inbox urls
* get actor url from incoming message
* fall back to actor inbox if there is no shared inbox
2025-02-11 12:28:05 -05:00
Izalia Mae
ff275a5ba4 fix linter warnings 2025-02-11 12:26:57 -05:00
Izalia Mae
3e6a2a4f37 fix logins 2025-02-11 12:25:16 -05:00
Izalia Mae
5a1af750d5 fix spacing issue on home page 2025-02-11 12:15:21 -05:00
Izalia Mae
ade36d6e69 add buzzrelay to RELAY_SOFTWARE list 2025-01-29 06:11:25 -05:00
Izalia Mae
e47e69b14d add docs dependencies 2024-12-05 22:56:17 -05:00
Izalia Mae
f41b24406f remove unnecessary SOFTWARE const 2024-11-28 09:17:11 -05:00
Izalia Mae
338fd26688 replace single quotes with double quotes 2024-11-28 07:09:53 -05:00
Izalia Mae
29ebba7999 add more classiifiers and py.typed file 2024-11-28 06:10:35 -05:00
Izalia Mae
5131831363 sort out pyproject and replace jinja2-haml with hamlish 2024-11-28 05:43:39 -05:00
Izalia Mae
8a5a13f516 put a new line between the short and long description 2024-10-14 15:51:06 -04:00
Izalia Mae
594af5658b remove unnecessary method 2024-10-14 15:47:56 -04:00
Izalia Mae
7673920141 treat doc strings as markdown 2024-10-14 15:46:51 -04:00
Izalia Mae
2093af8217 minor styling fix for parameters on docs page 2024-10-14 15:46:15 -04:00
Izalia Mae
71e1503542 remove swagger and add auto-docs for api endpoints in /doc 2024-10-13 20:37:37 -04:00
Izalia Mae
a25df0ccc4 rework api endpoints 2024-10-13 17:30:12 -04:00
Izalia Mae
b00daa5a78 convert activitypub routes to use register_route 2024-10-12 13:09:02 -04:00
Izalia Mae
091f8175b5 create Response.new_template method 2024-10-12 11:03:50 -04:00
Izalia Mae
f9d6d7b18d route handler changes
* rename `register_route` to `register_view`
* add `register_route` function
* convert frontend and misc routes to use `register_route`
2024-10-12 10:28:22 -04:00
Izalia Mae
e0ca93ab93 Merge branch 'dev' into 'main'
version 0.3.3

See merge request pleroma/relay!59
2024-10-10 09:48:39 +00:00
Izalia Mae
f192f1c35c improve switch-backend command 2024-09-28 09:41:25 -04:00
Izalia Mae
85f062c8f3 don't fix timestamps on postgresql 2024-09-28 06:59:09 -04:00
Izalia Mae
098998084d catch ClientConnectorError when fetching actor 2024-09-28 06:56:27 -04:00
Izalia Mae
5a9d1836d0 disable forwarding of Undo messages 2024-09-19 04:37:54 -04:00
Izalia Mae
0d24aea764 replace misc functions 2024-09-18 07:13:44 -04:00
Izalia Mae
c482677c32 raise error on non 200 or 202 status in HttpClient.post 2024-09-15 07:34:09 -04:00
Izalia Mae
c5633808f7 use correct type when deleting old database cache items 2024-09-15 07:29:12 -04:00
Izalia Mae
e6845136eb remove logging on non 202 and 200 statuses 2024-09-15 05:35:17 -04:00
Izalia Mae
7f0a1a4e08 replace HttpError with blib.HttpError 2024-09-15 04:54:37 -04:00
Izalia Mae
ca70c1b293 change how HttpClient.get handles errors
* raise `blib.HttpError` on non 200 and 202 statuses
* use `EmptyBodyError` instead of `ValueError` for empty bodies
2024-09-15 04:35:00 -04:00