Merge pull request 'new features' (#13) from dev into main

Reviewed-on: #13
This commit was merged in pull request #13.
This commit is contained in:
2025-12-09 08:18:04 +00:00
24 changed files with 3345 additions and 225 deletions

View File

@@ -3,30 +3,24 @@ name = "bibapi"
version = "0.0.6"
description = "Add your description here"
readme = "README.md"
authors = [
{ name = "WorldTeacher", email = "coding_contact@pm.me" }
]
authors = [{ name = "WorldTeacher", email = "coding_contact@pm.me" }]
requires-python = ">=3.13"
dependencies = [
"regex>=2025.9.18",
"requests>=2.32.5",
]
[project.optional-dependencies]
# SRU API feature: for accessing library catalogs via SRU protocol
sru = [
"requests>=2.32.5",
]
sru = ["requests>=2.32.5"]
# Catalogue feature: web scraping local library catalog
catalogue = [
"requests>=2.32.5",
"beautifulsoup4>=4.12.0",
]
catalogue = ["requests>=2.32.5", "beautifulsoup4>=4.12.0"]
webrequest = ["bibapi[catalogue]", "ratelimit>=2.2.0"]
# Install all features
all = [
"bibapi[sru,catalogue]",
]
all = ["bibapi[sru,catalogue]"]
[build-system]
requires = ["uv_build >= 0.9.5, <0.10.0"]
@@ -55,11 +49,25 @@ pre_commit_hooks = []
post_commit_hooks = []
[dependency-groups]
test = [
dev = [
"pylint>=4.0.3",
"pytest-mock>=3.15.1",
"types-pysocks>=1.7.1.20251001",
"types-regex>=2025.9.18.20250921",
"types-requests>=2.32.4.20250913",
"mypy>=1.18.2",
"pytest>=8.4.2",
"pytest-cov>=7.0.0",
"ratelimit>=2.2.0",
"beautifulsoup4>=4.12.0",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
markers = [
"integration: marks tests as integration tests (deselect with '-m \"not integration\"')",
]