-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
84 lines (75 loc) · 2.4 KB
/
pyproject.toml
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
[project]
name = "solrizer"
version = "1.0.0-dev"
dependencies = [
"beautifulsoup4",
"edtf",
"flask",
"langcodes",
"plastron-client",
"plastron-models",
"plastron-rdf",
"plastron-repo",
"plastron-utils",
"python-dotenv",
"python-iso639",
"python-jsonpath",
# require rdflib 7.0.0+ in order to have access
# to the NamespaceManager.curie() method
"rdflib>=7.0.0",
"requests-jwtauth",
"uritemplate",
"waitress",
]
requires-python = ">=3.12"
[project.optional-dependencies]
test = [
"httpretty",
"pytest",
"pytest-cov",
"pytest-datadir",
"pycodestyle",
"ruff",
]
dev = [
"pdoc",
]
[project.scripts]
solrizer = "solrizer.server:run"
[project.entry-points.solrizer_indexers]
content_model = "solrizer.indexers.content_model:content_model_fields"
discoverability = "solrizer.indexers.discoverability:discoverability_fields"
page_sequence = "solrizer.indexers.page_sequence:page_sequence_fields"
iiif_links = "solrizer.indexers.iiif_links:iiif_links_fields"
dates = "solrizer.indexers.dates:date_fields"
facets = "solrizer.indexers.facets:facet_fields"
extracted_text = "solrizer.indexers.extracted_text:extracted_text_fields"
root = "solrizer.indexers.root:root_field"
[project.entry-points.solrizer_faceters]
admin_set = "solrizer.faceters:AdminSetFacet"
archival_collection = "solrizer.faceters:ArchivalCollectionFacet"
contributor = "solrizer.faceters:ContributorFacet"
creator = "solrizer.faceters:CreatorFacet"
language = "solrizer.faceters:LanguageFacet"
location = "solrizer.faceters:LocationFacet"
presentation_set = "solrizer.faceters:PresentationSetFacet"
publication_status = "solrizer.faceters:PublicationStatusFacet"
publisher = "solrizer.faceters:PublisherFacet"
rdf_type = "solrizer.faceters:RDFTypeFacet"
resource_type = "solrizer.faceters:ResourceTypeFacet"
rights = "solrizer.faceters:RightsFacet"
subject = "solrizer.faceters:SubjectFacet"
visibility = "solrizer.faceters:VisibilityFacet"
[tool.pytest.ini_options]
# the datetime.datetime.utcnow() warning is coming from the httpretty code
filterwarnings = 'ignore:datetime.datetime.utcnow\(\) is deprecated:DeprecationWarning'
[tool.ruff]
line-length = 120
[tool.ruff.format]
quote-style = "single"
[tool.ruff.lint]
# preview is required to enable many pycodestyle rules see
# https://docs.astral.sh/ruff/rules/
preview = true
# Enable pycodestyle errors and warnings
select = ["E", "W"]