aboutsummaryrefslogtreecommitdiff
path: root/pyproject.toml
diff options
context:
space:
mode:
authorDennis Fink2026-10-31 08:43:03 +0100
committerDennis Fink2026-10-31 08:46:58 +0100
commit40ae4a862e00475a5b1c205045986475a790f39c (patch)
treee044f9ae0019ebe2860dbc9c2258aa7dfb492955 /pyproject.toml
parent53370723df05193938ce3c2d55a8e12f2a87b17b (diff)
downloadwebmentions-ssg-40ae4a862e00475a5b1c205045986475a790f39c.tar.gz
webmentions-ssg-40ae4a862e00475a5b1c205045986475a790f39c.zip
build: add storage backend dependency groups
Provide matching published extras and uv groups for Redis, Valkey, Memcached, MongoDB, and PostgreSQL so deployments can install the clients required by their selected rate-limit or Huey backend. Keep shared backend groups aligned where Redis dependencies are used by both Flask-Limiter and Huey.
Diffstat (limited to '')
-rw-r--r--pyproject.toml35
1 files changed, 30 insertions, 5 deletions
diff --git a/pyproject.toml b/pyproject.toml
index 9b410ff..f00d5c6 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -17,22 +17,36 @@ dependencies = [
"beautifulsoup4>=4.15.0",
"bootstrap-flask>=2.5.0",
"coloredlogs>=15.0.1",
- "dnspython>=2.8.0",
- "flask>=3.1.3",
"flask-limiter>=4.1.1",
"flask-login>=0.6.3",
"flask-mail>=0.10.0",
"flask-migrate>=4.1.0",
"flask-sqlalchemy>=3.1.1",
"flask-wtf>=1.3.0",
- "httpx>=0.28.1,<0.29",
+ "flask>=3.1.3",
"httpcore>=1.0.9,<1.1",
+ "httpx>=0.28.1,<0.29",
"huey>=3.1.0",
"mf2py>=2.0.1",
"rfc3987>=1.3.8",
"xxhash>=3.8.1",
]
+# Published extras select backend clients for Huey and/or Flask-Limiter.
+# Huey's Redis extra was introduced in 3.3.0 (the base dependency supports 3.1.0).
+[project.optional-dependencies]
+memcached = ["flask-limiter[memcached]>=4.1.1"]
+mongodb = ["flask-limiter[mongodb]>=4.1.1"]
+postgres = ["huey[postgres]>=3.1.0"]
+redis = [
+ "flask-limiter[redis]>=4.1.1",
+ "huey[redis]>=3.3.0",
+]
+valkey = [
+ "flask-limiter[valkey]>=4.1.1",
+ "huey[redis]>=3.3.0",
+]
+
[project.urls]
Repository = "https://git.dennisfink.me/webmentions-ssg/"
@@ -43,9 +57,20 @@ dev = [
"ruff>=0.17.3",
"types-wtforms>=3.2.1.20260518",
]
+memcached = ["flask-limiter[memcached]>=4.1.1"]
+mongodb = ["flask-limiter[mongodb]>=4.1.1"]
+postgres = ["huey[postgres]>=3.1.0"]
+redis = [
+ "flask-limiter[redis]>=4.1.1",
+ "huey[redis]>=3.3.0",
+]
test = [
- "pytest>=9.1.1",
- "pytest-cov>=7.1.0",
+ "pytest>=9.1.1",
+ "pytest-cov>=7.1.0",
+]
+valkey = [
+ "flask-limiter[valkey]>=4.1.1",
+ "huey[redis]>=3.3.0",
]
[build-system]