feat: rework pyproject to allow installing only parts
This commit is contained in:
@@ -8,13 +8,26 @@ authors = [
|
|||||||
]
|
]
|
||||||
requires-python = ">=3.13"
|
requires-python = ">=3.13"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"beautifulsoup4>=4.14.2",
|
|
||||||
"cloudscraper>=1.2.71",
|
|
||||||
"playwright>=1.55.0",
|
|
||||||
"regex>=2025.9.18",
|
"regex>=2025.9.18",
|
||||||
|
]
|
||||||
|
|
||||||
|
[project.optional-dependencies]
|
||||||
|
# SRU API feature: for accessing library catalogs via SRU protocol
|
||||||
|
sru = [
|
||||||
"requests>=2.32.5",
|
"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]
|
[build-system]
|
||||||
requires = ["uv_build >= 0.9.5, <0.10.0"]
|
requires = ["uv_build >= 0.9.5, <0.10.0"]
|
||||||
build-backend = "uv_build"
|
build-backend = "uv_build"
|
||||||
|
|||||||
Reference in New Issue
Block a user