-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
95 lines (85 loc) · 2.8 KB
/
pyproject.toml
File metadata and controls
95 lines (85 loc) · 2.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
[project]
name = "dspace-client"
version = "0.1.0"
description = "Python client for DSpace REST API (v7, v8, v9)"
readme = "README.md"
requires-python = ">=3.11"
license = {text = "GPL-3.0-or-later"}
authors = [
{name = "Bram Luyten", email = "bram@atmire.com"}
]
keywords = ["dspace", "rest-api", "client", "repository"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"httpx[http2]>=0.27.0",
"orjson>=3.10.0",
"rich>=13.7.0",
"tenacity>=8.2.0",
"gitpython>=3.1.0", # For git operations
"python-dateutil>=2.8.0", # For date manipulation
"typer>=0.12.0", # For CLI tools
"defusedxml>=0.7.1",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"respx>=0.21.0",
"ruff>=0.4.0",
"mypy>=1.10.0",
]
examples = [
"pyyaml>=6.0.1",
]
[project.urls]
Homepage = "https://git.atmire.com/scripts/dspace-python-client"
Documentation = "https://git.atmire.com/scripts/dspace-python-client/-/blob/main/README.md"
Repository = "https://git.atmire.com/scripts/dspace-python-client"
"Bug Tracker" = "https://git.atmire.com/scripts/dspace-python-client/-/issues"
"DSpace REST Contract" = "https://github.com/DSpace/RestContract"
[project.scripts]
dspace-docs = "dspace_client.docs:cli_main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
include = [
"/NOTICE",
"/THIRD_PARTY_LICENSES.md",
]
[tool.ruff]
target-version = "py311"
line-length = 100
select = ["E", "F", "W", "C90", "I", "N", "UP", "YTT", "S", "BLE", "FBT", "A", "COM", "C4", "DTZ", "T10", "EM", "EXE", "FA", "ISC", "ICN", "G", "INP", "PIE", "T20", "PYI", "PT", "Q", "RSE", "RET", "SLF", "SLOT", "SIM", "TID", "TCH", "INT", "ARG", "PTH", "TD", "FIX", "ERA", "PD", "PGH", "PL", "TRY", "FLY", "NPY", "AIR", "PERF", "FURB", "LOG", "RUF"]
ignore = ["S101", "T201", "S608", "A003", "COM812", "ISC001"]
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
"examples/ingest_bitstream.py" = ["INP001"]
"tests/test_fulltext_finder_url_validator.py" = ["INP001"]
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]