forked from softwaresaved/fuji
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
169 lines (156 loc) · 4.04 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[project]
authors = [
{name = "Robert Huber", email = "[email protected]"},
{name = "Anusuriya Devaraju", email = "[email protected]"}
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Information Analysis"
]
dependencies = [
# dependencies with major version on zero are defined with
# major.minor.patch, because they can potentially introduce breaking changes
# in minor version updates anytime
"beautifulsoup4~=4.12",
"configparser~=6.0",
"connexion[flask,uvicorn,swagger-ui]~=3.0",
"extruct~=0.16.0",
"feedparser~=6.0",
"flask-cors~=4.0",
"flask-limiter~=3.5",
"hashid~=3.1.4",
"idutils~=1.2",
"jmespath~=1.0",
"levenshtein~=0.25.0",
"lxml==5.1.0",
"pandas~=2.1",
"pyRdfa3~=3.5",
"pyld~=2.0",
"pyyaml~=6.0",
"rapidfuzz~=3.3",
"rdflib~=7.0",
"requests~=2.31",
"sparqlwrapper~=2.0",
"tika~=2.6",
"tldextract~=5.0",
"urlextract~=1.8",
"pygithub~=2.1"
]
description = "FUJI (FAIRsFAIR Data Objects Assessment Service), A service to evaluate FAIR data objects based on FAIRsFAIR Metrics"
keywords = [
"PANGAEA",
"FAIRsFAIR",
"FAIR Principles",
"Data Object Assessment",
"OpenAPI",
"FAIR",
"Research Data",
"FAIR data",
"Metadata harvesting",
"FAIR4RS"
]
license = "MIT"
name = "fuji"
readme = "README.md"
requires-python = "~=3.11" # at the moment only Python 3.11 is supported
version = "3.2.0"
[project.optional-dependencies]
dev = [
"fuji[lint]",
"fuji[testing]"
]
docs = [
"myst-parser~=2.0",
"sphinx~=7.2",
"sphinx-rtd-theme~=2.0"
]
lint = [
"pre-commit~=3.4"
]
report = [
"bokeh~=3.2",
"jupyter~=1.0"
]
testing = [
"genbadge[coverage]~=1.1",
"pytest~=8.0",
"pytest-cov~=5.0",
"pytest-randomly~=3.15",
"pytest-recording~=0.13",
"pytest-xdist~=3.3"
]
[project.urls]
Homepage = "https://www.f-uji.net"
Issues = "https://github.com/pangaea-data-publisher/fuji/issues"
Source = "https://github.com/pangaea-data-publisher/fuji"
[tool.coverage.report]
show_missing = true
skip_covered = true
skip_empty = true
[tool.coverage.run]
branch = true
parallel = true
source = ["fuji_server"]
[tool.hatch.build]
include = [
"docs",
"fuji_server",
"AUTHORS",
"LICENSE",
"README.md"
]
[tool.hatch.build.targets.wheel]
packages = ["fuji_server"]
[tool.hatch.envs.default]
dev-mode = true
features = [
"lint",
"testing"
]
[tool.hatch.envs.default.scripts]
cov = "pytest --cov {args}"
cov-badge = "genbadge coverage --input-file=pytest-cobertura.xml --output-file=./reports/coverage/coveragebadge.svg"
cov-ci = "pytest --cov --junitxml=pytest-junit.xml --cov-report=xml:pytest-cobertura.xml --cov-report=html:./reports/coverage/ {args}"
lint = "pre-commit run --all-files --color=always {args}"
test = "pytest {args}"
[tool.pytest.ini_options]
filterwarnings = [
# warnings from pyrdfa
"ignore: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12:DeprecationWarning",
# warnings from feedparser
"ignore:'cgi' is deprecated and slated for removal in Python 3.13:DeprecationWarning",
# warnings from tika
"ignore:pkg_resources is deprecated as an API:DeprecationWarning",
"ignore:Deprecated call to `pkg_resources.declare_namespace:DeprecationWarning"
]
markers = [
"manual", # tests which should be triggered manual only
"noci", # tests which should not run on the CI
"regression", # tests which run a fuji as a whole
"smoke" # tests which run very fast
]
testpaths = "tests"
[tool.ruff]
line-length = 120
# Ref: https://docs.astral.sh/ruff/configuration/
src = ["fuji_server"]
target-version = "py311"
[tool.ruff.lint]
extend-select = [
"I", # isort
"UP", # pyupgrade
"RUF" # ruff
]
ignore = [
"E722", # bare-except
"RUF012" # mutable-class-default
]
[tool.ruff.lint.isort]
known-first-party = ["fuji_server", "tests"]