mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2025-04-20 01:26:43 +00:00
change optional deps
load `uvloop` if it's installed add `performance` option remove `docs` option remove `build` dep from `dev`
This commit is contained in:
parent
2e9a8a99e5
commit
448b19d0c7
2 changed files with 11 additions and 6 deletions
|
@ -58,18 +58,15 @@ Source = "https://git.pleroma.social/pleroma/relay"
|
|||
activityrelay = "relay.manage:main"
|
||||
|
||||
[project.optional-dependencies]
|
||||
performance = [
|
||||
"uvloop == 0.21.1",
|
||||
]
|
||||
dev = [
|
||||
"build == 1.2.2.post1",
|
||||
"flake8 == 7.1.1",
|
||||
"mypy == 1.13.0",
|
||||
"pyinstaller == 6.10.0",
|
||||
"typing-extensions == 4.12.2; python_version < '3.11'",
|
||||
]
|
||||
docs = [
|
||||
"furo == 2024.1.29",
|
||||
"sphinx == 7.2.6",
|
||||
"sphinx-external-toc == 1.0.1",
|
||||
]
|
||||
|
||||
[tool.setuptools]
|
||||
zip-safe = false
|
||||
|
|
|
@ -16,6 +16,14 @@ from ..misc import IS_DOCKER
|
|||
from ..state import State
|
||||
|
||||
|
||||
try:
|
||||
import uvloop
|
||||
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
|
||||
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
||||
P = ParamSpec("P")
|
||||
R = TypeVar("R")
|
||||
|
||||
|
|
Loading…
Reference in a new issue