-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
205 lines (182 loc) · 7.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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
[tool.poetry]
# ---- DO NOT EDIT, managed by somesy ----
name = "metador-core"
version = "0.1.2"
description = "Core of Metador, the metadata-first research data management framework."
authors = ["Anton Pirogov <[email protected]>"]
license = "MIT"
repository = "https://github.com/Materials-Data-Science-and-Informatics/metador-core"
homepage = "https://github.com/Materials-Data-Science-and-Informatics/metador-core"
documentation = "https://github.com/Materials-Data-Science-and-Informatics/metador-core"
keywords = ["metadata", "rdm", "FAIR", "framework", "python"]
# ----------------------------------------
readme = "README.md"
classifiers = [
"Operating System :: POSIX :: Linux",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Scientific/Engineering",
"Typing :: Typed",
]
# the Python packages that will be included in a built distribution:
packages = [{include = "metador_core", from = "src"}]
# always include basic info for humans and core metadata in the distribution,
# include files related to test and documentation only in sdist:
include = [
"*.md",
"LICENSE", "LICENSES", ".reuse/dep5",
"CITATION.cff", "codemeta.json",
{ path = "mkdocs.yml", format = "sdist" },
{ path = "docs", format = "sdist" },
{ path = "tests", format = "sdist" },
]
maintainers = ["Anton Pirogov <[email protected]>"]
[tool.poetry.dependencies]
python = "^3.8"
h5py = "^3.10.0"
typing-extensions = "^4.6.0"
runtype = "^0.3.5"
pydantic = "^1.10.12"
pydantic-yaml = "^1.1.1"
importlib-metadata = "^4.11.4"
wrapt = "^1.14.1"
rdflib = "^6.2.0"
isodate = "^0.6.1"
Pint = "^0.21"
Pillow = "^9.1.1"
python-magic = "^0.4.25"
pandas = "^2.0.3"
overrides = "^7.0.0"
simple-parsing = "^0.0.20"
phantom-types = "^2.1.0"
panel = "^0.14.0"
param = "^1.13.0" # needed for panel <1.0 to work
Flask = "^2.1.3"
typer = {extras = ["all"], version = "^0.9.0"}
[tool.poetry.group.dev.dependencies]
poethepoet = "^0.19.0"
pre-commit = "^2.17.0"
pytest = "^7.0.1"
pytest-cov = "^4.1.0"
hypothesis = "^6.58.0"
frozendict = "^2.3.4"
# somesy = {path = "../somesy", develop = true}
notebook = "^7.0.2"
testbook = "^0.4.2"
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.4.2"
mkdocstrings = {extras = ["python"], version = "^0.22.0"}
mkdocs-material = "^9.1.6"
mkdocs-gen-files = "^0.5.0"
mkdocs-literate-nav = "^0.6.0"
mkdocs-section-index = "^0.3.5"
mkdocs-macros-plugin = "^0.7.0"
markdown-include = "^0.8.1"
pymdown-extensions = "^10.0"
markdown-exec = {extras = ["ansi"], version = "^1.6.0"}
mkdocs-coverage = "^1.0.0"
mike = "^1.1.2"
anybadge = "^1.14.0"
black = "^23.7.0"
mkdocs-jupyter = "^0.24.2"
[tool.poetry.scripts]
metador = "metador_core.cli:app"
[tool.poetry.plugins.metador_plugingroup]
# Metador supports defining custom validated plugin groups.
# Here we define the default entities used in Metador.
# For each declared group, plugins can be defined via entrypoints.
'schema__0.1.0' = "metador_core.schema.pg:PGSchema"
'harvester__0.1.0' = "metador_core.harvester:PGHarvester"
'packer__0.1.0' = "metador_core.packer:PGPacker"
'widget__0.1.0' = "metador_core.widget:PGWidget"
[tool.poetry.plugins.metador_schema]
# Metador is build around pluggable metadata schemas.
# This one is mandatory for containers packed by a packer plugin:
'core.packerinfo__0.1.0' = "metador_core.packer:PackerInfo"
# These are optional and can be used freely, e.g. by some packer:
'core.file__0.1.0' = "metador_core.schema.common.rocrate:FileMeta"
'core.dir__0.1.0' = "metador_core.schema.common.rocrate:DirMeta"
'core.org__0.1.0' = "metador_core.schema.common.rocrate:Organization"
'core.person__0.1.0' = "metador_core.schema.common.rocrate:Person"
'core.bib__0.1.0' = "metador_core.schema.common:BibMeta"
'core.imagefile__0.1.0' = "metador_core.schema.common:ImageFileMeta"
'core.table__0.1.0' = "metador_core.schema.common:TableMeta"
# This one needed for configuring the generic dashboard for a container:
'core.dashboard__0.1.0' = "metador_core.widget.dashboard:DashboardConf"
# Example schemas:
'example.matsci.material__0.1.0' = "metador_core.schema.examples.matsci:Material"
'example.matsci.method__0.1.0' = "metador_core.schema.examples.matsci:Method"
'example.matsci.instrument__0.1.0' = "metador_core.schema.examples.matsci:Instrument"
'example.matsci.specimen__0.1.0' = "metador_core.schema.examples.matsci:Specimen"
'example.matsci.info__0.1.0' = "metador_core.schema.examples.matsci:MatsciFileInfo"
[tool.poetry.plugins.metador_harvester]
'core.file.generic__0.1.0' = "metador_core.harvester.common:FileMetaHarvester"
'core.imagefile.dim__0.1.0' = "metador_core.harvester.common:ImageFileMetaHarvester"
[tool.poetry.plugins.metador_widget]
'core.file.text.md__0.1.0' = "metador_core.widget.common:MarkdownWidget"
'core.file.text.html__0.1.0' = "metador_core.widget.common:HTMLWidget"
'core.file.text.code__0.1.0' = "metador_core.widget.common:CodeWidget"
'core.file.text__0.1.0' = "metador_core.widget.common:TextWidget"
'core.file.json__0.1.0' = "metador_core.widget.common:JSONWidget"
'core.file.csv__0.1.0' = "metador_core.widget.common:CSVWidget"
'core.file.pdf__0.1.0' = "metador_core.widget.common:PDFWidget"
'core.file.image__0.1.0' = "metador_core.widget.common:ImageWidget"
'core.file.audio__0.1.0' = "metador_core.widget.common:AudioWidget"
'core.file.video__0.1.0' = "metador_core.widget.common:VideoWidget"
[tool.poetry.plugins.metador_packer]
'core.generic__0.1.0' = "metador_core.packer.example:GenericPacker"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
# NOTE: You can run the following with "poetry poe TASK"
[tool.poe.tasks]
init-dev = { shell = "pre-commit install" }
lint = "pre-commit run" # pass --all-files to check everything
test = "pytest" # pass --cov to also collect coverage info
docs = "mkdocs build" # run this to generate local documentation
licensecheck = "licensecheck" # run this when you add new deps
# Tool Configurations
# -------------------
# pytest.ini replacement (pytest >= 6.0)
[tool.pytest.ini_options]
addopts = "--cov-report=term-missing:skip-covered"
filterwarnings = [
"ignore::DeprecationWarning:bokeh.core.*",
"ignore::DeprecationWarning:jupyter_client.*",
]
[tool.coverage.run]
source = ['metador_core']
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
[tool.flake8]
ignore = ["E501", "W503", "E712"]
max-line-length = 88
[tool.pydocstyle]
ignore = [
# custom:
"D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107",
# google "convention" ignore list:
"D203"," D204"," D213"," D215",
"D400", "D401", "D404", "D406", "D407", "D408", "D409", "D413",
]
[tool.interrogate]
fail-under = 95
[tool.bandit]
exclude_dirs = ["tests", "scripts"]
skips = ["B101"]
[tool.licensecheck]
using = "poetry"