feat: rework pyproject to allow installing only parts

This commit is contained in:
2025-11-21 09:46:38 +01:00
parent d74b94b769
commit 14f9748957

View File

@@ -8,13 +8,26 @@ authors = [
]
requires-python = ">=3.13"
dependencies = [
"beautifulsoup4>=4.14.2",
"cloudscraper>=1.2.71",
"playwright>=1.55.0",
"regex>=2025.9.18",
]
[project.optional-dependencies]
# SRU API feature: for accessing library catalogs via SRU protocol
sru = [
"requests>=2.32.5",
]
# Catalogue feature: web scraping local library catalog
catalogue = [
"requests>=2.32.5",
"beautifulsoup4>=4.12.0",
]
# Install all features
all = [
"bibapi[sru,catalogue]",
]
[build-system]
requires = ["uv_build >= 0.9.5, <0.10.0"]
build-backend = "uv_build"